diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2006-11-21 15:02:27 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2006-11-21 15:02:27 +0000 |
commit | 838c7697a12b90b3e94dfaa13ce39a2b86197607 (patch) | |
tree | 38b7306f2c8b5e515957d150a7af63e25807180d | |
parent | 2dc5f429a74df35382c3e9c2947c684647a9d825 (diff) | |
download | flashrom-838c7697a12b90b3e94dfaa13ce39a2b86197607.tar.gz flashrom-838c7697a12b90b3e94dfaa13ce39a2b86197607.tar.bz2 flashrom-838c7697a12b90b3e94dfaa13ce39a2b86197607.zip |
Add support for the SyncMOS S29C51001T, S29C51004T, and S29C31004T
Corresponding to flashrom svn r74 and coreboot v2 svn r2501.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r-- | flash.h | 5 | ||||
-rw-r--r-- | flashchips.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -80,7 +80,10 @@ extern struct flashchip flashchips[]; #define MSYSTEMS_MD2802 0x30 /* hmm -- both 0x30 */ #define SM_ID 0x40 /* SyncMOS ID */ -#define S29C51002T 0x02 +#define S29C51001T 0x01 /* SyncMOS S29C51001T/B */ +#define S29C51002T 0x02 /* SyncMOS S29C51002T/B */ +#define S29C51004T 0x03 /* SyncMOS S29C51004T/B */ +#define S29C31004T 0x63 /* SyncMOS S29C31004T */ extern void myusec_delay(int time); extern void myusec_calibrate_delay(); diff --git a/flashchips.c b/flashchips.c index 14009185..c1ee4eb6 100644 --- a/flashchips.c +++ b/flashchips.c @@ -114,8 +114,14 @@ struct flashchip flashchips[] = { #endif {"LHF00L04", SHARP_ID, SHARP_LHF00L04, NULL, 1024, 64 * 1024, probe_lhf00l04, erase_lhf00l04, write_lhf00l04, NULL}, + {"S29C51001T", SM_ID, S29C51001T, NULL, 128, 128, + probe_jedec, erase_chip_jedec, write_49f002, NULL}, {"S29C51002T", SM_ID, S29C51002T, NULL, 256, 128, probe_jedec, erase_chip_jedec, write_49f002, NULL}, + {"S29C51004T", SM_ID, S29C51004T, NULL, 512, 128, + probe_jedec, erase_chip_jedec, write_49f002, NULL}, + {"S29C31004T", SM_ID, S29C31004T, NULL, 512, 128, + probe_jedec, erase_chip_jedec, write_49f002, NULL}, {NULL,} }; |