blob: 6e816eafb312a6af0446e156aae7cebe32ebf3a4 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Brian Norris8ac326fc2014-04-10 11:05:34 -07002menuconfig MTD_SPI_NOR
3 tristate "SPI-NOR device support"
Huang Shijieb1994892014-02-24 18:37:37 +08004 depends on MTD
Boris Brezillonb35b9a12019-08-06 10:40:40 +05305 depends on MTD && SPI_MASTER
6 select SPI_MEM
Huang Shijieb1994892014-02-24 18:37:37 +08007 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.
Brian Norrise43b2062014-04-08 20:30:25 -070010
11if MTD_SPI_NOR
12
Rafał Miłecki57cf26c2014-08-17 11:27:26 +020013config 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
Boris Brezillona0900d02020-03-13 19:42:36 +000027source "drivers/mtd/spi-nor/controllers/Kconfig"
Mika Westerberg8afda8b2016-11-28 15:06:24 +030028
Brian Norrise43b2062014-04-08 20:30:25 -070029endif # MTD_SPI_NOR