summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-04-16 12:10:14 +0200
committerNikolai Artemiev <nartemiev@google.com>2023-08-15 06:11:21 +0000
commit8a3db802eac8dce263d00f8812422d7470fb2065 (patch)
tree9f9493d07f852234edae3a78d69186de66d7aeb2
parentd666a8189b8e591c4235dad9d25aad5f81c84b88 (diff)
downloadflashrom-8a3db802eac8dce263d00f8812422d7470fb2065.tar.gz
flashrom-8a3db802eac8dce263d00f8812422d7470fb2065.tar.bz2
flashrom-8a3db802eac8dce263d00f8812422d7470fb2065.zip
flashchips: Add ISSI IS25LQ016
Datasheet: http://www.issi.com/WW/pdf/25LQ016.pdf Tested all four PREW functions with a FT2232H. Change-Id: I02f19767b8a60fb2d37adab34894b6edb6ac4494 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/40431 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
-rw-r--r--flashchips.c40
-rw-r--r--include/flashchips.h1
2 files changed, 41 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 4ca37a7bf..98bce407f 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -7723,6 +7723,46 @@ const struct flashchip flashchips[] = {
.voltage = {2300, 3600},
},
+
+ {
+ .vendor = "ISSI",
+ .name = "IS25LQ016",
+ .bustype = BUS_SPI,
+ .manufacture_id = ISSI_ID_SPI,
+ .model_id = ISSI_IS25LQ016,
+ .total_size = 2048,
+ .page_size = 256,
+ /* OTP: 256B total; read 0x4b; write 0xb1 */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+ .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 = { {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,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
+ .unlock = SPI_DISABLE_BLOCKPROTECT,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {2300, 3600},
+ },
+
{
.vendor = "ISSI",
.name = "IS25WP016",
diff --git a/include/flashchips.h b/include/flashchips.h
index 9e2564c2d..976b4cb0c 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -478,6 +478,7 @@
#define ISSI_IS25LP064 0x6017
#define ISSI_IS25LP128 0x6018
#define ISSI_IS25LP256 0x6019
+#define ISSI_IS25LQ016 0x1445
#define ISSI_IS25WP016 0x7015
#define ISSI_IS25WP020 0x7012
#define ISSI_IS25WP032 0x7016