18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_cimenuconfig MTD_SPI_NOR 38c2ecf20Sopenharmony_ci tristate "SPI NOR device support" 48c2ecf20Sopenharmony_ci depends on MTD 58c2ecf20Sopenharmony_ci depends on MTD && SPI_MASTER 68c2ecf20Sopenharmony_ci select SPI_MEM 78c2ecf20Sopenharmony_ci help 88c2ecf20Sopenharmony_ci This is the framework for the SPI NOR which can be used by the SPI 98c2ecf20Sopenharmony_ci device drivers and the SPI NOR device driver. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciif MTD_SPI_NOR 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciconfig MTD_SPI_NOR_USE_4K_SECTORS 148c2ecf20Sopenharmony_ci bool "Use small 4096 B erase sectors" 158c2ecf20Sopenharmony_ci default y 168c2ecf20Sopenharmony_ci help 178c2ecf20Sopenharmony_ci Many flash memories support erasing small (4096 B) sectors. Depending 188c2ecf20Sopenharmony_ci on the usage this feature may provide performance gain in comparison 198c2ecf20Sopenharmony_ci to erasing whole blocks (32/64 KiB). 208c2ecf20Sopenharmony_ci Changing a small part of the flash's contents is usually faster with 218c2ecf20Sopenharmony_ci small sectors. On the other hand erasing should be faster when using 228c2ecf20Sopenharmony_ci 64 KiB block instead of 16 × 4 KiB sectors. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci Please note that some tools/drivers/filesystems may not work with 258c2ecf20Sopenharmony_ci 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum). 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cisource "drivers/mtd/spi-nor/controllers/Kconfig" 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciendif # MTD_SPI_NOR 30