diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-05-21 23:09:42 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-05-21 23:09:42 +0000 |
commit | 9f82928c470b196e1a9680c6628549ef2022ef64 (patch) | |
tree | 73c903182e7400386453acfbd7c738b3361849ff /chipdrivers.h | |
parent | 9ec5edff2b22caf0d1e29df85b01f20f2fe419cd (diff) | |
download | flashrom-9f82928c470b196e1a9680c6628549ef2022ef64.zip flashrom-9f82928c470b196e1a9680c6628549ef2022ef64.tar.gz |
Every SPI programmer driver had its own completely different chip write implementation, and all of them were insufficiently commented
Create spi_write_chunked as a copy of spi_read_chunked and convert all SPI
programmers to use it. No functional changes except: - Bus Pirate uses 12
Byte writes instead of 8 Byte writes - SB600 uses 5 Byte writes instead of
1 Byte writes
Corresponding to flashrom svn r1005.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: David Hendricks <dhendrix@google.com>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r-- | chipdrivers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chipdrivers.h b/chipdrivers.h index 6d5cef0..9537775 100644 --- a/chipdrivers.h +++ b/chipdrivers.h @@ -51,6 +51,7 @@ int spi_byte_program(int addr, uint8_t databyte); int spi_nbyte_program(int addr, uint8_t *bytes, int len); int spi_nbyte_read(int addr, uint8_t *bytes, int len); int spi_read_chunked(struct flashchip *flash, uint8_t *buf, int start, int len, int chunksize); +int spi_write_chunked(struct flashchip *flash, uint8_t *buf, int start, int len, int chunksize); int spi_aai_write(struct flashchip *flash, uint8_t *buf); /* 82802ab.c */ |