Adds support for ST M29W512B
Tested and works for me.
Corresponding to flashrom svn r888.
Signed-off-by: Jeffrey A. Kent <jakent@gmail.com>
Acked-by: Sean Nelson <audiohacked@gmail.com>
diff --git a/flashchips.c b/flashchips.c
index 53d053a..f66b95a 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -5050,6 +5050,30 @@
.read = read_memmapped,
},
+ {
+ .vendor = "ST",
+ .name = "M29W512B",
+ .bustype = CHIP_BUSTYPE_PARALLEL,
+ .manufacture_id = ST_ID,
+ .model_id = ST_M29W512B,
+ .total_size = 64,
+ .page_size = 64 * 1024,
+ .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
+ .tested = TEST_OK_PREW,
+ .probe = probe_jedec,
+ .probe_timing = TIMING_ZERO,
+ .erase = NULL,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {64 * 1024, 1} },
+ .block_erase = erase_chip_block_jedec,
+ }
+ },
+ .write = write_jedec_1,
+ .read = read_memmapped,
+ },
+
{
.vendor = "ST",
.name = "M50FLW040A",
diff --git a/flashchips.h b/flashchips.h
index 7f9c8a2..e299852 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -473,6 +473,7 @@
#define ST_M29F800DT 0xEC
#define ST_M29W010B 0x23
#define ST_M29W040B 0xE3
+#define ST_M29W512B 0x27
#define SYNCMOS_ID 0x40 /* SyncMOS and Mosel Vitelic */
#define S29C51001T 0x01