]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor: Add support for zBIT ZB25VQ128
authorAndre Przywara <andre.przywara@arm.com>
Mon, 13 Nov 2023 01:16:48 +0000 (01:16 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 6 Dec 2023 23:09:01 +0000 (23:09 +0000)
Add support for the zBIT ZB25VQ128 (128M-bit) SPI NOR flash memory chip,
as used on the Xunlong Orange Pi Zero 3 board.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/spi-nor-ids.c

index 732b07604522988531a904536dd11d3f237aed02..abed392c28d17e1e750cda39f48d44825f079101 100644 (file)
@@ -224,6 +224,11 @@ config SPI_FLASH_XTX
          Add support for various XTX (XTX Technology Limited)
          SPI flash chips (XT25xxx).
 
+config SPI_FLASH_ZBIT
+       bool "ZBIT SPI flash support"
+       help
+         Add support for Zbit Semiconductor Inc. SPI flash chips (ZB25xxx).
+
 endif
 
 config SPI_FLASH_USE_4K_SECTORS
index 3cb132dcffc57dec9a95bd7a61d1a9b22ae98d91..f86e7ff8e5828f6520f9e45312f5d2f88ad93174 100644 (file)
@@ -571,6 +571,11 @@ const struct flash_info spi_nor_ids[] = {
               SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
        { INFO("xt25w01g", 0x0b651B, 0, 64 * 1024, 2048,
               SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+#endif
+#ifdef CONFIG_SPI_FLASH_ZBIT
+       /* Zbit Semiconductor Inc. */
+       { INFO("zb25vq128", 0x5e4018, 0, 64 * 1024, 256,
+              SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 #endif
        { },
 };