diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-12-29 21:13:49 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-12-29 21:30:36 (EST) |
commit | 3e60ad76e2cef38bc59f6055c677ea2d890e10fe (patch) | |
tree | 782a8a0bb988aae3db5847aae9d56e832e480056 /resources/flashrom/patch/lenovobios_macronix.diff | |
parent | 05d821cecb953efd2cbc2d7cb21278a33a59000b (diff) | |
download | libreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.zip libreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.tar.gz libreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.tar.bz2 |
Removed redundant flashchip definitions in flashrom
For X200 owners with one of the Macronix flash chips. There are
multiple definitions for almost the same chip, and they are
all detected at once. Normally the user has to use the -c argument
in flashrom to select a flash chip. With this modification, they
can run flashrom without the argument.
Deletion of redundant flash chip definitions is now also handled
by getflashrom instead of builddeps-flashrom. builddeps-flashrom
now only patches for i945 lenovo bios sst/macronix.
Diffstat (limited to 'resources/flashrom/patch/lenovobios_macronix.diff')
-rw-r--r-- | resources/flashrom/patch/lenovobios_macronix.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/resources/flashrom/patch/lenovobios_macronix.diff b/resources/flashrom/patch/lenovobios_macronix.diff new file mode 100644 index 0000000..30f42bb --- /dev/null +++ b/resources/flashrom/patch/lenovobios_macronix.diff @@ -0,0 +1,26 @@ +--- flashchips.c 2014-12-30 01:59:49.846383043 +0000 ++++ flashchips.c.i945lenovobios_macronix 2014-12-30 02:05:16.060000647 +0000 +@@ -6605,12 +6605,12 @@ + .name = "MX25L1605D/MX25L1608D/MX25L1673E", + .bustype = BUS_SPI, + .manufacture_id = MACRONIX_ID, +- .model_id = MACRONIX_MX25L1605, ++ .model_id = 0x14, + .total_size = 2048, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, +- .probe = probe_spi_rdid, ++ .probe = probe_spi_res1, + .probe_timing = TIMING_ZERO, + .block_erasers = + { +@@ -6630,7 +6630,7 @@ + }, + .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */ + .unlock = spi_disable_blockprotect, +- .write = spi_chip_write_256, ++ .write = spi_chip_write_1, + .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ + .voltage = {2700, 3600}, + }, |