From 49e23d2e3750c91776662380fea4c6e6e3b1e14f Mon Sep 17 00:00:00 2001 From: Hal Martin Date: Sun, 27 May 2018 14:18:43 +0200 Subject: flashchips: Add ATMEL AT25SL128A Change-Id: I60c433ffe9e34663c2cfc608b8b76943cd92a8ba Signed-off-by: Hal Martin Reviewed-on: https://review.coreboot.org/26576 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Angel Pons --- flashchips.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'flashchips.c') diff --git a/flashchips.c b/flashchips.c index fdaaa2fb..242dc02f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -2324,6 +2324,45 @@ const struct flashchip flashchips[] = { .voltage = {2500, 3600}, }, + { + .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", -- cgit v1.2.3