sf: Add XMC xm25qh64a and xm25qh128a entries
authorStefan Roese <sr@denx.de>
Mon, 6 Aug 2018 14:33:19 +0000 (16:33 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 4 Oct 2018 12:51:23 +0000 (18:21 +0530)
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.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/spi_flash_ids.c

index 98485b123659b77aaeb1718d2a6ab66744aa7e8c..76d5a1d115276d421383df3604f00bfb384e9fcc 100644 (file)
@@ -96,6 +96,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
index e662e4b42ea5d3e7aff4db7ed512fcf1d816ba8c..ad0a0c8150145eeffb23b3f362fbb674ae3c7968 100644 (file)
@@ -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 */
        /*