diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-06-04 16:17:03 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-06-04 16:17:03 +0000 |
commit | a60d408a78be0e0d34dda616977489a307cb98b6 (patch) | |
tree | 012c6fd5e70fa651b144f556c7e3a0b3f605d18a /flashchips.c | |
parent | 2a10e70cd3b3e974c173b035dae01bf53899c228 (diff) | |
download | flashrom-a60d408a78be0e0d34dda616977489a307cb98b6.tar.gz flashrom-a60d408a78be0e0d34dda616977489a307cb98b6.tar.bz2 flashrom-a60d408a78be0e0d34dda616977489a307cb98b6.zip |
Add support for Sanyo LE25FW106
Also, add spi_disable_blockprotect_bp1_srwd().
Originally written and tested by The Raven <originalraven@hotmail.com>.
Corresponding to flashrom svn r1818.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c index 1bb6f279..0c3bb680 100644 --- a/flashchips.c +++ b/flashchips.c @@ -9153,6 +9153,37 @@ const struct flashchip flashchips[] = { { .vendor = "Sanyo", + .name = "LE25FW106", + .bustype = BUS_SPI, + .manufacture_id = SANYO_ID, + .model_id = SANYO_LE25FW106, + .total_size = 128, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, + .probe = probe_spi_res2, + .probe_timing = TIMING_ZERO, + .block_erasers = { + { + .eraseblocks = { {2 * 1024, 64} }, + .block_erase = spi_block_erase_d7, + }, { + .eraseblocks = { {32 * 1024, 4} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {128 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ + .unlock = spi_disable_blockprotect_bp1_srwd, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {2700, 3600}, + }, + + { + .vendor = "Sanyo", .name = "LE25FW406A", .bustype = BUS_SPI, .manufacture_id = SANYO_ID, |