Linux-libre 5.7.5-gnu
[librecmc/linux-libre.git] / drivers / mtd / spi-nor / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig MTD_SPI_NOR
3         tristate "SPI-NOR device support"
4         depends on MTD
5         depends on MTD && SPI_MASTER
6         select SPI_MEM
7         help
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.
10
11 if MTD_SPI_NOR
12
13 config MTD_SPI_NOR_USE_4K_SECTORS
14         bool "Use small 4096 B erase sectors"
15         default y
16         help
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.
23
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).
26
27 source "drivers/mtd/spi-nor/controllers/Kconfig"
28
29 endif # MTD_SPI_NOR