mtd: spi-nor: Add support for Silicon Kaiser sk25lp128

Add support for Silicon Kaiser sk25lp128 SPI NOR flash found in Pine64
PinePhone Pro and PineTab2.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
This commit is contained in:
Jonas Karlman 2023-07-26 21:44:03 +00:00 committed by Jagan Teki
parent 672c97b646
commit 791e2bf9a8
2 changed files with 9 additions and 0 deletions

View file

@ -176,6 +176,11 @@ config SPI_FLASH_MACRONIX
help help
Add support for various Macronix SPI flash chips (MX25Lxxx) 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 config SPI_FLASH_SPANSION
bool "Spansion SPI flash support" bool "Spansion SPI flash support"
help help

View 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) }, { INFO("mx25uw6345g", 0xc28437, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_OCTAL_DTR_READ | SPI_NOR_4B_OPCODES) },
#endif #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 */ #ifdef CONFIG_SPI_FLASH_STMICRO /* STMICRO */
/* Micron */ /* Micron */
{ INFO("n25q016a", 0x20bb15, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_QUAD_READ) }, { INFO("n25q016a", 0x20bb15, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_QUAD_READ) },