summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-05-01 14:04:19 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-05-01 14:04:19 +0000
commit730e7e74ebf11560d1c852934b18e98d1200ce53 (patch)
treef9bc3f738776ff40df3d128e7dbc145ac580cb0c /chipdrivers.h
parentf44516121aecbd307a9398fe9bc1ec9ce25bfb09 (diff)
downloadast2050-flashrom-730e7e74ebf11560d1c852934b18e98d1200ce53.zip
ast2050-flashrom-730e7e74ebf11560d1c852934b18e98d1200ce53.tar.gz
Update spi_get_erasefn_from_opcode()
We forgot to add a few SPI erase functions to the helper function that is used for SFDP. Also, sort the declarations in the header. Corresponding to flashrom svn r1672. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r--chipdrivers.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index 243b64a..dd20631 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -45,12 +45,12 @@ int spi_write_disable(struct flashctx *flash);
int spi_block_erase_20(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_50(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_52(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
-int spi_block_erase_81(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
-int spi_block_erase_d7(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
-int spi_block_erase_d8(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_60(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_62(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
+int spi_block_erase_81(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_c7(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
+int spi_block_erase_d7(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
+int spi_block_erase_d8(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
erasefunc_t *spi_get_erasefn_from_opcode(uint8_t opcode);
int spi_chip_write_1(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len);
int spi_byte_program(struct flashctx *flash, unsigned int addr, uint8_t databyte);
OpenPOWER on IntegriCloud