summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-07-24 18:18:05 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-07-24 18:18:05 +0000
commit3a262082ba547952cff1361d3ff1d6357fbe9a33 (patch)
treee16d5d5310807d96e5849ce70665db10c5c46cdc /util/flashrom
parent451762dabc6cdb8d5e1c40aa0184a673979f5572 (diff)
This patch adds support for ST M50FW040 and ST M29W040B to flashrom.
Only reading from the chips was tested; writing support is untested. Thanks to Gürkan Sengün <gurkan@linuks.mine.nu> for testing! Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2740 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/flash.h2
-rw-r--r--util/flashrom/flashchips.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h
index 51ce38baca..bc0cc07c89 100644
--- a/util/flashrom/flash.h
+++ b/util/flashrom/flash.h
@@ -111,10 +111,12 @@ extern struct flashchip flashchips[];
#define W_49V002FA 0x32
#define ST_ID 0x20 /* ST */
+#define ST_M50FW040 0x2C
#define ST_M29F002B 0x34
#define ST_M29F002T 0xB0 /* M29F002T / M29F002NT */
#define ST_M29F400BT 0xD5
#define ST_M29F040B 0xE2
+#define ST_M29W040B 0xE3
#define EMST_ID 0x8c /* EMST / EFST */
#define EMST_F49B002UA 0x00
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index ec88d8189d..5e1a3af060 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -114,6 +114,10 @@ struct flashchip flashchips[] = {
probe_jedec, erase_chip_jedec, write_39sf020},
{"M29F002B", ST_ID, ST_M29F002B, 256, 64 * 1024,
probe_jedec, erase_chip_jedec, write_jedec},
+ {"M50FW040", ST_ID, ST_M50FW040, 512, 64 * 1024,
+ probe_jedec, erase_chip_jedec, write_jedec},
+ {"M29W040B", ST_ID, ST_M29W040B, 512, 64 * 1024,
+ probe_jedec, erase_chip_jedec, write_jedec},
{"M29F002T/NT", ST_ID, ST_M29F002T, 256, 64 * 1024,
probe_jedec, erase_chip_jedec, write_jedec},
{"M29F400BT", ST_ID, ST_M29F400BT, 512, 64 * 1024,