blob: 2fe2a7e90fa9f2b4b8b2bb4b1cfe2761ff96591f [file] [log] [blame]
Brian Norris8ac326f2014-04-10 11:05:34 -07001menuconfig MTD_SPI_NOR
2 tristate "SPI-NOR device support"
Huang Shijieb1994892014-02-24 18:37:37 +08003 depends on MTD
4 help
5 This is the framework for the SPI NOR which can be used by the SPI
6 device drivers and the SPI-NOR device driver.
Brian Norrise43b2062014-04-08 20:30:25 -07007
8if MTD_SPI_NOR
9
Rafał Miłecki57cf26c2014-08-17 11:27:26 +020010config MTD_SPI_NOR_USE_4K_SECTORS
11 bool "Use small 4096 B erase sectors"
12 default y
13 help
14 Many flash memories support erasing small (4096 B) sectors. Depending
15 on the usage this feature may provide performance gain in comparison
16 to erasing whole blocks (32/64 KiB).
17 Changing a small part of the flash's contents is usually faster with
18 small sectors. On the other hand erasing should be faster when using
19 64 KiB block instead of 16 × 4 KiB sectors.
20
21 Please note that some tools/drivers/filesystems may not work with
22 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
23
Huang Shijiee46ecda2014-02-24 18:37:42 +080024config SPI_FSL_QUADSPI
25 tristate "Freescale Quad SPI controller"
Brian Norrisd26a22d2015-10-12 13:35:16 -070026 depends on ARCH_MXC || COMPILE_TEST
27 depends on HAS_IOMEM
Huang Shijiee46ecda2014-02-24 18:37:42 +080028 help
29 This enables support for the Quad SPI controller in master mode.
Fabio Estevam842c12d2015-08-13 14:02:05 -030030 This controller does not support generic SPI. It only supports
31 SPI NOR.
Brian Norrise43b2062014-04-08 20:30:25 -070032
Joachim Eastwoodf617b952015-08-13 19:19:40 +020033config SPI_NXP_SPIFI
34 tristate "NXP SPI Flash Interface (SPIFI)"
35 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
36 depends on HAS_IOMEM
37 help
38 Enable support for the NXP LPC SPI Flash Interface controller.
39
40 SPIFI is a specialized controller for connecting serial SPI
41 Flash. Enable this option if you have a device with a SPIFI
42 controller and want to access the Flash as a mtd device.
43
Brian Norrise43b2062014-04-08 20:30:25 -070044endif # MTD_SPI_NOR