Skip to contentSkip to conversation

sf: Add XMC xm25qh64a and xm25qh128a entries

PATCH New Stefan Roese 2 participants 3 messages Aug 6, 2018 – Oct 4, 2018 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sf: Add XMC xm25qh64a and xm25qh128a entries

This patch adds support for 2 new XMC (Wuhan Xinxin Semiconductor Manufacturing Corp) SPI NOR chips.

This support can be enabled by selecting the SPI_FLASH_XMC Kconfig option.

---
 drivers/mtd/spi/Kconfig         | 6 ++++++
 drivers/mtd/spi/spi_flash_ids.c | 4 ++++
 2 files changed, 10 insertions(+)
drivers/mtd/spi/Kconfig +6 -0
index 5738cd66e8..a76154232a 100644
@@ -100,6 +100,12 @@ config SPI_FLASH_WINBOND
 	help
 	  Add support for various Winbond SPI flash chips (W25xxx)
 
+config SPI_FLASH_XMC
+	bool "XMC SPI flash support"
+	help
+	  Add support for various XMC (Wuhan Xinxin Semiconductor
+	  Manufacturing Corp.) SPI flash chips (XM25xxx)
+
 endif
 
 config SPI_FLASH_USE_4K_SECTORS
drivers/mtd/spi/spi_flash_ids.c +4 -0
index e662e4b42e..ad0a0c8150 100644
@@ -188,6 +188,10 @@ const struct spi_flash_info spi_flash_ids[] = {
 	{"w25q128jv",	   INFO(0xef7018, 0x0,	64 * 1024,   256, RD_FULL | WR_QPP | SECT_4K) },
 	{"w25q256fw",	   INFO(0xef6019, 0x0,	64 * 1024,   512, RD_FULL | WR_QPP | SECT_4K) },
 	{"w25q256jw",	   INFO(0xef7019, 0x0,	64 * 1024,   512, RD_FULL | WR_QPP | SECT_4K) },
+#endif
+#ifdef CONFIG_SPI_FLASH_XMC /* Wuhan Xinxin Semiconductor Manufacturing Corp */
+	{ "xm25qh64a",	   INFO(0x207017, 0x0, 64 * 1024,    128, SECT_4K | RD_DUAL | RD_QUAD) },
+	{ "xm25qh128a",	   INFO(0x207018, 0x0, 64 * 1024,    256, SECT_4K | RD_DUAL | RD_QUAD) },
 #endif
 	{},	/* Empty entry to terminate the list */
 	/*
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 sf: Add XMC xm25qh64a and xm25qh128a entries

Hi Jagan,

Quoted 36 lines · Stefan Roese

This patch adds support for 2 new XMC (Wuhan Xinxin Semiconductor Manufacturing Corp) SPI NOR chips.

This support can be enabled by selecting the SPI_FLASH_XMC Kconfig option.

---
  drivers/mtd/spi/Kconfig         | 6 ++++++
  drivers/mtd/spi/spi_flash_ids.c | 4 ++++
  2 files changed, 10 insertions(+)
drivers/mtd/spi/Kconfig +6 -0
index 5738cd66e8..a76154232a 100644
@@ -100,6 +100,12 @@ config SPI_FLASH_WINBOND
  	help
  	  Add support for various Winbond SPI flash chips (W25xxx)
 
+config SPI_FLASH_XMC
+	bool "XMC SPI flash support"
+	help
+	  Add support for various XMC (Wuhan Xinxin Semiconductor
+	  Manufacturing Corp.) SPI flash chips (XM25xxx)
+
  endif
 
  config SPI_FLASH_USE_4K_SECTORS
drivers/mtd/spi/spi_flash_ids.c +0 -0
index e662e4b42e..ad0a0c8150 100644

drivers/mtd/spi/spi_flash_ids.c const struct spi_flash_info spi_flash_ids[] = { · line 197

Quoted 10 lines
drivers/mtd/spi/spi_flash_ids.c +4 -0
@@ -188,6 +188,10 @@ const struct spi_flash_info spi_flash_ids[] = {
  	{"w25q128jv",	   INFO(0xef7018, 0x0,	64 * 1024,   256, RD_FULL | WR_QPP | SECT_4K) },
  	{"w25q256fw",	   INFO(0xef6019, 0x0,	64 * 1024,   512, RD_FULL | WR_QPP | SECT_4K) },
  	{"w25q256jw",	   INFO(0xef7019, 0x0,	64 * 1024,   512, RD_FULL | WR_QPP | SECT_4K) },
+#endif
+#ifdef CONFIG_SPI_FLASH_XMC /* Wuhan Xinxin Semiconductor Manufacturing Corp */
+	{ "xm25qh64a",	   INFO(0x207017, 0x0, 64 * 1024,    128, SECT_4K | RD_DUAL | RD_QUAD) },
+	{ "xm25qh128a",	   INFO(0x207018, 0x0, 64 * 1024,    256, SECT_4K | RD_DUAL | RD_QUAD) },
  #endif
  	{},	/* Empty entry to terminate the list */
  	/*

Whats the status of this patch?

Thanks,
Stefan