xref: /OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunmenuconfig MTD_SPI_NOR
3*4882a593Smuzhiyun	tristate "SPI NOR device support"
4*4882a593Smuzhiyun	depends on MTD
5*4882a593Smuzhiyun	depends on MTD && SPI_MASTER
6*4882a593Smuzhiyun	select SPI_MEM
7*4882a593Smuzhiyun	help
8*4882a593Smuzhiyun	  This is the framework for the SPI NOR which can be used by the SPI
9*4882a593Smuzhiyun	  device drivers and the SPI NOR device driver.
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunif MTD_SPI_NOR
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunconfig MTD_SPI_NOR_USE_4K_SECTORS
14*4882a593Smuzhiyun	bool "Use small 4096 B erase sectors"
15*4882a593Smuzhiyun	default y
16*4882a593Smuzhiyun	help
17*4882a593Smuzhiyun	  Many flash memories support erasing small (4096 B) sectors. Depending
18*4882a593Smuzhiyun	  on the usage this feature may provide performance gain in comparison
19*4882a593Smuzhiyun	  to erasing whole blocks (32/64 KiB).
20*4882a593Smuzhiyun	  Changing a small part of the flash's contents is usually faster with
21*4882a593Smuzhiyun	  small sectors. On the other hand erasing should be faster when using
22*4882a593Smuzhiyun	  64 KiB block instead of 16 × 4 KiB sectors.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	  Please note that some tools/drivers/filesystems may not work with
25*4882a593Smuzhiyun	  4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunconfig MTD_SPI_NOR_MISC
28*4882a593Smuzhiyun	bool "Support SPI NOR misc device"
29*4882a593Smuzhiyun	default n
30*4882a593Smuzhiyun	help
31*4882a593Smuzhiyun	  Support obtaining flash information through the ioctl interface
32*4882a593Smuzhiyun	  of the misc device.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunsource "drivers/mtd/spi-nor/controllers/Kconfig"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunendif # MTD_SPI_NOR
37