This older revision (?) of M25P20 chip was not detected correctly. Similar case was with M25P40 detection.
I have misplaced my narrow SOIC-8 adapter and cannot reproduce the test logs at the moment.
Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- flashchips.c | 27 +++++++++++++++++++++++++++ flashchips.h | 1 + 2 files changed, 28 insertions(+)
diff --git a/flashchips.c b/flashchips.c index d4ab1be..7321e6c 100644 --- a/flashchips.c +++ b/flashchips.c @@ -8327,6 +8327,33 @@ const struct flashchip flashchips[] = { },
{ + .vendor = "ST", + .name = "M25P20-old", + .bustype = BUS_SPI, + .manufacture_id = 0, /* Not used. */ + .model_id = ST_M25P20_RES, + .total_size = 256, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, + .probe = probe_spi_res1, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {64 * 1024, 4} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {256 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + }, + + { .vendor = "ST", /* Numonyx */ .name = "M25P40", .bustype = BUS_SPI, diff --git a/flashchips.h b/flashchips.h index 1a0696f..c4c72ba 100644 --- a/flashchips.h +++ b/flashchips.h @@ -572,6 +572,7 @@ #define ST_M25P10A 0x2011 #define ST_M25P10_RES 0x10 /* Same code as M25P05. */ #define ST_M25P20 0x2012 +#define ST_M25P20_RES 0x11 #define ST_M25P40 0x2013 #define ST_M25P40_RES 0x12 #define ST_M25P80 0x2014
On Sat, 23 Feb 2013 13:28:05 +0200 Kyösti Mälkki kyosti.malkki@gmail.com wrote:
This older revision (?) of M25P20 chip was not detected correctly. Similar case was with M25P40 detection.
I have misplaced my narrow SOIC-8 adapter and cannot reproduce the test logs at the moment.
Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com
Acked-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at Thanks, I have added a few more details and committed it in r1652.