summaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-09-21 12:46:56 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-09-21 12:46:56 +0000
commit0cae7d64f703b65494eef91ef22e47c0346662c4 (patch)
tree55a94a70e9662a8558667c171b33bdfe99be483e /spi.h
parentedf9a0c37643128e4e25cf18150a94728aafb52e (diff)
downloadflashrom-0cae7d64f703b65494eef91ef22e47c0346662c4.zip
flashrom-0cae7d64f703b65494eef91ef22e47c0346662c4.tar.gz
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 <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/spi.h b/spi.h
index a57f1b6..ce2ede8 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
OpenPOWER on IntegriCloud