aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-09-20 00:07:23 +0200
committerThomas Heijligen <src@posteo.de>2022-12-14 10:54:47 +0000
commita856f53821ebe1b6b9541e2adf7337f7c43542eb (patch)
treec4d09fa8d4521f0403045ae800a011066c730079 /include
parentd1e97db8a2fbb13cbe4b19795adb677746b371e8 (diff)
downloadflashrom-a856f53821ebe1b6b9541e2adf7337f7c43542eb.tar.gz
flashrom-a856f53821ebe1b6b9541e2adf7337f7c43542eb.tar.bz2
flashrom-a856f53821ebe1b6b9541e2adf7337f7c43542eb.zip
spi.c: Add AT45 & SF25F erasefn opcode mapping
Change-Id: I798a91f1e20b63662715c68e6d43d03fc6005d51 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67717 Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/chipdrivers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/chipdrivers.h b/include/chipdrivers.h
index d2e13b4e..71b87954 100644
--- a/include/chipdrivers.h
+++ b/include/chipdrivers.h
@@ -53,7 +53,7 @@ int spi_block_erase_d8(struct flashctx *flash, unsigned int addr, unsigned int b
int spi_block_erase_db(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_dc(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
enum block_erase_func spi25_get_erasefn_from_opcode(uint8_t opcode);
-uint8_t spi_get_opcode_from_erasefn(enum block_erase_func func);
+const uint8_t *spi_get_opcode_from_erasefn(enum block_erase_func func);
int spi_chip_write_1(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
int spi_nbyte_read(struct flashctx *flash, unsigned int addr, uint8_t *bytes, unsigned int len);
int spi_read_chunked(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len, unsigned int chunksize);