aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2022-05-28 14:26:06 +0200
committerNico Huber <nico.h@gmx.de>2022-06-20 16:49:24 +0000
commitfe47c15b999f45d67e637666bccb472c2adf7dd1 (patch)
treeedfbc41e31e46c5a73ca9c0afd3e086558bf2906 /include
parentf6d702e2d09f604830070fc0079374955481be5d (diff)
downloadflashrom-fe47c15b999f45d67e637666bccb472c2adf7dd1.tar.gz
flashrom-fe47c15b999f45d67e637666bccb472c2adf7dd1.tar.bz2
flashrom-fe47c15b999f45d67e637666bccb472c2adf7dd1.zip
flashchips: Add Spansion (today Infineon) S25FL128L and S25FL256L
These chips seem to be rather regular, supporting 2.7V..3.6V, the common erase block sizes 4KiB, 32KiB, 64KiB and the usual block- protection bits. Status/configuration register naming differs from other vendors, though. These chips have 2 status registers plus 3 configuration registers. Configuration registers 1 & 2 match status registers 2 & 3 of what we are used from other vendors. Read opcodes match too, however writes are always done through the WRSR instruction which can write up to 4 bytes (SR1, CR1, CR2, CR3). S25FL256L supports native 4BA commands and entering a 4BA mode. However, it uses an unusual opcode (0x53) for the 32KiB 4BA block erase. Signed-off-by: Nico Huber <nico.h@gmx.de> Change-Id: I356df6649f29e50879a4da4183f1164a81cb0a09 Reviewed-on: https://review.coreboot.org/c/flashrom/+/64747 Reviewed-by: Thomas Heijligen <src@posteo.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/chipdrivers.h1
-rw-r--r--include/flashchips.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/chipdrivers.h b/include/chipdrivers.h
index 33e2914a..2ef7f183 100644
--- a/include/chipdrivers.h
+++ b/include/chipdrivers.h
@@ -41,6 +41,7 @@ int spi_block_erase_20(struct flashctx *flash, unsigned int addr, unsigned int b
int spi_block_erase_21(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_53(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
int spi_block_erase_5c(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);
diff --git a/include/flashchips.h b/include/flashchips.h
index 999139e2..5df42dcf 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -668,6 +668,8 @@
#define SPANSION_S25FL116K 0x4015
#define SPANSION_S25FL132K 0x4016
#define SPANSION_S25FL164K 0x4017
+#define SPANSION_S25FL128L 0x6018
+#define SPANSION_S25FL256L 0x6019
#define SPANSION_S25FS128S_L 0x20180081 /* Large sectors. */
#define SPANSION_S25FS128S_S 0x20180181 /* Small sectors. */
#define SPANSION_S25FS256S_L 0x02190081 /* Large sectors. */