1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "SPI NOR device support"
5 depends on MTD && SPI_MASTER
8 This is the framework for the SPI NOR which can be used by the SPI
9 device drivers and the SPI NOR device driver.
13 config MTD_SPI_NOR_USE_4K_SECTORS
14 bool "Use small 4096 B erase sectors"
17 Many flash memories support erasing small (4096 B) sectors. Depending
18 on the usage this feature may provide performance gain in comparison
19 to erasing whole blocks (32/64 KiB).
20 Changing a small part of the flash's contents is usually faster with
21 small sectors. On the other hand erasing should be faster when using
22 64 KiB block instead of 16 × 4 KiB sectors.
24 Please note that some tools/drivers/filesystems may not work with
25 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
27 source "drivers/mtd/spi-nor/controllers/Kconfig"