summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2006-10-07 22:59:03 +0000
committerStefan Reinauer <stepan@openbios.org>2006-10-07 22:59:03 +0000
commitaa8e3d409f5b59295aa5038c094e3ee3dd87d8d1 (patch)
treec0353b84242f54773fd47370be6cadc69f18b46e /util
parentb6a0a9fb8aacad62558a767b5de12b711e226dc0 (diff)
downloadcoreboot-aa8e3d409f5b59295aa5038c094e3ee3dd87d8d1.tar.xz
here's a small patch to add support for the SST 49LF020A to flashrom.
by Uwe Hermann <uwe@hermann-uwe.de> X-Signed-Off-By: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2450 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/flashrom/flash.h1
-rw-r--r--util/flashrom/flashchips.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h
index 9375e5755e..9009ee6d1a 100644
--- a/util/flashrom/flash.h
+++ b/util/flashrom/flash.h
@@ -47,6 +47,7 @@ extern struct flashchip flashchips[];
#define SST_39VF020 0xD6 /* SST 39VF020 device */
#define SST_49LF040B 0x50 /* SST 49LF040B device */
#define SST_49LF040 0x51 /* SST 49LF040 device */
+#define SST_49LF020A 0x52 /* SST 49LF020A device */
#define SST_49LF080A 0x5B /* SST 48LF080A device */
#define SST_49LF002A 0x57 /* SST 49LF002A device */
#define SST_49LF003A 0x1B /* SST 49LF003A device */
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index 9b55f4d6d3..25fd95a19f 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -66,6 +66,8 @@ struct flashchip flashchips[] = {
{"SST49LF040", SST_ID, SST_49LF040, NULL, 512, 4096,
probe_jedec, erase_49lf040, write_49lf040,NULL},
+ {"SST49LF020A", SST_ID, SST_49LF020A, NULL, 256, 16 * 1024,
+ probe_jedec, erase_49lf040, write_49lf040,NULL},
{"SST49LF080A", SST_ID, SST_49LF080A, NULL, 1024, 4096,
probe_jedec, erase_49lf040, write_49lf040,NULL},
{"SST49LF002A/B", SST_ID, SST_49LF002A, NULL, 256, 16 * 1024,