Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Brian Norris | 8ac326fc | 2014-04-10 11:05:34 -0700 | [diff] [blame] | 2 | menuconfig MTD_SPI_NOR |
| 3 | tristate "SPI-NOR device support" |
Huang Shijie | b199489 | 2014-02-24 18:37:37 +0800 | [diff] [blame] | 4 | depends on MTD |
Boris Brezillon | b35b9a1 | 2019-08-06 10:40:40 +0530 | [diff] [blame] | 5 | depends on MTD && SPI_MASTER |
| 6 | select SPI_MEM |
Huang Shijie | b199489 | 2014-02-24 18:37:37 +0800 | [diff] [blame] | 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. |
Brian Norris | e43b206 | 2014-04-08 20:30:25 -0700 | [diff] [blame] | 10 | |
| 11 | if MTD_SPI_NOR |
| 12 | |
Rafał Miłecki | 57cf26c | 2014-08-17 11:27:26 +0200 | [diff] [blame] | 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 | |
Boris Brezillon | a0900d0 | 2020-03-13 19:42:36 +0000 | [diff] [blame] | 27 | source "drivers/mtd/spi-nor/controllers/Kconfig" |
Mika Westerberg | 8afda8b | 2016-11-28 15:06:24 +0300 | [diff] [blame] | 28 | |
Brian Norris | e43b206 | 2014-04-08 20:30:25 -0700 | [diff] [blame] | 29 | endif # MTD_SPI_NOR |