diff options
| author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-01-12 23:29:30 +0000 | 
|---|---|---|
| committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-01-12 23:29:30 +0000 | 
| commit | 23ff4601acc85484f25b399ea4ce23d366b42b1c (patch) | |
| tree | b57128124525780aeb838c6c4059620aea03cf3c | |
| parent | 4e2fb0ee3ebbdf1f2da6ca1a3937f63eeac647b4 (diff) | |
| download | flashrom-23ff4601acc85484f25b399ea4ce23d366b42b1c.tar.gz flashrom-23ff4601acc85484f25b399ea4ce23d366b42b1c.tar.bz2 flashrom-23ff4601acc85484f25b399ea4ce23d366b42b1c.zip | |
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.
Corresponding to flashrom svn r862.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
| -rw-r--r-- | flashchips.c | 26 | ||||
| -rw-r--r-- | flashchips.h | 1 | 
2 files changed, 27 insertions, 0 deletions
| diff --git a/flashchips.c b/flashchips.c index 1d53c823..8e90d2aa 100644 --- a/flashchips.c +++ b/flashchips.c @@ -3285,6 +3285,32 @@ struct flashchip flashchips[] = {  	{  		.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, diff --git a/flashchips.h b/flashchips.h index 19ff7459..2a4d93b6 100644 --- a/flashchips.h +++ b/flashchips.h @@ -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  /* | 
