--- zzzz-none-000/linux-5.4.213/drivers/mtd/spi-nor/Kconfig 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/drivers/mtd/spi-nor/Kconfig 2024-05-29 11:19:52.000000000 +0000 @@ -34,6 +34,17 @@ and support for the SPI flash memory controller (SPI) for the host firmware. The implementation only supports SPI NOR. +config MTD_SPI_NOR_USE_4K_SECTORS_LIMIT + int "Maximum flash chip size to use 4K sectors on (in KiB)" + depends on MTD_SPI_NOR_USE_4K_SECTORS + default "4096" + help + There are many flash chips that support 4K sectors, but are so large + that using them significantly slows down writing large amounts of + data or using a writable filesystem. + Any flash chip larger than the size specified in this option will + not use 4K sectors. + config SPI_CADENCE_QUADSPI tristate "Cadence Quad SPI controller" depends on OF && (ARM || ARM64 || COMPILE_TEST)