summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Kicherer <dev@kicherer.org>2022-10-11 12:04:59 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2023-06-16 01:16:47 +0000
commit4652df95f1998440032069dd2c04ee46413b362e (patch)
treea3eaf9d012c354e8a04306251936a9d6988400cb
parent4325bb5b1f4d937ba3c2226692d79ab2284151e0 (diff)
downloadflashrom-4652df95f1998440032069dd2c04ee46413b362e.tar.gz
flashrom-4652df95f1998440032069dd2c04ee46413b362e.tar.bz2
flashrom-4652df95f1998440032069dd2c04ee46413b362e.zip
flashchips: add support for ISSI IS25LP016
I took the original patch from Ondrej Hennel [1] and applied the requested changes. Reading, erasing and writing works. [1] https://patchwork.ozlabs.org/project/flashrom/list/?series=261647 Change-Id: Iffd7c4284d4d96b30a94f5dee882b5403fdfc183 Signed-off-by: Mario Kicherer <dev@kicherer.org> Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/68295 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
-rw-r--r--flashchips.c41
-rw-r--r--include/flashchips.h1
2 files changed, 42 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 295eb11f8..3f0968757 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -7552,6 +7552,47 @@ const struct flashchip flashchips[] = {
{
.vendor = "ISSI",
+ .name = "IS25LP016",
+ .bustype = BUS_SPI,
+ .manufacture_id = ISSI_ID_SPI,
+ .model_id = ISSI_IS25LP016,
+ .total_size = 2048,
+ .page_size = 256,
+ /* OTP: 1024B total; read 0x48; write 0x42 */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 512} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {4 * 1024, 512} },
+ .block_erase = SPI_BLOCK_ERASE_D7,
+ }, {
+ .eraseblocks = { {32 * 1024, 64} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 32} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {2 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {2 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {2300, 3600},
+ },
+
+ {
+ .vendor = "ISSI",
.name = "IS25LP064",
.bustype = BUS_SPI,
.manufacture_id = ISSI_ID_SPI,
diff --git a/include/flashchips.h b/include/flashchips.h
index 7d6dc32b2..d1ec61a95 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -474,6 +474,7 @@
#define ISSI_ID 0xD5 /* ISSI Integrated Silicon Solutions, see also PMC. */
#define ISSI_ID_SPI 0x9D /* ISSI ID used for SPI flash, see also PMC_ID_NOPREFIX */
+#define ISSI_IS25LP016 0x6015
#define ISSI_IS25LP064 0x6017
#define ISSI_IS25LP128 0x6018
#define ISSI_IS25LP256 0x6019