diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-29 16:32:24 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-29 16:32:24 +0000 |
commit | d99b8d3b6e6912a1b09394bc6a03f148fdb8e7ed (patch) | |
tree | 66b3b09a1cdc85bd0dec6f18f9eaab9d9e49c260 /spi.h | |
parent | 04e18bea9fb28f64825b1c1edd28aeae9cb6919a (diff) | |
download | flashrom-d99b8d3b6e6912a1b09394bc6a03f148fdb8e7ed.tar.gz flashrom-d99b8d3b6e6912a1b09394bc6a03f148fdb8e7ed.tar.bz2 flashrom-d99b8d3b6e6912a1b09394bc6a03f148fdb8e7ed.zip |
Fix bug introduced in AAI code rewrite (r1052)
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.
Corresponding to flashrom svn r1121.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'spi.h')
-rw-r--r-- | spi.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |