Julian von Mendel has uploaded this change for review. ( https://review.coreboot.org/25047
Change subject: Support for Atmel / Adesto AT25SF041 SPI flash chip ......................................................................
Support for Atmel / Adesto AT25SF041 SPI flash chip
Change-Id: I0be930ff2258300508398e12fbe5abe10400fea2 --- M flashchips.c M flashchips.h 2 files changed, 33 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/47/25047/1
diff --git a/flashchips.c b/flashchips.c index 1ab4986..2a2855f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -2177,6 +2177,38 @@
{ .vendor = "Atmel", + .name = "AT25SF041", + .bustype = BUS_SPI, + .manufacture_id = ATMEL_ID, + .model_id = ATMEL_AT25SF041, + .total_size = 512, + .page_size = 256, + /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {256, 2048} }, + .block_erase = spi_block_erase_81, + }, { + .eraseblocks = { {2 * 1024, 256} }, + .block_erase = spi_block_erase_50, + }, { + .eraseblocks = { {4 * 1024, 128} }, + .block_erase = spi_block_erase_20, + } + }, + .printlock = spi_prettyprint_status_register_plain, + /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */ + .write = spi_chip_write_1, + .read = spi_chip_read, /* Fast read (0x0B) supported */ + .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */ + }, + + { + .vendor = "Atmel", .name = "AT26DF041", .bustype = BUS_SPI, .manufacture_id = ATMEL_ID, diff --git a/flashchips.h b/flashchips.h index 452f776..98d6e03 100644 --- a/flashchips.h +++ b/flashchips.h @@ -150,6 +150,7 @@ #define ATMEL_AT25F4096 0x64 /* Needs AT25F_RDID */ #define ATMEL_AT25FS010 0x6601 #define ATMEL_AT25FS040 0x6604 +#define ATMEL_AT25SF041 0x8401 #define ATMEL_AT26DF041 0x4400 #define ATMEL_AT26DF081 0x4500 /* guessed, no datasheet available */ #define ATMEL_AT26DF081A 0x4501