summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-12 12:06:18 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-12 12:06:18 +0000
commit2f1b36fb35873c599442e1828756c1993524cd5e (patch)
tree836e46a0ba0fcd1ce41a52eddcb3437c2d08e2e5 /flash.h
parent39fa9b55cd4c049f43124b873b464641fc9f79a9 (diff)
downloadast2050-flashrom-2f1b36fb35873c599442e1828756c1993524cd5e.zip
ast2050-flashrom-2f1b36fb35873c599442e1828756c1993524cd5e.tar.gz
Convert SPI byte program to use the multicommand infrastructure
Tested-by: Jakob Bornecrantz <wallbraker@gmail.com> Corresponding to flashrom svn r651. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Tested it on Epia-m700 worked okay. Acked-by: Jakob Bornecrantz <wallbraker@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/flash.h b/flash.h
index 8783032..e31a219 100644
--- a/flash.h
+++ b/flash.h
@@ -446,9 +446,9 @@ int spi_chip_write_256(struct flashchip *flash, uint8_t *buf);
int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len);
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_byte_program(int addr, uint8_t byte);
+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_aai_write(struct flashchip *flash, uint8_t *buf);
uint32_t spi_get_valid_read_addr(void);
OpenPOWER on IntegriCloud