summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-09-09 23:03:32 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-09-09 23:03:32 +0000
commit648d0ec32986773397c62400e24eb9e92219fe91 (patch)
treef9b10dcbfdd9ae754f450ac6891712247c10edee
parent34087510a80cbb9b14177bb63558024e40b146ca (diff)
downloadflashrom-648d0ec32986773397c62400e24eb9e92219fe91.zip
flashrom-648d0ec32986773397c62400e24eb9e92219fe91.tar.gz
Add support for Winbond W25Q40.V chips
Read-tested by Peter Ruesch. Corresponding to flashrom svn r1850. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-rw-r--r--flashchips.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 8bfd3cc..39fd671 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -12940,6 +12940,46 @@ const struct flashchip flashchips[] = {
{
.vendor = "Winbond",
+ .name = "W25Q40.V",
+ .bustype = BUS_SPI,
+ .manufacture_id = WINBOND_NEX_ID,
+ .model_id = WINBOND_NEX_W25Q40_V,
+ .total_size = 512,
+ .page_size = 256,
+ /* supports SFDP */
+ /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_OK_PR,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .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,
+ }
+ },
+ .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256, /* Multi I/O supported */
+ .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "Winbond",
.name = "W25Q80.V",
.bustype = BUS_SPI,
.manufacture_id = WINBOND_NEX_ID,
OpenPOWER on IntegriCloud