Ssunk has uploaded this change for review.

View Change

flashchips: Add Support for XMC XM25QH256D

Add initial support for the SPI flash chip XM25QH256D (same as XM25QH256C)
Datasheet link:
https://www.xmcwh.com/uploads/802/XM25QH256C%20_%20Ver%202.0.pdf

Tested with ch341a programmer: probe, read, write, erase

Change-Id: I77481e63eb98ed12935288dc0d6286cb1baf8edb
Signed-off-by: Kan Sun <ssunkkan@gmail.com>
---
M flashchips.c
M include/flashchips.h
2 files changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/40/83240/1
diff --git a/flashchips.c b/flashchips.c
index d7230c2..bfa6c4c 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -22301,7 +22301,7 @@

{
.vendor = "XMC",
- .name = "XM25QH256C",
+ .name = "XM25QH256C/XM25QH256D",
.bustype = BUS_SPI,
.manufacture_id = ST_ID,
.model_id = XMC_XM25QH256C,
@@ -22312,7 +22312,7 @@
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
FEATURE_4BA_WRITE | FEATURE_WRSR2,
- .tested = TEST_OK_PR,
+ .tested = TEST_OK_PREW,
.probe = PROBE_SPI_RDID,
.probe_timing = TIMING_ZERO,
.block_erasers =
diff --git a/include/flashchips.h b/include/flashchips.h
index d816fd4..f535e35 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -855,7 +855,7 @@
#define XMC_XM25QH128A 0x7018
#define XMC_XM25QH128C 0x4018 /* Same as XM25QH128D */
#define XMC_XM25QU128C 0x4118 /* Same as XM25QU128D */
-#define XMC_XM25QH256C 0x4019
+#define XMC_XM25QH256C 0x4019 /* Same as XM25QH256D */
#define XMC_XM25QU256C 0x4119
#define XMC_XM25RU256C 0x4419
#define ST_M25PX80 0x7114

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

Gerrit-MessageType: newchange
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I77481e63eb98ed12935288dc0d6286cb1baf8edb
Gerrit-Change-Number: 83240
Gerrit-PatchSet: 1
Gerrit-Owner: Ssunk <ssunkkan@gmail.com>