summaryrefslogtreecommitdiff
path: root/spi.h
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-20 10:41:35 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-20 10:41:35 +0000
commitb2a0b1a386631e5af0fd6fb36517f64066a3017b (patch)
tree204c545093f263b9187aa9cdc220efba2fb57a72 /spi.h
parent949b14eabd72d575c8671ee57fc0d5613bf57f3a (diff)
downloadflashrom-b2a0b1a386631e5af0fd6fb36517f64066a3017b.tar.gz
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1052 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h6
1 files changed, 6 insertions, 0 deletions
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