summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorPaul Fox <pgf@laptop.org>2009-06-12 08:10:33 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-12 08:10:33 +0000
commit92d7c6e86e089438e7f9c0eed5ee3bcea4bfb1b8 (patch)
treeeb0158fb55f7a6df9bf09ad72166f99a7670651e /flash.h
parentd96db0b7ab6a75a1e9d98634b21757fba5c8a148 (diff)
downloadflashrom-92d7c6e86e089438e7f9c0eed5ee3bcea4bfb1b8.zip
flashrom-92d7c6e86e089438e7f9c0eed5ee3bcea4bfb1b8.tar.gz
Add spi_nbyte_program as generic function to the SPI layer
Corresponding to flashrom svn r583. Signed-off-by: Paul Fox <pgf@laptop.org> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 88df409..2bf4462 100644
--- a/flash.h
+++ b/flash.h
@@ -757,6 +757,7 @@ int spi_chip_read(struct flashchip *flash, uint8_t *buf);
uint8_t spi_read_status_register(void);
int spi_disable_blockprotect(void);
void spi_byte_program(int address, uint8_t byte);
+int spi_nbyte_program(int address, uint8_t *bytes, int len);
int spi_nbyte_read(int address, uint8_t *bytes, int len);
int spi_aai_write(struct flashchip *flash, uint8_t *buf);
uint32_t spi_get_valid_read_addr(void);
OpenPOWER on IntegriCloud