summaryrefslogtreecommitdiff
path: root/spi.h
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-29 16:32:24 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-29 16:32:24 +0000
commit1768223cca7fff0ab4ee1b0e5bbc51f72a5c3348 (patch)
tree66b3b09a1cdc85bd0dec6f18f9eaab9d9e49c260 /spi.h
parentcac0493246093e3142f887122e7255ab416c2db2 (diff)
downloadflashrom-1768223cca7fff0ab4ee1b0e5bbc51f72a5c3348.tar.gz
The AAI code rewrite in r1052 introduced a bug: The writelen of AAI
continuation is 3 bytes, but the code incorrectly had 6 bytes there. This causes all AAI writes (except the first two bytes of a chip) to fail. Thanks to den_m for reporting the bug and for testing the fix. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1121 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/spi.h b/spi.h
index edf303e..6f5442a 100644
--- a/spi.h
+++ b/spi.h
@@ -108,15 +108,15 @@
/* JEDEC_READ_INSIZE : any length */
/* Write memory byte */
-#define JEDEC_BYTE_PROGRAM 0x02
+#define JEDEC_BYTE_PROGRAM 0x02
#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
+#define JEDEC_AAI_WORD_PROGRAM 0xad
+#define JEDEC_AAI_WORD_PROGRAM_OUTSIZE 0x06
+#define JEDEC_AAI_WORD_PROGRAM_CONT_OUTSIZE 0x03
+#define JEDEC_AAI_WORD_PROGRAM_INSIZE 0x00
/* Error codes */
#define SPI_GENERIC_ERROR -1