Add support for the Winbond W39V040FA chip
Corresponding to flashrom svn r110 and coreboot v2 svn r2686.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
diff --git a/README b/README
index 37b91d0..b272a86 100644
--- a/README
+++ b/README
@@ -140,6 +140,7 @@
Winbond W49F002U
Winbond W49V002A
Winbond W49V002FA
+Winbond W39V040FA
Winbond W39V040A
Winbond W39V040B
Winbond W39V080A
diff --git a/flash.h b/flash.h
index 3e3ad84..6ced0f1 100644
--- a/flash.h
+++ b/flash.h
@@ -99,6 +99,7 @@
#define WINBOND_ID 0xDA /* Winbond */
#define W_29C011 0xC1
#define W_29C020C 0x45
+#define W_39V040FA 0x34
#define W_39V040A 0x3D
#define W_39V040B 0x54
#define W_39V080A 0xD0
diff --git a/flashchips.c b/flashchips.c
index bf0a976..07fc56d 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -105,6 +105,8 @@
probe_jedec, erase_chip_jedec, write_49f002, NULL},
{"W49V002FA", WINBOND_ID, W_49V002FA, NULL, 256, 128,
probe_jedec, erase_chip_jedec, write_49f002, NULL},
+ {"W39V040FA", WINBOND_ID, W_39V040FA, NULL, 512, 64*1024,
+ probe_jedec, erase_chip_jedec, write_39sf020, NULL},
{"W39V040A", WINBOND_ID, W_39V040A, NULL, 512, 64*1024,
probe_jedec, erase_chip_jedec, write_39sf020, NULL},
{"W39V040B", WINBOND_ID, W_39V040B, NULL, 512, 64*1024,