summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiampiero Giancipoli <gianci@email.it>2006-11-20 20:03:07 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2006-11-20 20:03:07 +0000
commita8c8082c1f8dc86a1e290c61726f511b9bd40751 (patch)
tree3d9aaf51c8ad77cfd53c4ff0a8f2a9b86c9c3986
parente60fd351825ecc4800d3626593b976e895886feb (diff)
downloadast2050-flashrom-a8c8082c1f8dc86a1e290c61726f511b9bd40751.zip
ast2050-flashrom-a8c8082c1f8dc86a1e290c61726f511b9bd40751.tar.gz
Support for the 256K SyncMos S29C51002T flash
Corresponding to flashrom svn r72 and coreboot v2 svn r2499. Signed-off-by: Giampiero Giancipoli <gianci@email.it> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
-rw-r--r--flash.h3
-rw-r--r--flashchips.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 9009ee6..086764f 100644
--- a/flash.h
+++ b/flash.h
@@ -79,6 +79,9 @@ extern struct flashchip flashchips[];
#define MSYSTEMS_MD2800 0x30 /* hmm -- both 0x30 */
#define MSYSTEMS_MD2802 0x30 /* hmm -- both 0x30 */
+#define SM_ID 0x40 /* SyncMOS ID */
+#define S29C51002T 0x02
+
extern void myusec_delay(int time);
extern void myusec_calibrate_delay();
extern int enable_flash_write(void);
diff --git a/flashchips.c b/flashchips.c
index 25fd95a..1400918 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -114,6 +114,8 @@ struct flashchip flashchips[] = {
#endif
{"LHF00L04", SHARP_ID, SHARP_LHF00L04, NULL, 1024, 64 * 1024,
probe_lhf00l04, erase_lhf00l04, write_lhf00l04, NULL},
+ {"S29C51002T", SM_ID, S29C51002T, NULL, 256, 128,
+ probe_jedec, erase_chip_jedec, write_49f002, NULL},
{NULL,}
};
OpenPOWER on IntegriCloud