summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Hendricks <david.hendricks@gmail.com>2018-02-11 17:58:44 -0800
committerDavid Hendricks <david.hendricks@gmail.com>2018-02-22 01:37:55 +0000
commita72d5a98286272094dda06f5c69b48910f6a7451 (patch)
treef75e3e21a0309e493158027b6b762b93e8968b1a
parent4164c54196deca789b80e6a0b1be5f70e142b729 (diff)
downloadflashrom-a72d5a98286272094dda06f5c69b48910f6a7451.tar.gz
flashrom-a72d5a98286272094dda06f5c69b48910f6a7451.tar.bz2
flashrom-a72d5a98286272094dda06f5c69b48910f6a7451.zip
flashchips: Add ZD25D20
This adds another Zetta Device chip, the ZD25D20. Change-Id: Idf805252647be44e28296a161d2e6160710bcc71 Signed-off-by: David Hendricks <david.hendricks@gmail.com> Reviewed-on: https://review.coreboot.org/23702 Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--flashchips.c38
-rw-r--r--flashchips.h1
2 files changed, 39 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 1d458102a..1ab4986fd 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -16332,6 +16332,44 @@ const struct flashchip flashchips[] = {
{
.vendor = "Zetta Device",
+ .name = "ZD25D20",
+ .bustype = BUS_SPI,
+ .manufacture_id = ZETTADEVICE_ID,
+ .model_id = ZETTADEVICE_ZD25D20,
+ .total_size = 256,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 64} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 8} },
+ .block_erase = spi_block_erase_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 4} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {256 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ }, {
+ .eraseblocks = { {256 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "Zetta Device",
.name = "ZD25D40",
.bustype = BUS_SPI,
.manufacture_id = ZETTADEVICE_ID,
diff --git a/flashchips.h b/flashchips.h
index 8c07628bd..452f776cd 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -958,6 +958,7 @@
#define WINBOND_W49V002FA 0x32
#define ZETTADEVICE_ID 0xBA /* Zetta Device */
+#define ZETTADEVICE_ZD25D20 0x2012
#define ZETTADEVICE_ZD25D40 0x2013
#endif /* !FLASHCHIPS_H */