summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-03-30 13:50:13 +0200
committerDavid Hendricks <david.hendricks@gmail.com>2018-05-06 21:00:41 +0000
commit256835787229205b6522a3c12322b22303bb4152 (patch)
tree2748ffea8f72a8d7000fc8b928df9756c689aca1 /flashchips.c
parent25584de9d0108a5dde41e0296fdf0a7854390a81 (diff)
downloadflashrom-256835787229205b6522a3c12322b22303bb4152.tar.gz
flashrom-256835787229205b6522a3c12322b22303bb4152.tar.bz2
flashrom-256835787229205b6522a3c12322b22303bb4152.zip
flashchips: Add Winbond 25Q40EW and rename 25Q40.W
Same story as for 25Q80BW/EW, 25Q40EW has a new ID and the only known chip with the old ID is the BW variant. Change-Id: Ib610b0d6f3a5561b2ac3505ef15bdee8b0edae25 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/25462 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c44
1 files changed, 42 insertions, 2 deletions
diff --git a/flashchips.c b/flashchips.c
index 3c045331a..8eda60884 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -15137,10 +15137,10 @@ const struct flashchip flashchips[] = {
{
.vendor = "Winbond",
- .name = "W25Q40.W",
+ .name = "W25Q40BW",
.bustype = BUS_SPI,
.manufacture_id = WINBOND_NEX_ID,
- .model_id = WINBOND_NEX_W25Q40_W,
+ .model_id = WINBOND_NEX_W25Q40BW,
.total_size = 512,
.page_size = 256,
/* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
@@ -15212,6 +15212,46 @@ const struct flashchip flashchips[] = {
.read = spi_chip_read,
.voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
},
+
+ {
+ .vendor = "Winbond",
+ .name = "W25Q40EW",
+ .bustype = BUS_SPI,
+ .manufacture_id = WINBOND_NEX_ID,
+ .model_id = WINBOND_NEX_W25Q40EW,
+ .total_size = 512,
+ .page_size = 256,
+ /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_UNTESTED,
+ .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,
+ .read = spi_chip_read,
+ .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
+ },
+
{
.vendor = "Winbond",
.name = "W25Q80EW",