Hi,
On my m57sli-rev.2 board, there is a winbond 25X40 SPI flash bios chip,
which flashrom didn't have support for, so I added it (and the
relatives). Patch below:
Index: flash.h
===================================================================
--- flash.h (revision 3051)
+++ flash.h (working copy)
@@ -247,6 +247,12 @@
#define W_49V002A 0xB0
#define W_49V002FA 0x32
+#define WINBOND_SPI_ID 0xEF /* Winbond serial flash devices
*/
+#define W_25X10 0x3011
+#define W_25X20 0x3012
+#define W_25X40 0x3013
+#define W_25X80 0x3014
+
/* udelay.c */
void myusec_delay(int time);
void myusec_calibrate_delay();
Index: flashchips.c
===================================================================
--- flashchips.c (revision 3051)
+++ flashchips.c (working copy)
@@ -122,6 +122,14 @@
probe_jedec, erase_chip_jedec, write_39sf020},
{"W39V080A", WINBOND_ID, W_39V080A, 1024, 64*1024,
probe_jedec, erase_chip_jedec, write_39sf020},
+ {"W25x10", WINBOND_SPI_ID, W_25X10, 128, 256,
+ probe_spi, generic_spi_chip_erase_c7,
generic_spi_chip_write},
+ {"W25x20", WINBOND_SPI_ID, W_25X20, 256, 256,
+ probe_spi, generic_spi_chip_erase_c7,
generic_spi_chip_write},
+ {"W25x40", WINBOND_SPI_ID, W_25X40, 512, 256,
+ probe_spi, generic_spi_chip_erase_c7,
generic_spi_chip_write},
+ {"W25x80", WINBOND_SPI_ID, W_25X80, 1024, 256,
+ probe_spi, generic_spi_chip_erase_c7,
generic_spi_chip_write},
{"M29F002B", ST_ID, ST_M29F002B, 256, 64 * 1024,
probe_jedec, erase_chip_jedec, write_jedec},
{"M50FW040", ST_ID, ST_M50FW040, 512, 64 * 1024,