summaryrefslogtreecommitdiffstats
path: root/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
commitc2a18452b14481adffcbc894c1342404f8e737a5 (patch)
tree129f793f8888219532ae41340a5b6938b301603c /m29f400bt.c
parenta3c977ab638b72c011adce8d2ebaa1753fe7c9bb (diff)
downloadflashrom-c2a18452b14481adffcbc894c1342404f8e737a5.tar.gz
flashrom-c2a18452b14481adffcbc894c1342404f8e737a5.tar.bz2
flashrom-c2a18452b14481adffcbc894c1342404f8e737a5.zip
Refine various vendor ID annotations
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. Corresponding to flashrom svn r170 and coreboot v2 svn r3029. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Corey Osgood <corey.osgood@gmail.com>
Diffstat (limited to 'm29f400bt.c')
-rw-r--r--m29f400bt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/m29f400bt.c b/m29f400bt.c
index 40b219cad..7d8539f5c 100644
--- a/m29f400bt.c
+++ b/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;