mans0n+coreboot@gorani.run has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/63516 )
Change subject: flashchips: Add support for XMC XM25QH80B ......................................................................
flashchips: Add support for XMC XM25QH80B
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 --- M flashchips.c M flashchips.h 2 files changed, 39 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/16/63516/1
diff --git a/flashchips.c b/flashchips.c index 3224142..8582b6f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -19331,6 +19331,44 @@
{ .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 | FEATURE_OTP | FEATURE_QPI, + .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_plain, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {2700, 3600}, + }, + + { + .vendor = "XMC", .name = "XM25QH64C", .bustype = BUS_SPI, .manufacture_id = ST_ID, diff --git a/flashchips.h b/flashchips.h index ba97719..47da563 100644 --- a/flashchips.h +++ b/flashchips.h @@ -812,7 +812,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