summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2022-04-06 19:59:07 +0900
committerAnastasia Klimchuk <aklm@chromium.org>2023-09-22 05:32:40 +0000
commit9ccbf1cf434e9ec0206b8121c6f1bbf9cf506864 (patch)
tree88ba95646190780230fab696613d3ddde4ef1053
parent879fa069fd2514bacd51882b91d15123b2f7ebfa (diff)
downloadflashrom-master.tar.gz
flashrom-master.tar.bz2
flashrom-master.zip
flashchips: Add support for XMC XM25QH80BHEADmaster
XM25QH80B has the same ID as M45PE80, but has more features. Tested with CH341A. Change-Id: Ib51225426d8d1a381d45af3574e5ba2bf02837aa Signed-off-by: Sungbo Eo <mans0n@gorani.run> Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63516 Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--flashchips.c38
-rw-r--r--include/flashchips.h2
2 files changed, 39 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c
index 83264ef12..26decb1ed 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -20791,6 +20791,44 @@ const struct flashchip flashchips[] = {
{
.vendor = "XMC",
+ .name = "XM25QH80B",
+ .bustype = BUS_SPI,
+ .manufacture_id = ST_ID,
+ .model_id = ST_M45PE80,
+ .total_size = 1024,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 256} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 32} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 16} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {1 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {1 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_SRWD,
+ .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 dfe9ec6f4..962e65e4d 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -828,7 +828,7 @@
#define ST_M45PE10 0x4011
#define ST_M45PE20 0x4012
#define ST_M45PE40 0x4013
-#define ST_M45PE80 0x4014
+#define ST_M45PE80 0x4014 /* Same as XM25QH80B */
#define ST_M45PE16 0x4015
#define XMC_XM25QH64C 0x4017
#define XMC_XM25QU64C 0x4117