From 291c101c66adcb1c3435934f3f49fa7f24f7c249 Mon Sep 17 00:00:00 2001 From: Evan Jensen Date: Thu, 17 May 2018 14:30:19 -0700 Subject: Add support for the AT25SF081 Change-Id: I1a3d900462ad9e7a3b34575d7c98acc7c2df0445 Signed-off-by: Evan Jensen Reviewed-on: https://review.coreboot.org/26779 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- flashchips.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'flashchips.c') diff --git a/flashchips.c b/flashchips.c index 8eda60884..9898fa777 100644 --- a/flashchips.c +++ b/flashchips.c @@ -2209,6 +2209,44 @@ const struct flashchip flashchips[] = { .voltage = {2500, 3600}, }, + { + .vendor = "Atmel", + .name = "AT25SF081", + .bustype = BUS_SPI, + .manufacture_id = ATMEL_ID, + .model_id = ATMEL_AT25SF081, + .total_size = 1024, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {4 * 1024, 256} }, + .block_erase = spi_block_erase_20, + }, { + .eraseblocks = { {32 * 1024, 32} }, + .block_erase = spi_block_erase_52, + }, { + .eraseblocks = { {64 * 1024, 16} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {1024 * 1024, 1} }, + .block_erase = spi_block_erase_60, + }, { + .eraseblocks = { {1024 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .printlock = spi_prettyprint_status_register_plain, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {2300, 3600}, + }, + { .vendor = "Atmel", .name = "AT25SF161", -- cgit v1.2.3