From 3c0fcd0f30f2b3c0df57b66e645859d923e68d16 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Fri, 21 Sep 2012 12:46:56 +0000 Subject: Add spi_block_erase_62 This is used by the AT25F series (only?), but is generic enough to reside in spi25.c. The only currently supported chip is the AT25F512B. Other members of that series need some additional infrastructure code, hence this patch adds the erase function to the AT25F512B only. Corresponding to flashrom svn r1600. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- chipdrivers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'chipdrivers.h') diff --git a/chipdrivers.h b/chipdrivers.h index b43e16e..b8af62a 100644 --- a/chipdrivers.h +++ b/chipdrivers.h @@ -40,6 +40,7 @@ int spi_block_erase_52(struct flashctx *flash, unsigned int addr, unsigned int b 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_c7(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); -- cgit v1.1