diff options
author | Sean Nelson <audiohacked@gmail.com> | 2010-02-12 18:40:27 +0000 |
---|---|---|
committer | Sean Nelson <audiohacked@gmail.com> | 2010-02-12 18:40:27 +0000 |
commit | 68b60a7809928cd3e427ea02e2f7c530cbfdcbad (patch) | |
tree | 7868108fa0f5432a7ee88607070e81e72e469902 /flashchips.c | |
parent | 6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e (diff) | |
download | flashrom-68b60a7809928cd3e427ea02e2f7c530cbfdcbad.zip flashrom-68b60a7809928cd3e427ea02e2f7c530cbfdcbad.tar.gz |
Fix erase blocks for Winbond W25X{10,20,40,80} SPI chips
The Winbond W25X10 and related chips only have 4k and 64k blocks and only
accept erase commands: 20h, d8h, and c7h.
Corresponding to flashrom svn r897.
Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: David Hendricks <dhendrix@google.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/flashchips.c b/flashchips.c index 2d29f57..14e6f7f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -5365,16 +5365,10 @@ struct flashchip flashchips[] = { .eraseblocks = { {4 * 1024, 32} }, .block_erase = spi_block_erase_20, }, { - .eraseblocks = { {32 * 1024, 4} }, - .block_erase = spi_block_erase_52, - }, { .eraseblocks = { {64 * 1024, 2} }, .block_erase = spi_block_erase_d8, }, { .eraseblocks = { {128 * 1024, 1} }, - .block_erase = spi_block_erase_60, - }, { - .eraseblocks = { {128 * 1024, 1} }, .block_erase = spi_block_erase_c7, } }, @@ -5399,16 +5393,10 @@ struct flashchip flashchips[] = { .eraseblocks = { {4 * 1024, 64} }, .block_erase = spi_block_erase_20, }, { - .eraseblocks = { {32 * 1024, 8} }, - .block_erase = spi_block_erase_52, - }, { .eraseblocks = { {64 * 1024, 4} }, .block_erase = spi_block_erase_d8, }, { .eraseblocks = { {256 * 1024, 1} }, - .block_erase = spi_block_erase_60, - }, { - .eraseblocks = { {256 * 1024, 1} }, .block_erase = spi_block_erase_c7, } }, @@ -5433,16 +5421,10 @@ struct flashchip flashchips[] = { .eraseblocks = { {4 * 1024, 128} }, .block_erase = spi_block_erase_20, }, { - .eraseblocks = { {32 * 1024, 16} }, - .block_erase = spi_block_erase_52, - }, { .eraseblocks = { {64 * 1024, 8} }, .block_erase = spi_block_erase_d8, }, { .eraseblocks = { {512 * 1024, 1} }, - .block_erase = spi_block_erase_60, - }, { - .eraseblocks = { {512 * 1024, 1} }, .block_erase = spi_block_erase_c7, } }, @@ -5467,16 +5449,10 @@ struct flashchip flashchips[] = { .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, } }, |