summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2018-05-04 16:22:40 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2018-11-28 23:19:27 -0600
commit564860d4614b0a80d0f7ed0c3a60eb435b932461 (patch)
treec31cbe277f459654947480408ad7bcd5c68355e9
parentca651b75d78a26e959a8ec5e21c5cee2590c75e5 (diff)
downloadast2050-flashrom-564860d4614b0a80d0f7ed0c3a60eb435b932461.zip
ast2050-flashrom-564860d4614b0a80d0f7ed0c3a60eb435b932461.tar.gz
Add Atmel AT25DF021A support
-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 60baa73..76cc8c4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1523,6 +1523,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_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_at25df,
+ .unlock = spi_disable_blockprotect_at2x_global_unprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
+ },
+
+ {
+ .vendor = "Atmel",
.name = "AT25DF041A",
.bustype = BUS_SPI,
.manufacture_id = ATMEL_ID,
diff --git a/flashchips.h b/flashchips.h
index 7171a62..d5c80cb 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -132,6 +132,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 */
OpenPOWER on IntegriCloud