summaryrefslogtreecommitdiff
path: root/util/flashrom/m29f400bt.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-12-31 01:18:26 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-12-31 01:18:26 +0000
commit1704179acdc62da788e12474523fe89dea9fc920 (patch)
treeb053d6b7d739c32f574b6f7322f2e669b2c00da5 /util/flashrom/m29f400bt.c
parent1229fe4c9b7d6baef94ccd7ef467e8d3cfc74003 (diff)
This fixes a few vendor IDs to conform with JEDEC publication 106W
(JEP106W), adds some device IDs and provides information about non-conforming IDs. The EON change is left to the patch adding EON chips. This patch should have no effect on code generation. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3029 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/m29f400bt.c')
-rw-r--r--util/flashrom/m29f400bt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/flashrom/m29f400bt.c b/util/flashrom/m29f400bt.c
index 40b219cadc..7d8539f5cd 100644
--- a/util/flashrom/m29f400bt.c
+++ b/util/flashrom/m29f400bt.c
@@ -64,6 +64,9 @@ int probe_m29f400bt(struct flashchip *flash)
myusec_delay(10);
id1 = *(volatile uint8_t *)bios;
+ /* The data sheet says id2 is at (bios + 0x01) and id2 listed in
+ * flash.h does not match. It should be possible to use JEDEC probe.
+ */
id2 = *(volatile uint8_t *)(bios + 0x02);
*(volatile uint8_t *)(bios + 0xAAA) = 0xAA;