From a4868c44b56424d3f0c28ad1a6aa95bdd7eae04b Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 15 May 2008 03:19:49 +0000 Subject: Add support for the JEDEC RES (Read Electronic Signature and Resume from Powerdown) SPI command to flashrom to identify older SPI chips which can't handle JEDEC RDID. Since RES gives a one-byte identifier which is shared among many different vendors and even different sizes, we want to match RES as a last resort if RDID returns 0xff 0xff 0xff. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Peter Stuge This is a heavily reworked version of a patch by Fredrik Tolf, which was Signed-off-by: Fredrik Tolf git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3320 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/spi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/flashrom/spi.h') diff --git a/util/flashrom/spi.h b/util/flashrom/spi.h index 15bac4ec52..f5c877cdcb 100644 --- a/util/flashrom/spi.h +++ b/util/flashrom/spi.h @@ -29,6 +29,11 @@ #define JEDEC_RDID_OUTSIZE 0x01 #define JEDEC_RDID_INSIZE 0x03 +/* Read Electronic Signature */ +#define JEDEC_RES 0xab +#define JEDEC_RES_OUTSIZE 0x04 +#define JEDEC_RES_INSIZE 0x01 + /* Write Enable */ #define JEDEC_WREN 0x06 #define JEDEC_WREN_OUTSIZE 0x01 -- cgit v1.2.3