summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorHanno Heinrichs <hanno.heinrichs@rwth-aachen.de>2021-02-23 22:35:36 +0100
committerAnastasia Klimchuk <aklm@chromium.org>2023-06-16 01:03:10 +0000
commit4325bb5b1f4d937ba3c2226692d79ab2284151e0 (patch)
tree104e2ed29227eee3893a9d88d4cd3694d95f746b /flashchips.c
parent3239be535d16b10881513c0e97500cbd110426ab (diff)
downloadflashrom-4325bb5b1f4d937ba3c2226692d79ab2284151e0.tar.gz
flashrom-4325bb5b1f4d937ba3c2226692d79ab2284151e0.tar.bz2
flashrom-4325bb5b1f4d937ba3c2226692d79ab2284151e0.zip
flashchips: Add AT25DF011
Tested read/write/erase/probe operations with a ch341a_spi programmer. Datasheet is available at https://www.mouser.de/datasheet/2/590/DS-AT25DF011_032-1098683.pdf Signed-off-by: Hanno Heinrichs <hanno.heinrichs@rwth-aachen.de> Change-Id: I5a2141f1380e864c843d6a3008fdb02dc1b75131 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/51048 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index ff8014021..295eb11f8 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1484,6 +1484,45 @@ const struct flashchip flashchips[] = {
{
.vendor = "Atmel",
+ .name = "AT25DF011",
+ .bustype = BUS_SPI,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT25DF011,
+ .total_size = 128,
+ .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, 32} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 4} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {32 * 1024, 4} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {128 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {128 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_AT25DF,
+ .unlock = SPI_DISABLE_BLOCKPROTECT_AT2X_GLOBAL_UNPROTECT,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {1650, 3600},
+ },
+
+ {
+ .vendor = "Atmel",
.name = "AT25DF021",
.bustype = BUS_SPI,
.manufacture_id = ATMEL_ID,