path: root/sb600spi.c
diff options
authorCarl-Daniel Hailfinger <>2009-06-16 08:55:44 +0000
committerCarl-Daniel Hailfinger <>2009-06-16 08:55:44 +0000
commitcbf563cbde925dae6971c7df305493a638de51c6 (patch)
tree29b0a806979474c3d8dcbc6acfa7022728ca4a15 /sb600spi.c
parent30f7cb2f3c570c99b61bd5df72621f44f1bdd0d0 (diff)
Support reads of arbitrary range
That means you can tell flashrom to read exactly bytes 12345-56789 (start 12345, length 44445) and it will not fetch a single byte more. Uwe tested this on one LPC, one SPI, and one parallel flash board. Corresponding to flashrom svn r596. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'sb600spi.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 259ad27..f4f3492 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -39,10 +39,10 @@ struct sb600_spi_controller {
struct sb600_spi_controller *spi_bar = NULL;
uint8_t *sb600_spibar;
-int sb600_spi_read(struct flashchip *flash, uint8_t *buf)
+int sb600_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len)
/* Maximum read length is 8 bytes. */
- return spi_read_chunked(flash, buf, 8);
+ return spi_read_chunked(flash, buf, start, len, 8);
uint8_t sb600_read_status_register(void)
OpenPOWER on IntegriCloud