Author: mkarcher Date: 2010-01-13 00:29:30 +0100 (Wed, 13 Jan 2010) New Revision: 862
Modified: trunk/flashchips.c trunk/flashchips.h Log: Support for Spansion S25FL008A
Tested with read/erase/write (including verify). I only wrote the image that was read before - don't want to brick my laptop.
Signed-off-by: Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/flashchips.c =================================================================== --- trunk/flashchips.c 2010-01-12 23:29:26 UTC (rev 861) +++ trunk/flashchips.c 2010-01-12 23:29:30 UTC (rev 862) @@ -3285,6 +3285,32 @@
{ .vendor = "Spansion", + .name = "S25FL008A", + .bustype = CHIP_BUSTYPE_SPI, + .manufacture_id = SPANSION_ID, + .model_id = SPANSION_S25FL008A, + .total_size = 1024, + .page_size = 256, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .erase = NULL, + .block_erasers = + { + { + .eraseblocks = { {64 * 1024, 16} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {1024 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .write = spi_chip_write_256, + .read = spi_chip_read, + }, + + { + .vendor = "Spansion", .name = "S25FL016A", .bustype = CHIP_BUSTYPE_SPI, .manufacture_id = SPANSION_ID,
Modified: trunk/flashchips.h =================================================================== --- trunk/flashchips.h 2010-01-12 23:29:26 UTC (rev 861) +++ trunk/flashchips.h 2010-01-12 23:29:30 UTC (rev 862) @@ -365,6 +365,7 @@ * the second device ID byte is memory capacity. */ #define SPANSION_ID 0x01 /* Spansion, same ID as AMD */ +#define SPANSION_S25FL008A 0x0213 #define SPANSION_S25FL016A 0x0214
/*