summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-01-04 16:22:09 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-01-04 16:22:09 +0000
commite973b05710de68556dd5b7f336816b03d2b0e691 (patch)
tree0bd46b9d23079b543465fa2249887f6b6dc86590 /flash.h
parent2736e328320cbf524b3e5e93847cb4167062de7c (diff)
downloadflashrom-e973b05710de68556dd5b7f336816b03d2b0e691.tar.gz
flashrom-e973b05710de68556dd5b7f336816b03d2b0e691.tar.bz2
flashrom-e973b05710de68556dd5b7f336816b03d2b0e691.zip
Print at least the vendor for SPI flash chips if the exact chip ID is unknown
Corresponding to flashrom svn r173 and coreboot v2 svn r3032. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index e1e593469..4b571625f 100644
--- a/flash.h
+++ b/flash.h
@@ -59,10 +59,13 @@ extern struct flashchip flashchips[];
* entry of each section should be the manufacturer ID, followed by the
* list of devices from that manufacturer (sorted by device IDs).
*
- * All LPC/FWH parts (parallel flash) have 8-bit device IDs.
+ * All LPC/FWH parts (parallel flash) have 8-bit device IDs if there is no
+ * continuation code.
* All SPI parts have 16-bit device IDs.
*/
+#define GENERIC_DEVICE_ID 0xffff /* Only match the vendor ID */
+
#define ALLIANCE_ID 0x52 /* Alliance Semiconductor */
#define AMD_ID 0x01 /* AMD */