kernel: mtd: add support for xmc xm25qh128c

This commit is contained in:
hanwckf 2024-01-12 18:32:28 +08:00
parent bf70fb42de
commit 8ff4cfb0e5

View File

@ -0,0 +1,12 @@
Index: linux-5.4.255/drivers/mtd/spi-nor/spi-nor.c
===================================================================
--- linux-5.4.255.orig/drivers/mtd/spi-nor/spi-nor.c
+++ linux-5.4.255/drivers/mtd/spi-nor/spi-nor.c
@@ -2578,6 +2578,7 @@ static const struct flash_info spi_nor_i
/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
{ "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
{ "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ { "XM25QH128C", INFO(0x204018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
/* XTX Technology (Shenzhen) Limited */
{ "xt25f128b", INFO(0x0B4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },