diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-09 02:30:21 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-09 02:30:21 +0000 |
commit | 96930c39524225cc55a5625e6e45d7519b3f2528 (patch) | |
tree | 40368d966ea3689aa4c8c2b020984671cc45d1d9 /sb600spi.c | |
parent | 03adbe12691d512c0d9f28caa93cb35e468fd5d3 (diff) | |
download | flashrom-96930c39524225cc55a5625e6e45d7519b3f2528.tar.gz flashrom-96930c39524225cc55a5625e6e45d7519b3f2528.tar.bz2 flashrom-96930c39524225cc55a5625e6e45d7519b3f2528.zip |
Chips like the SST SST25VF080B can only handle single byte writes outside AAI mode
Change SPI architecture to handle 1-byte chunk chip writing differently
from 256-byte chunk chip writing.
Annotate SPI chip write functions with _256 or _1 suffix denoting the
number of bytes they write at maximum.
The 1-byte chunk writing is cut-n-pasted to different SPI drivers right
now. A later patch can move them to the generic spi_chip_write_1.
Corresponding to flashrom svn r485.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'sb600spi.c')
-rw-r--r-- | sb600spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sb600spi.c b/sb600spi.c index 095fba1bb..2ed1dd0a8 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -64,7 +64,7 @@ uint8_t sb600_read_status_register(void) return readarr[0]; } -int sb600_spi_write(struct flashchip *flash, uint8_t *buf) +int sb600_spi_write_1(struct flashchip *flash, uint8_t *buf) { int rc = 0, i; int total_size = flash->total_size * 1024; |