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 --- spi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spi.h') diff --git a/spi.h b/spi.h index a57f1b67..ce2ede80 100644 --- a/spi.h +++ b/spi.h @@ -66,6 +66,11 @@ #define JEDEC_CE_60_OUTSIZE 0x01 #define JEDEC_CE_60_INSIZE 0x00 +/* Chip Erase 0x62 is supported by Atmel AT25F chips. */ +#define JEDEC_CE_62 0x62 +#define JEDEC_CE_62_OUTSIZE 0x01 +#define JEDEC_CE_62_INSIZE 0x00 + /* Chip Erase 0xc7 is supported by SST/ST/EON/Macronix chips. */ #define JEDEC_CE_C7 0xc7 #define JEDEC_CE_C7_OUTSIZE 0x01 -- cgit v1.2.3