Comments
Patch
===================================================================
@@ -6162,6 +6162,31 @@
.write = spi_chip_write_256,
.read = spi_chip_read,
},
+ {
+ .vendor = "ST",
+ .name = "M25P80.RES",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = 0, /* Not used */
+ .model_id = ST_M25P80_RES,
+ .total_size = 1024,
+ .page_size = 256,
+ .tested = TEST_OK_PR,
+ .probe = probe_spi_res1,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {64 * 1024, 16} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {1024 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ },
{
.vendor = "ST",
===================================================================
@@ -527,6 +527,7 @@
#define ST_M25P40 0x2013
#define ST_M25P40_RES 0x12
#define ST_M25P80 0x2014
+#define ST_M25P80_RES 0x14
#define ST_M25P16 0x2015
#define ST_M25P32 0x2016
#define ST_M25P64 0x2017
Hi List, i've tried using flashrom for reading the SPI Flash of my Thinkpad X60s. It seems like it is using the (yet) unsupported M25P80.RES. I've added the few lines required to get it working, and at least reading the NVM works. Haven't tried writing the Flash (yes, i know about the risk regarding EC and friends) ;-) /sven Signed-off-by: Sven Schnelle <svens@stackframe.org>