aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Mauch <steffen.mauch@gmail.com>2018-06-02 23:46:03 +0200
committerNico Huber <nico.h@gmx.de>2018-06-06 08:57:36 +0000
commit0b59b0dafc219ba73ee2af5404ce626575d74c6f (patch)
tree66d5ca2bc1266e1c5d1111c26ab48264feb4393b
parenta50b8fde67fa52984980159127de789cf9a1c688 (diff)
downloadflashrom-0b59b0dafc219ba73ee2af5404ce626575d74c6f.tar.gz
flashrom-0b59b0dafc219ba73ee2af5404ce626575d74c6f.tar.bz2
flashrom-0b59b0dafc219ba73ee2af5404ce626575d74c6f.zip
Add support for AT25DF021A
This is the low-voltage version of the AT25DF021. Tested with FT2232H Mini Module Change-Id: If4990e6856c8b77567ef4218459cf754b9c6bc57 Signed-off-by: Steffen Mauch <steffen.mauch@gmail.com> Reviewed-on: https://review.coreboot.org/26856 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--flashchips.c39
-rw-r--r--flashchips.h1
2 files changed, 40 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 9898fa77..17cb1b4b 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1519,6 +1519,45 @@ const struct flashchip flashchips[] = {
{
.vendor = "Atmel",
+ .name = "AT25DF021A",
+ .bustype = BUS_SPI,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT25DF021A,
+ .total_size = 256,
+ .page_size = 256,
+ /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_OK_PREW,
+ .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_at25df,
+ .unlock = spi_disable_blockprotect_at2x_global_unprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {1650, 3600},
+ },
+
+ {
+ .vendor = "Atmel",
.name = "AT25DF041A",
.bustype = BUS_SPI,
.manufacture_id = ATMEL_ID,
diff --git a/flashchips.h b/flashchips.h
index dfbda5d1..5dedb38e 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -128,6 +128,7 @@
#define ATMEL_ID 0x1F /* Atmel (now used by Adesto) */
#define ATMEL_AT25DF021 0x4300
+#define ATMEL_AT25DF021A 0x4301
#define ATMEL_AT25DF041A 0x4401
#define ATMEL_AT25DF081 0x4502 /* EDI 0x00. AT25DL081 has same ID + EDI 0x0100 */
#define ATMEL_AT25DF081A 0x4501 /* Yes, 81A has a lower number than 81 */