diff options
author | Mario Kicherer <dev@kicherer.org> | 2022-10-11 12:04:59 +0200 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2023-06-16 01:16:47 +0000 |
commit | 4652df95f1998440032069dd2c04ee46413b362e (patch) | |
tree | a3eaf9d012c354e8a04306251936a9d6988400cb /flashchips.c | |
parent | 4325bb5b1f4d937ba3c2226692d79ab2284151e0 (diff) | |
download | flashrom-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>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 41 |
1 files changed, 41 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, |