summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorFrederico Silva <frederico.silva@gmail.com>2007-12-10 16:57:59 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-12-10 16:57:59 +0000
commit850c01cacf799b0b738587fb31d631025f364a24 (patch)
treedbb52322c55313b8a4c9890c6c5dcc11b67fb38e /util/flashrom
parent15674b78beb5a9f00d638fe5fc70cabe7f440a66 (diff)
Add support for more atmel chips:
AT49F002 AT49F002N AT49F002T AT49F002NT Only tested the read function on AT49F002T. datasheet @ http://www.atmel.com/atmel/acrobat/doc1017.pdf Signed-off-by: Frederico Silva <frederico.silva@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3003 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 db3e0d6e97..2bcdf91041 100644
--- a/util/flashrom/flash.h
+++ b/util/flashrom/flash.h
@@ -74,6 +74,8 @@ extern struct flashchip flashchips[];
#define ATMEL_ID 0x1F /* Atmel */
#define AT_29C040A 0xA4
#define AT_29C020 0xDA
+#define AT_49F002N 0x07 /* for AT49F002(N) */
+#define AT_49F002NT 0x08 /* for AT49F002(N)T */
#define CATALYST_ID 0x31 /* Catalyst */
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index a11c1b78ce..72d56192fa 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -38,6 +38,10 @@ struct flashchip flashchips[] = {
probe_jedec, erase_chip_jedec, write_jedec},
{"At29C020", ATMEL_ID, AT_29C020, 256, 256,
probe_jedec, erase_chip_jedec, write_jedec},
+ {"At49F002(N)", ATMEL_ID, AT_49F002N, 256, 256,
+ probe_jedec, erase_chip_jedec, write_jedec},
+ {"At49F002(N)T",ATMEL_ID, AT_49F002NT, 256, 256,
+ probe_jedec, erase_chip_jedec, write_jedec},
{"MBM29F400TC", FUJITSU_ID, MBM29F400TC, 512, 64 * 1024,
probe_m29f400bt, erase_m29f400bt, write_linuxbios_m29f400bt},
{"MX29F002", MX_ID, MX_29F002, 256, 64 * 1024,