Hal Martin has uploaded this change for review.

View Change

flashchips: Add ATMEL AT25SL128A

Change-Id: I60c433ffe9e34663c2cfc608b8b76943cd92a8ba
Signed-off-by: Hal Martin <hal.martin@gmail.com>
---
M flashchips.c
M flashchips.h
2 files changed, 41 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/76/26576/1
diff --git a/flashchips.c b/flashchips.c
index 8eda608..4f2edfa 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -2248,6 +2248,46 @@
},

{
+ .vendor = "ATMEL",
+ .name = "AT25SL128A",
+ .bustype = BUS_SPI,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT25SL128A,
+ .total_size = 16384,
+ .page_size = 256,
+ /* supports SFDP */
+ /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 4096} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 512} },
+ .block_erase = spi_block_erase_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 256} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {16 * 1024 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ }, {
+ .eraseblocks = { {16 * 1024 * 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 = {1650, 1950},
+ },
+
+ {
.vendor = "Atmel",
.name = "AT26DF041",
.bustype = BUS_SPI,
diff --git a/flashchips.h b/flashchips.h
index f00be3b..f11b0d3 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -147,6 +147,7 @@
#define ATMEL_AT25FS010 0x6601
#define ATMEL_AT25FS040 0x6604
#define ATMEL_AT25SF041 0x8401
+#define ATMEL_AT25SL128A 0x4218
#define ATMEL_AT26DF041 0x4400
#define ATMEL_AT26DF081 0x4500 /* guessed, no datasheet available */
#define ATMEL_AT26DF081A 0x4501

To view, visit change 26576. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I60c433ffe9e34663c2cfc608b8b76943cd92a8ba
Gerrit-Change-Number: 26576
Gerrit-PatchSet: 1
Gerrit-Owner: Hal Martin <hal.martin+coreboot@gmail.com>