Artur Kowalski has uploaded this change for review.

View Change

flashrom: add support for MX77L25650F chip

Add basic support Macronix MX77L25650F. Can both read and write the chip
as long as write protection is not enabled (WP is not supported at the
moment so can't disable it).

Change-Id: Iaea5485f8b59b8538dc47beada2c308376ea027c
Signed-off-by: Artur Kowalski <artur.kowalski@3mdeb.com>
---
M flashchips.c
M include/flashchips.h
2 files changed, 39 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/57/68557/1
diff --git a/flashchips.c b/flashchips.c
index 47a37ee..874cf19 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -10199,6 +10199,30 @@
.voltage = {2700, 3600},
},

+ {
+ .vendor = "Macronix",
+ .name = "MX77L25650F",
+ .bustype = BUS_SPI,
+ .manufacture_id = MACRONIX_ID,
+ .model_id = MACRONIX_MX77L25650F,
+ .total_size = 32768,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
+ .tested = TEST_OK_PR,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers = {
+ // TODO: add 64K block erase
+ {
+ .eraseblocks = { {32 * 1024, 1024} },
+ .block_erase = spi_block_erase_52,
+ },
+ },
+ // TODO: add support for flash protection
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ },
+
/* The ST M25P05 is a bit of a problem. It has the same ID as the
* ST M25P05-A in RES mode, but supports only 128 byte writes instead
* of 256 byte writes. We rely heavily on the fact that probe_spi_res1
diff --git a/include/flashchips.h b/include/flashchips.h
index 5df42dc..c5a9f23 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -521,6 +521,7 @@
#define MACRONIX_MX25U51245G 0x253a
#define MACRONIX_MX25L3235D 0x5E16 /* MX25L3225D/MX25L3235D/MX25L3237D */
#define MACRONIX_MX25L6495F 0x9517
+#define MACRONIX_MX77L25650F 0x7519

#define MACRONIX_MX25R3235F 0x2816
#define MACRONIX_MX25R6435F 0x2817

To view, visit change 68557. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Iaea5485f8b59b8538dc47beada2c308376ea027c
Gerrit-Change-Number: 68557
Gerrit-PatchSet: 1
Gerrit-Owner: Artur Kowalski <artur.kowalski@3mdeb.com>
Gerrit-MessageType: newchange