diff options
Diffstat (limited to 'wbsio_spi.c')
-rw-r--r-- | wbsio_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wbsio_spi.c b/wbsio_spi.c index 8ca0abc..9ac15d1 100644 --- a/wbsio_spi.c +++ b/wbsio_spi.c @@ -173,7 +173,7 @@ int wbsio_spi_command(unsigned int writecnt, unsigned int readcnt, return 0; } -int wbsio_spi_read(struct flashchip *flash, uint8_t *buf) +int wbsio_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len) { int size = flash->total_size * 1024; @@ -182,7 +182,7 @@ int wbsio_spi_read(struct flashchip *flash, uint8_t *buf) return 1; } - read_memmapped(flash, buf); + read_memmapped(flash, buf, start, len); return 0; } |