summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHal Martin <hal.martin@gmail.com>2018-05-27 14:18:43 +0200
committerNico Huber <nico.h@gmx.de>2018-10-03 14:49:39 +0000
commit49e23d2e3750c91776662380fea4c6e6e3b1e14f (patch)
tree4b26dbbf3877520cf43b06329cb279e100f0256d
parent6329b0af1d5338ed5e6066168544b80f9a2c4435 (diff)
downloadflashrom-49e23d2e3750c91776662380fea4c6e6e3b1e14f.tar.gz
flashrom-49e23d2e3750c91776662380fea4c6e6e3b1e14f.tar.bz2
flashrom-49e23d2e3750c91776662380fea4c6e6e3b1e14f.zip
flashchips: Add ATMEL AT25SL128A
Change-Id: I60c433ffe9e34663c2cfc608b8b76943cd92a8ba Signed-off-by: Hal Martin <hal.martin@gmail.com> Reviewed-on: https://review.coreboot.org/26576 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-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 fdaaa2fbb..242dc02f9 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -2325,6 +2325,45 @@ const struct flashchip flashchips[] = {
},
{
+ .vendor = "ATMEL",
+ .name = "AT25SL128A",
+ .bustype = BUS_SPI,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT25SL128A,
+ .total_size = 16384,
+ .page_size = 256,
+ /* supports SFDP */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+ .tested = TEST_OK_PREW,
+ .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 = {1700, 2000},
+ },
+
+ {
.vendor = "Atmel",
.name = "AT26DF041",
.bustype = BUS_SPI,
diff --git a/flashchips.h b/flashchips.h
index d17d26d23..317510c35 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -150,6 +150,7 @@
#define ATMEL_AT25SF041 0x8401
#define ATMEL_AT25SF081 0x8501
#define ATMEL_AT25SF161 0x8601
+#define ATMEL_AT25SL128A 0x4218
#define ATMEL_AT26DF041 0x4400
#define ATMEL_AT26DF081 0x4500 /* guessed, no datasheet available */
#define ATMEL_AT26DF081A 0x4501