Vasily Galkin has uploaded this change for review.
Add support for IS25WQ040
Based on https://github.com/flashrom/flashrom/pull/204
Signed-off-by: Roman Stingler <roman.stingler@gmail.com>
Squashed with fixes of IS25WQ040 size: it is 4Mbits, not 4MBytes.
Fixes were tested on a real chip with ft2232_spi programmer.
Signed-off-by: Vasily Galkin <galkin-vv@ya.ru>
Change-Id: I072c6b94d7931637d1c2721c3316205f2d57320e
---
M flashchips.c
M flashchips.h
2 files changed, 43 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/79/58179/1
diff --git a/flashchips.c b/flashchips.c
index 434c46d..57cc3c4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -7611,6 +7611,48 @@
{
.vendor = "ISSI",
+ .name = "IS25WQ040",
+ .bustype = BUS_SPI,
+ .manufacture_id = ISSI_ID_SPI,
+ .model_id = ISSI_IS25WQ040,
+ .total_size = 512,
+ .page_size = 256,
+ /* OTP: 1024B total; read 0x48; write 0x42 */
+ /* QPI enable 0x35, disable 0xF5 */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = spi_block_erase_d7,
+ }, {
+ .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,
+ }
+ },
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {1650, 1950},
+ },
+
+ {
+ .vendor = "ISSI",
.name = "IS29GL064B",
.bustype = BUS_PARALLEL,
.manufacture_id = ISSI_ID,
diff --git a/flashchips.h b/flashchips.h
index e190dca..2bce460 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -479,6 +479,7 @@
#define ISSI_IS25WP064 0x7017
#define ISSI_IS25WP128 0x7018
#define ISSI_IS25WP256 0x7019
+#define ISSI_IS25WQ040 0x1253
#define ISSI_PMC_IS29GL032B 0xF9
#define ISSI_PMC_IS29GL032T 0xF6
#define ISSI_PMC_IS29GL064B 0x7E1000
To view, visit change 58179. To unsubscribe, or for help writing mail filters, visit settings.