diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-06-20 10:41:35 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-06-20 10:41:35 +0000 |
commit | 9c62d11d55a492f59781874cb74ce84f8dde1bfc (patch) | |
tree | 204c545093f263b9187aa9cdc220efba2fb57a72 /spi.h | |
parent | 8ae500e09dc4c55d0a8e39b6f751ca476afd21c4 (diff) | |
download | flashrom-9c62d11d55a492f59781874cb74ce84f8dde1bfc.tar.gz flashrom-9c62d11d55a492f59781874cb74ce84f8dde1bfc.tar.bz2 flashrom-9c62d11d55a492f59781874cb74ce84f8dde1bfc.zip |
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>
Diffstat (limited to 'spi.h')
-rw-r--r-- | spi.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |