Ssunk has uploaded this change for review.

View Change

Add Support for XMC XM25QH16C/XM25QH16D

Add initial support for the SPI flash chip XM25QH16C/XM25QH16D
Datasheet link: https://www.xmcwh.com/uploads/798/XM25QH16C_Ver1.8.pdf

Change-Id: Ice38b2cfcf90ca2292302b227a3fc4796b9b34fb
Signed-off-by: Kan Sun <ssunkkan@gmail.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/81/83181/1
diff --git a/flashchips.c b/flashchips.c
index 6f3ea42..2b6100c 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -21937,6 +21937,44 @@

{
.vendor = "XMC",
+ .name = "XM25QH16C/XM25QH16D",
+ .bustype = BUS_SPI,
+ .manufacture_id = ST_ID,
+ .model_id = XMC_XM25QH16C,
+ .total_size = 2048,
+ .page_size = 256,
+ .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, 512} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 64} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 32} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {2 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {2 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_PLAIN,
+ .unlock = SPI_DISABLE_BLOCKPROTECT,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "XMC",
.name = "XM25QH64C",
.bustype = BUS_SPI,
.manufacture_id = ST_ID,
diff --git a/include/flashchips.h b/include/flashchips.h
index c3ceda0..62c6ce3 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -854,6 +854,7 @@
#define XMC_XM25QU256C 0x4119
#define XMC_XM25RU256C 0x4419
#define XMC_XM25QU80B 0x5014
+#define XMC_XM25QH16C 0x4015 /* Same as XM25QH16D */
#define ST_M25PX80 0x7114
#define ST_M25PX16 0x7115
#define ST_M25PX32 0x7116

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

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