From 05087a63573c9aaa711f3aa3deeddeaa76877b0b Mon Sep 17 00:00:00 2001 From: hailfinger Date: Thu, 15 May 2008 03:19:49 +0000 Subject: Original v2 revision: 3320 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: https://code.coreboot.org/svn/flashrom/trunk@235 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- spi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spi.h') diff --git a/spi.h b/spi.h index 15bac4e..f5c877c 100644 --- a/spi.h +++ b/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.1