From b2a0b1a386631e5af0fd6fb36517f64066a3017b Mon Sep 17 00:00:00 2001 From: hailfinger Date: Sun, 20 Jun 2010 10:41:35 +0000 Subject: Modernize SPI AAI code, blacklist IT87 SPI for AAI, allow AAI to run without warnings on ICH/VIA SPI. Add some code to make conversion to partial write possible for AAI. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Sean Nelson git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1052 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- spi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spi.h') diff --git a/spi.h b/spi.h index 5cdf32b..383e535 100644 --- a/spi.h +++ b/spi.h @@ -112,6 +112,12 @@ #define JEDEC_BYTE_PROGRAM_OUTSIZE 0x05 #define JEDEC_BYTE_PROGRAM_INSIZE 0x00 +/* Write AAI word (SST25VF080B) */ +#define JEDEC_AAI_WORD_PROGRAM 0xad +#define JEDEC_AAI_WORD_PROGRAM_OUTSIZE 0x06 +#define JEDEC_AAI_WORD_PROGRAM_CONT_OUTSIZE 0x06 +#define JEDEC_AAI_WORD_PROGRAM_INSIZE 0x00 + /* Error codes */ #define SPI_GENERIC_ERROR -1 #define SPI_INVALID_OPCODE -2 -- cgit v1.2.1