Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig MTD_RAW_NAND
  3. tristate "Raw/Parallel NAND Device Support"
  4. select MTD_NAND_CORE
  5. select MTD_NAND_ECC
  6. help
  7. This enables support for accessing all type of raw/parallel
  8. NAND flash devices. For further information see
  9. <http://www.linux-mtd.infradead.org/doc/nand.html>.
  10. if MTD_RAW_NAND
  11. comment "Raw/parallel NAND flash controllers"
  12. config MTD_NAND_DENALI
  13. tristate
  14. config MTD_NAND_DENALI_PCI
  15. tristate "Denali NAND controller on Intel Moorestown"
  16. select MTD_NAND_DENALI
  17. depends on PCI
  18. help
  19. Enable the driver for NAND flash on Intel Moorestown, using the
  20. Denali NAND controller core.
  21. config MTD_NAND_DENALI_DT
  22. tristate "Denali NAND controller as a DT device"
  23. select MTD_NAND_DENALI
  24. depends on HAS_DMA && HAVE_CLK && OF && HAS_IOMEM
  25. help
  26. Enable the driver for NAND flash on platforms using a Denali NAND
  27. controller as a DT device.
  28. config MTD_NAND_AMS_DELTA
  29. tristate "Amstrad E3 NAND controller"
  30. depends on MACH_AMS_DELTA || COMPILE_TEST
  31. default y
  32. help
  33. Support for NAND flash on Amstrad E3 (Delta).
  34. config MTD_NAND_OMAP2
  35. tristate "OMAP2, OMAP3, OMAP4 and Keystone NAND controller"
  36. depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
  37. depends on HAS_IOMEM
  38. depends on OMAP_GPMC
  39. help
  40. Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
  41. and Keystone platforms.
  42. config MTD_NAND_OMAP_BCH
  43. depends on MTD_NAND_OMAP2
  44. bool "Support hardware based BCH error correction"
  45. default n
  46. select BCH
  47. help
  48. This config enables the ELM hardware engine, which can be used to
  49. locate and correct errors when using BCH ECC scheme. This offloads
  50. the cpu from doing ECC error searching and correction. However some
  51. legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
  52. so this is optional for them.
  53. config MTD_NAND_OMAP_BCH_BUILD
  54. def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
  55. config MTD_NAND_AU1550
  56. tristate "Au1550/1200 NAND support"
  57. depends on MIPS_ALCHEMY
  58. help
  59. This enables the driver for the NAND flash controller on the
  60. AMD/Alchemy 1550 SOC.
  61. config MTD_NAND_NDFC
  62. tristate "IBM/MCC 4xx NAND controller"
  63. depends on 4xx
  64. select MTD_NAND_ECC_SW_HAMMING
  65. select MTD_NAND_ECC_SW_HAMMING_SMC
  66. help
  67. NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
  68. config MTD_NAND_S3C2410
  69. tristate "Samsung S3C NAND controller"
  70. depends on ARCH_S3C24XX || ARCH_S3C64XX
  71. help
  72. This enables the NAND flash controller on the S3C24xx and S3C64xx
  73. SoCs
  74. No board specific support is done by this driver, each board
  75. must advertise a platform_device for the driver to attach.
  76. config MTD_NAND_S3C2410_DEBUG
  77. bool "Samsung S3C NAND controller debug"
  78. depends on MTD_NAND_S3C2410
  79. help
  80. Enable debugging of the S3C NAND driver
  81. config MTD_NAND_S3C2410_CLKSTOP
  82. bool "Samsung S3C NAND IDLE clock stop"
  83. depends on MTD_NAND_S3C2410
  84. default n
  85. help
  86. Stop the clock to the NAND controller when there is no chip
  87. selected to save power. This will mean there is a small delay
  88. when the is NAND chip selected or released, but will save
  89. approximately 5mA of power when there is nothing happening.
  90. config MTD_NAND_SHARPSL
  91. tristate "Sharp SL Series (C7xx + others) NAND controller"
  92. depends on ARCH_PXA || COMPILE_TEST
  93. depends on HAS_IOMEM
  94. config MTD_NAND_CAFE
  95. tristate "OLPC CAFÉ NAND controller"
  96. depends on PCI
  97. select REED_SOLOMON
  98. select REED_SOLOMON_DEC16
  99. help
  100. Use NAND flash attached to the CAFÉ chip designed for the OLPC
  101. laptop.
  102. config MTD_NAND_CS553X
  103. tristate "CS5535/CS5536 (AMD Geode companion) NAND controller"
  104. depends on X86_32
  105. depends on !UML && HAS_IOMEM
  106. help
  107. The CS553x companion chips for the AMD Geode processor
  108. include NAND flash controllers with built-in hardware ECC
  109. capabilities; enabling this option will allow you to use
  110. these. The driver will check the MSRs to verify that the
  111. controller is enabled for NAND, and currently requires that
  112. the controller be in MMIO mode.
  113. If you say "m", the module will be called cs553x_nand.
  114. config MTD_NAND_ATMEL
  115. tristate "Atmel AT91 NAND Flash/SmartMedia NAND controller"
  116. depends on ARCH_AT91 || COMPILE_TEST
  117. depends on HAS_IOMEM
  118. select GENERIC_ALLOCATOR
  119. select MFD_ATMEL_SMC
  120. help
  121. Enables support for NAND Flash / Smart Media Card interface
  122. on Atmel AT91 processors.
  123. config MTD_NAND_ORION
  124. tristate "Marvell Orion NAND controller"
  125. depends on PLAT_ORION
  126. help
  127. This enables the NAND flash controller on Orion machines.
  128. No board specific support is done by this driver, each board
  129. must advertise a platform_device for the driver to attach.
  130. config MTD_NAND_MARVELL
  131. tristate "Marvell EBU NAND controller"
  132. depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
  133. COMPILE_TEST
  134. depends on HAS_IOMEM
  135. help
  136. This enables the NAND flash controller driver for Marvell boards,
  137. including:
  138. - PXA3xx processors (NFCv1)
  139. - 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2)
  140. - 64-bit Aramda platforms (7k, 8k) (NFCv2)
  141. config MTD_NAND_SLC_LPC32XX
  142. tristate "NXP LPC32xx SLC NAND controller"
  143. depends on ARCH_LPC32XX || COMPILE_TEST
  144. depends on HAS_IOMEM
  145. help
  146. Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
  147. chips) NAND controller. This is the default for the PHYTEC 3250
  148. reference board which contains a NAND256R3A2CZA6 chip.
  149. Please check the actual NAND chip connected and its support
  150. by the SLC NAND controller.
  151. config MTD_NAND_MLC_LPC32XX
  152. tristate "NXP LPC32xx MLC NAND controller"
  153. depends on ARCH_LPC32XX || COMPILE_TEST
  154. depends on HAS_IOMEM
  155. help
  156. Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
  157. controller. This is the default for the WORK92105 controller
  158. board.
  159. Please check the actual NAND chip connected and its support
  160. by the MLC NAND controller.
  161. config MTD_NAND_PASEMI
  162. tristate "PA Semi PWRficient NAND controller"
  163. depends on PPC_PASEMI
  164. help
  165. Enables support for NAND Flash interface on PA Semi PWRficient
  166. based boards
  167. config MTD_NAND_TMIO
  168. tristate "Toshiba Mobile IO NAND controller"
  169. depends on MFD_TMIO
  170. help
  171. Support for NAND flash connected to a Toshiba Mobile IO
  172. Controller in some PDAs, including the Sharp SL6000x.
  173. source "drivers/mtd/nand/raw/brcmnand/Kconfig"
  174. config MTD_NAND_BCM47XXNFLASH
  175. tristate "BCM4706 BCMA NAND controller"
  176. depends on BCMA_NFLASH
  177. depends on BCMA
  178. help
  179. BCMA bus can have various flash memories attached, they are
  180. registered by bcma as platform devices. This enables driver for
  181. NAND flash memories. For now only BCM4706 is supported.
  182. config MTD_NAND_OXNAS
  183. tristate "Oxford Semiconductor NAND controller"
  184. depends on ARCH_OXNAS || COMPILE_TEST
  185. depends on HAS_IOMEM
  186. help
  187. This enables the NAND flash controller on Oxford Semiconductor SoCs.
  188. config MTD_NAND_MPC5121_NFC
  189. tristate "MPC5121 NAND controller"
  190. depends on PPC_MPC512x
  191. help
  192. This enables the driver for the NAND flash controller on the
  193. MPC5121 SoC.
  194. config MTD_NAND_GPMI_NAND
  195. tristate "Freescale GPMI NAND controller"
  196. depends on MXS_DMA
  197. help
  198. Enables NAND Flash support for IMX23, IMX28 or IMX6.
  199. The GPMI controller is very powerful, with the help of BCH
  200. module, it can do the hardware ECC. The GPMI supports several
  201. NAND flashs at the same time.
  202. config MTD_NAND_FSL_ELBC
  203. tristate "Freescale eLBC NAND controller"
  204. depends on FSL_SOC
  205. select FSL_LBC
  206. help
  207. Various Freescale chips, including the 8313, include a NAND Flash
  208. Controller Module with built-in hardware ECC capabilities.
  209. Enabling this option will enable you to use this to control
  210. external NAND devices.
  211. config MTD_NAND_FSL_IFC
  212. tristate "Freescale IFC NAND controller"
  213. depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
  214. depends on HAS_IOMEM
  215. select FSL_IFC
  216. select MEMORY
  217. help
  218. Various Freescale chips e.g P1010, include a NAND Flash machine
  219. with built-in hardware ECC capabilities.
  220. Enabling this option will enable you to use this to control
  221. external NAND devices.
  222. config MTD_NAND_FSL_UPM
  223. tristate "Freescale UPM NAND controller"
  224. depends on PPC_83xx || PPC_85xx
  225. select FSL_LBC
  226. help
  227. Enables support for NAND Flash chips wired onto Freescale PowerPC
  228. processor localbus with User-Programmable Machine support.
  229. config MTD_NAND_VF610_NFC
  230. tristate "Freescale VF610/MPC5125 NAND controller"
  231. depends on (SOC_VF610 || COMPILE_TEST)
  232. depends on HAS_IOMEM
  233. help
  234. Enables support for NAND Flash Controller on some Freescale
  235. processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
  236. The driver supports a maximum 2k page size. With 2k pages and
  237. 64 bytes or more of OOB, hardware ECC with up to 32-bit error
  238. correction is supported. Hardware ECC is only enabled through
  239. device tree.
  240. config MTD_NAND_MXC
  241. tristate "Freescale MXC NAND controller"
  242. depends on ARCH_MXC || COMPILE_TEST
  243. depends on HAS_IOMEM && OF
  244. help
  245. This enables the driver for the NAND flash controller on the
  246. MXC processors.
  247. config MTD_NAND_SH_FLCTL
  248. tristate "Renesas SuperH FLCTL NAND controller"
  249. depends on SUPERH || COMPILE_TEST
  250. depends on HAS_IOMEM
  251. help
  252. Several Renesas SuperH CPU has FLCTL. This option enables support
  253. for NAND Flash using FLCTL.
  254. config MTD_NAND_DAVINCI
  255. tristate "DaVinci/Keystone NAND controller"
  256. depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST
  257. depends on HAS_IOMEM
  258. help
  259. Enable the driver for NAND flash chips on Texas Instruments
  260. DaVinci/Keystone processors.
  261. config MTD_NAND_TXX9NDFMC
  262. tristate "TXx9 NAND controller"
  263. depends on SOC_TX4938 || COMPILE_TEST
  264. depends on HAS_IOMEM
  265. help
  266. This enables the NAND flash controller on the TXx9 SoCs.
  267. config MTD_NAND_SOCRATES
  268. tristate "Socrates NAND controller"
  269. depends on SOCRATES
  270. help
  271. Enables support for NAND Flash chips wired onto Socrates board.
  272. source "drivers/mtd/nand/raw/ingenic/Kconfig"
  273. config MTD_NAND_FSMC
  274. tristate "ST Micros FSMC NAND controller"
  275. depends on OF && HAS_IOMEM
  276. depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || COMPILE_TEST
  277. help
  278. Enables support for NAND Flash chips on the ST Microelectronics
  279. Flexible Static Memory Controller (FSMC)
  280. config MTD_NAND_XWAY
  281. bool "Lantiq XWAY NAND controller"
  282. depends on LANTIQ && SOC_TYPE_XWAY
  283. help
  284. Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
  285. to the External Bus Unit (EBU).
  286. config MTD_NAND_SUNXI
  287. tristate "Allwinner NAND controller"
  288. depends on ARCH_SUNXI || COMPILE_TEST
  289. depends on HAS_IOMEM
  290. help
  291. Enables support for NAND Flash chips on Allwinner SoCs.
  292. config MTD_NAND_HISI504
  293. tristate "Hisilicon Hip04 NAND controller"
  294. depends on ARCH_HISI || COMPILE_TEST
  295. depends on HAS_IOMEM
  296. help
  297. Enables support for NAND controller on Hisilicon SoC Hip04.
  298. config MTD_NAND_QCOM
  299. tristate "QCOM NAND controller"
  300. depends on ARCH_QCOM || COMPILE_TEST
  301. depends on HAS_IOMEM
  302. help
  303. Enables support for NAND flash chips on SoCs containing the EBI2 NAND
  304. controller. This controller is found on IPQ806x SoC.
  305. config MTD_NAND_MTK
  306. tristate "MTK NAND controller"
  307. depends on MTD_NAND_ECC_MEDIATEK
  308. depends on ARCH_MEDIATEK || COMPILE_TEST
  309. depends on HAS_IOMEM
  310. help
  311. Enables support for NAND controller on MTK SoCs.
  312. This controller is found on mt27xx, mt81xx, mt65xx SoCs.
  313. config MTD_NAND_MXIC
  314. tristate "Macronix raw NAND controller"
  315. depends on HAS_IOMEM || COMPILE_TEST
  316. help
  317. This selects the Macronix raw NAND controller driver.
  318. config MTD_NAND_TEGRA
  319. tristate "NVIDIA Tegra NAND controller"
  320. depends on ARCH_TEGRA || COMPILE_TEST
  321. depends on HAS_IOMEM
  322. help
  323. Enables support for NAND flash controller on NVIDIA Tegra SoC.
  324. The driver has been developed and tested on a Tegra 2 SoC. DMA
  325. support, raw read/write page as well as HW ECC read/write page
  326. is supported. Extra OOB bytes when using HW ECC are currently
  327. not supported.
  328. config MTD_NAND_STM32_FMC2
  329. tristate "Support for NAND controller on STM32MP SoCs"
  330. depends on MACH_STM32MP157 || COMPILE_TEST
  331. select MFD_SYSCON
  332. help
  333. Enables support for NAND Flash chips on SoCs containing the FMC2
  334. NAND controller. This controller is found on STM32MP SoCs.
  335. The controller supports a maximum 8k page size and supports
  336. a maximum 8-bit correction error per sector of 512 bytes.
  337. config MTD_NAND_MESON
  338. tristate "Support for NAND controller on Amlogic's Meson SoCs"
  339. depends on COMMON_CLK && (ARCH_MESON || COMPILE_TEST)
  340. select MFD_SYSCON
  341. help
  342. Enables support for NAND controller on Amlogic's Meson SoCs.
  343. This controller is found on Meson SoCs.
  344. config MTD_NAND_GPIO
  345. tristate "GPIO assisted NAND controller"
  346. depends on GPIOLIB || COMPILE_TEST
  347. depends on HAS_IOMEM
  348. help
  349. This enables a NAND flash driver where control signals are
  350. connected to GPIO pins, and commands and data are communicated
  351. via a memory mapped interface.
  352. config MTD_NAND_PLATFORM
  353. tristate "Generic NAND controller"
  354. depends on HAS_IOMEM
  355. help
  356. This implements a generic NAND driver for on-SOC platform
  357. devices. You will need to provide platform-specific functions
  358. via platform_data.
  359. config MTD_NAND_CADENCE
  360. tristate "Support Cadence NAND (HPNFC) controller"
  361. depends on (OF || COMPILE_TEST) && HAS_IOMEM
  362. help
  363. Enable the driver for NAND flash on platforms using a Cadence NAND
  364. controller.
  365. config MTD_NAND_ARASAN
  366. tristate "Support for Arasan NAND flash controller"
  367. depends on HAS_IOMEM && HAS_DMA
  368. select BCH
  369. help
  370. Enables the driver for the Arasan NAND flash controller on
  371. Zynq Ultrascale+ MPSoC.
  372. config MTD_NAND_INTEL_LGM
  373. tristate "Support for NAND controller on Intel LGM SoC"
  374. depends on OF || COMPILE_TEST
  375. depends on HAS_IOMEM
  376. help
  377. Enables support for NAND Flash chips on Intel's LGM SoC.
  378. NAND flash controller interfaced through the External Bus Unit.
  379. config MTD_NAND_ROCKCHIP
  380. tristate "Rockchip NAND controller"
  381. depends on ARCH_ROCKCHIP && HAS_IOMEM
  382. help
  383. Enables support for NAND controller on Rockchip SoCs.
  384. There are four different versions of NAND FLASH Controllers,
  385. including:
  386. NFC v600: RK2928, RK3066, RK3188
  387. NFC v622: RK3036, RK3128
  388. NFC v800: RK3308, RV1108
  389. NFC v900: PX30, RK3326
  390. config MTD_NAND_PL35X
  391. tristate "ARM PL35X NAND controller"
  392. depends on OF || COMPILE_TEST
  393. depends on PL353_SMC
  394. help
  395. Enables support for PrimeCell SMC PL351 and PL353 NAND
  396. controller found on Zynq7000.
  397. config MTD_NAND_RENESAS
  398. tristate "Renesas R-Car Gen3 & RZ/N1 NAND controller"
  399. depends on ARCH_RENESAS || COMPILE_TEST
  400. help
  401. Enables support for the NAND controller found on Renesas R-Car
  402. Gen3 and RZ/N1 SoC families.
  403. comment "Misc"
  404. config MTD_SM_COMMON
  405. tristate
  406. default n
  407. config MTD_NAND_NANDSIM
  408. tristate "Support for NAND Flash Simulator"
  409. help
  410. The simulator may simulate various NAND flash chips for the
  411. MTD nand layer.
  412. config MTD_NAND_RICOH
  413. tristate "Ricoh xD card reader"
  414. default n
  415. depends on PCI
  416. select MTD_SM_COMMON
  417. help
  418. Enable support for Ricoh R5C852 xD card reader
  419. You also need to enable either
  420. NAND SSFDC (SmartMedia) read only translation layer' or new
  421. experimental, readwrite
  422. 'SmartMedia/xD new translation layer'
  423. config MTD_NAND_DISKONCHIP
  424. tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
  425. depends on HAS_IOMEM
  426. select REED_SOLOMON
  427. select REED_SOLOMON_DEC16
  428. help
  429. This is a reimplementation of M-Systems DiskOnChip 2000,
  430. Millennium and Millennium Plus as a standard NAND device driver,
  431. as opposed to the earlier self-contained MTD device drivers.
  432. This should enable, among other things, proper JFFS2 operation on
  433. these devices.
  434. config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  435. bool "Advanced detection options for DiskOnChip"
  436. depends on MTD_NAND_DISKONCHIP
  437. help
  438. This option allows you to specify nonstandard address at which to
  439. probe for a DiskOnChip, or to change the detection options. You
  440. are unlikely to need any of this unless you are using LinuxBIOS.
  441. Say 'N'.
  442. config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
  443. hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  444. depends on MTD_NAND_DISKONCHIP
  445. default "0"
  446. help
  447. By default, the probe for DiskOnChip devices will look for a
  448. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  449. This option allows you to specify a single address at which to probe
  450. for the device, which is useful if you have other devices in that
  451. range which get upset when they are probed.
  452. (Note that on PowerPC, the normal probe will only check at
  453. 0xE4000000.)
  454. Normally, you should leave this set to zero, to allow the probe at
  455. the normal addresses.
  456. config MTD_NAND_DISKONCHIP_PROBE_HIGH
  457. bool "Probe high addresses"
  458. depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  459. help
  460. By default, the probe for DiskOnChip devices will look for a
  461. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  462. This option changes to make it probe between 0xFFFC8000 and
  463. 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
  464. useful to you. Say 'N'.
  465. config MTD_NAND_DISKONCHIP_BBTWRITE
  466. bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
  467. depends on MTD_NAND_DISKONCHIP
  468. help
  469. On DiskOnChip devices shipped with the INFTL filesystem (Millennium
  470. and 2000 TSOP/Alon), Linux reserves some space at the end of the
  471. device for the Bad Block Table (BBT). If you have existing INFTL
  472. data on your device (created by non-Linux tools such as M-Systems'
  473. DOS drivers), your data might overlap the area Linux wants to use for
  474. the BBT. If this is a concern for you, leave this option disabled and
  475. Linux will not write BBT data into this area.
  476. The downside of leaving this option disabled is that if bad blocks
  477. are detected by Linux, they will not be recorded in the BBT, which
  478. could cause future problems.
  479. Once you enable this option, new filesystems (INFTL or others, created
  480. in Linux or other operating systems) will not use the reserved area.
  481. The only reason not to enable this option is to prevent damage to
  482. preexisting filesystems.
  483. Even if you leave this disabled, you can enable BBT writes at module
  484. load time (assuming you build diskonchip as a module) with the module
  485. parameter "inftl_bbt_write=1".
  486. endif # MTD_RAW_NAND