mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Refine SPI AAI support
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. Corresponding to flashrom svn r1052. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
6
spi.h
6
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
|
||||
|
Reference in New Issue
Block a user