]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor: Add support for Silicon Kaiser sk25lp128
authorJonas Karlman <jonas@kwiboo.se>
Wed, 26 Jul 2023 21:44:03 +0000 (21:44 +0000)
committerJagan Teki <jagan@edgeble.ai>
Wed, 6 Dec 2023 12:34:46 +0000 (18:04 +0530)
Add support for Silicon Kaiser sk25lp128 SPI NOR flash found in Pine64
PinePhone Pro and PineTab2.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/spi-nor-ids.c

index 732b07604522988531a904536dd11d3f237aed02..790d15f5bb2e33cbff20688ea3157ee5f4af8a08 100644 (file)
@@ -176,6 +176,11 @@ config SPI_FLASH_MACRONIX
        help
          Add support for various Macronix SPI flash chips (MX25Lxxx)
 
+config SPI_FLASH_SILICONKAISER
+       bool "Silicon Kaiser SPI flash support"
+       help
+         Add support for various Silicon Kaiser SPI flash chips (SK25Lxxx)
+
 config SPI_FLASH_SPANSION
        bool "Spansion SPI flash support"
        help
index 3cb132dcffc57dec9a95bd7a61d1a9b22ae98d91..9f27d8285f937c1d5a09bbead627cda8605fffe8 100644 (file)
@@ -287,6 +287,10 @@ const struct flash_info spi_nor_ids[] = {
        { INFO("mx25uw6345g",    0xc28437, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_OCTAL_DTR_READ | SPI_NOR_4B_OPCODES) },
 #endif
 
+#ifdef CONFIG_SPI_FLASH_SILICONKAISER
+       { INFO("sk25lp128", 0x257018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+#endif
+
 #ifdef CONFIG_SPI_FLASH_STMICRO                /* STMICRO */
        /* Micron */
        { INFO("n25q016a",       0x20bb15, 0, 64 * 1024,   32, SECT_4K | SPI_NOR_QUAD_READ) },