Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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_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, ac5) (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. source "drivers/mtd/nand/raw/brcmnand/Kconfig"
  168. config MTD_NAND_BCM47XXNFLASH
  169. tristate "BCM4706 BCMA NAND controller"
  170. depends on BCMA_NFLASH
  171. depends on BCMA
  172. help
  173. BCMA bus can have various flash memories attached, they are
  174. registered by bcma as platform devices. This enables driver for
  175. NAND flash memories. For now only BCM4706 is supported.
  176. config MTD_NAND_MPC5121_NFC
  177. tristate "MPC5121 NAND controller"
  178. depends on PPC_MPC512x
  179. help
  180. This enables the driver for the NAND flash controller on the
  181. MPC5121 SoC.
  182. config MTD_NAND_GPMI_NAND
  183. tristate "Freescale GPMI NAND controller"
  184. depends on MXS_DMA
  185. help
  186. Enables NAND Flash support for IMX23, IMX28 or IMX6.
  187. The GPMI controller is very powerful, with the help of BCH
  188. module, it can do the hardware ECC. The GPMI supports several
  189. NAND flashs at the same time.
  190. config MTD_NAND_FSL_ELBC
  191. tristate "Freescale eLBC NAND controller"
  192. depends on FSL_SOC
  193. select FSL_LBC
  194. help
  195. Various Freescale chips, including the 8313, include a NAND Flash
  196. Controller Module with built-in hardware ECC capabilities.
  197. Enabling this option will enable you to use this to control
  198. external NAND devices.
  199. config MTD_NAND_FSL_IFC
  200. tristate "Freescale IFC NAND controller"
  201. depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
  202. depends on HAS_IOMEM
  203. depends on FSL_IFC
  204. help
  205. Various Freescale chips e.g P1010, include a NAND Flash machine
  206. with built-in hardware ECC capabilities.
  207. Enabling this option will enable you to use this to control
  208. external NAND devices.
  209. config MTD_NAND_FSL_UPM
  210. tristate "Freescale UPM NAND controller"
  211. depends on PPC_83xx || PPC_85xx
  212. select FSL_LBC
  213. help
  214. Enables support for NAND Flash chips wired onto Freescale PowerPC
  215. processor localbus with User-Programmable Machine support.
  216. config MTD_NAND_VF610_NFC
  217. tristate "Freescale VF610/MPC5125 NAND controller"
  218. depends on (SOC_VF610 || COMPILE_TEST)
  219. depends on HAS_IOMEM
  220. help
  221. Enables support for NAND Flash Controller on some Freescale
  222. processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
  223. The driver supports a maximum 2k page size. With 2k pages and
  224. 64 bytes or more of OOB, hardware ECC with up to 32-bit error
  225. correction is supported. Hardware ECC is only enabled through
  226. device tree.
  227. config MTD_NAND_MXC
  228. tristate "Freescale MXC NAND controller"
  229. depends on ARCH_MXC || COMPILE_TEST
  230. depends on HAS_IOMEM && OF
  231. help
  232. This enables the driver for the NAND flash controller on the
  233. MXC processors.
  234. config MTD_NAND_SH_FLCTL
  235. tristate "Renesas SuperH FLCTL NAND controller"
  236. depends on SUPERH || COMPILE_TEST
  237. depends on HAS_IOMEM
  238. help
  239. Several Renesas SuperH CPU has FLCTL. This option enables support
  240. for NAND Flash using FLCTL.
  241. config MTD_NAND_DAVINCI
  242. tristate "DaVinci/Keystone NAND controller"
  243. depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST
  244. depends on HAS_IOMEM
  245. help
  246. Enable the driver for NAND flash chips on Texas Instruments
  247. DaVinci/Keystone processors.
  248. config MTD_NAND_TXX9NDFMC
  249. tristate "TXx9 NAND controller"
  250. depends on SOC_TX4938 || COMPILE_TEST
  251. depends on HAS_IOMEM
  252. help
  253. This enables the NAND flash controller on the TXx9 SoCs.
  254. config MTD_NAND_SOCRATES
  255. tristate "Socrates NAND controller"
  256. depends on SOCRATES
  257. help
  258. Enables support for NAND Flash chips wired onto Socrates board.
  259. source "drivers/mtd/nand/raw/ingenic/Kconfig"
  260. config MTD_NAND_FSMC
  261. tristate "ST Micros FSMC NAND controller"
  262. depends on OF && HAS_IOMEM
  263. depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || COMPILE_TEST
  264. help
  265. Enables support for NAND Flash chips on the ST Microelectronics
  266. Flexible Static Memory Controller (FSMC)
  267. config MTD_NAND_XWAY
  268. bool "Lantiq XWAY NAND controller"
  269. depends on LANTIQ && SOC_TYPE_XWAY
  270. help
  271. Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
  272. to the External Bus Unit (EBU).
  273. config MTD_NAND_SUNXI
  274. tristate "Allwinner NAND controller"
  275. depends on ARCH_SUNXI || COMPILE_TEST
  276. depends on HAS_IOMEM
  277. help
  278. Enables support for NAND Flash chips on Allwinner SoCs.
  279. config MTD_NAND_HISI504
  280. tristate "Hisilicon Hip04 NAND controller"
  281. depends on ARCH_HISI || COMPILE_TEST
  282. depends on HAS_IOMEM
  283. help
  284. Enables support for NAND controller on Hisilicon SoC Hip04.
  285. config MTD_NAND_QCOM
  286. tristate "QCOM NAND controller"
  287. depends on ARCH_QCOM || COMPILE_TEST
  288. depends on HAS_IOMEM
  289. help
  290. Enables support for NAND flash chips on SoCs containing the EBI2 NAND
  291. controller. This controller is found on IPQ806x SoC.
  292. config MTD_NAND_MTK
  293. tristate "MTK NAND controller"
  294. depends on MTD_NAND_ECC_MEDIATEK
  295. depends on ARCH_MEDIATEK || COMPILE_TEST
  296. depends on HAS_IOMEM
  297. help
  298. Enables support for NAND controller on MTK SoCs.
  299. This controller is found on mt27xx, mt81xx, mt65xx SoCs.
  300. config MTD_NAND_MXIC
  301. tristate "Macronix raw NAND controller"
  302. depends on HAS_IOMEM || COMPILE_TEST
  303. help
  304. This selects the Macronix raw NAND controller driver.
  305. config MTD_NAND_TEGRA
  306. tristate "NVIDIA Tegra NAND controller"
  307. depends on ARCH_TEGRA || COMPILE_TEST
  308. depends on HAS_IOMEM
  309. help
  310. Enables support for NAND flash controller on NVIDIA Tegra SoC.
  311. The driver has been developed and tested on a Tegra 2 SoC. DMA
  312. support, raw read/write page as well as HW ECC read/write page
  313. is supported. Extra OOB bytes when using HW ECC are currently
  314. not supported.
  315. config MTD_NAND_STM32_FMC2
  316. tristate "Support for NAND controller on STM32MP SoCs"
  317. depends on ARCH_STM32 || COMPILE_TEST
  318. select MFD_SYSCON
  319. help
  320. Enables support for NAND Flash chips on SoCs containing the FMC2
  321. NAND controller. This controller is found on STM32MP SoCs.
  322. The controller supports a maximum 8k page size and supports
  323. a maximum 8-bit correction error per sector of 512 bytes.
  324. config MTD_NAND_MESON
  325. tristate "Support for NAND controller on Amlogic's Meson SoCs"
  326. depends on COMMON_CLK && (ARCH_MESON || COMPILE_TEST)
  327. select MFD_SYSCON
  328. help
  329. Enables support for NAND controller on Amlogic's Meson SoCs.
  330. This controller is found on Meson SoCs.
  331. config MTD_NAND_GPIO
  332. tristate "GPIO assisted NAND controller"
  333. depends on GPIOLIB || COMPILE_TEST
  334. depends on HAS_IOMEM
  335. help
  336. This enables a NAND flash driver where control signals are
  337. connected to GPIO pins, and commands and data are communicated
  338. via a memory mapped interface.
  339. config MTD_NAND_PLATFORM
  340. tristate "Generic NAND controller"
  341. depends on HAS_IOMEM
  342. help
  343. This implements a generic NAND driver for on-SOC platform
  344. devices. You will need to provide platform-specific functions
  345. via platform_data.
  346. config MTD_NAND_CADENCE
  347. tristate "Support Cadence NAND (HPNFC) controller"
  348. depends on OF && HAS_IOMEM
  349. help
  350. Enable the driver for NAND flash on platforms using a Cadence NAND
  351. controller.
  352. config MTD_NAND_ARASAN
  353. tristate "Support for Arasan NAND flash controller"
  354. depends on HAS_IOMEM && HAS_DMA
  355. select BCH
  356. help
  357. Enables the driver for the Arasan NAND flash controller on
  358. Zynq Ultrascale+ MPSoC.
  359. config MTD_NAND_INTEL_LGM
  360. tristate "Support for NAND controller on Intel LGM SoC"
  361. depends on OF
  362. depends on HAS_IOMEM
  363. help
  364. Enables support for NAND Flash chips on Intel's LGM SoC.
  365. NAND flash controller interfaced through the External Bus Unit.
  366. config MTD_NAND_ROCKCHIP
  367. tristate "Rockchip NAND controller"
  368. depends on ARCH_ROCKCHIP && HAS_IOMEM
  369. help
  370. Enables support for NAND controller on Rockchip SoCs.
  371. There are four different versions of NAND FLASH Controllers,
  372. including:
  373. NFC v600: RK2928, RK3066, RK3188
  374. NFC v622: RK3036, RK3128
  375. NFC v800: RK3308, RV1108
  376. NFC v900: PX30, RK3326
  377. config MTD_NAND_PL35X
  378. tristate "ARM PL35X NAND controller"
  379. depends on OF
  380. depends on PL353_SMC
  381. help
  382. Enables support for PrimeCell SMC PL351 and PL353 NAND
  383. controller found on Zynq7000.
  384. config MTD_NAND_RENESAS
  385. tristate "Renesas R-Car Gen3 & RZ/N1 NAND controller"
  386. depends on ARCH_RENESAS || COMPILE_TEST
  387. help
  388. Enables support for the NAND controller found on Renesas R-Car
  389. Gen3 and RZ/N1 SoC families.
  390. config MTD_NAND_TS72XX
  391. tristate "ts72xx NAND controller"
  392. depends on ARCH_EP93XX && HAS_IOMEM
  393. help
  394. Enables support for NAND controller on ts72xx SBCs.
  395. comment "Misc"
  396. config MTD_SM_COMMON
  397. tristate
  398. default n
  399. config MTD_NAND_NANDSIM
  400. tristate "Support for NAND Flash Simulator"
  401. help
  402. The simulator may simulate various NAND flash chips for the
  403. MTD nand layer.
  404. config MTD_NAND_RICOH
  405. tristate "Ricoh xD card reader"
  406. default n
  407. depends on PCI
  408. select MTD_SM_COMMON
  409. help
  410. Enable support for Ricoh R5C852 xD card reader
  411. You also need to enable either
  412. NAND SSFDC (SmartMedia) read only translation layer' or new
  413. experimental, readwrite
  414. 'SmartMedia/xD new translation layer'
  415. config MTD_NAND_DISKONCHIP
  416. tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
  417. depends on HAS_IOMEM
  418. select REED_SOLOMON
  419. select REED_SOLOMON_DEC16
  420. help
  421. This is a reimplementation of M-Systems DiskOnChip 2000,
  422. Millennium and Millennium Plus as a standard NAND device driver,
  423. as opposed to the earlier self-contained MTD device drivers.
  424. This should enable, among other things, proper JFFS2 operation on
  425. these devices.
  426. config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  427. bool "Advanced detection options for DiskOnChip"
  428. depends on MTD_NAND_DISKONCHIP
  429. help
  430. This option allows you to specify nonstandard address at which to
  431. probe for a DiskOnChip, or to change the detection options. You
  432. are unlikely to need any of this unless you are using LinuxBIOS.
  433. Say 'N'.
  434. config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
  435. hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  436. depends on MTD_NAND_DISKONCHIP
  437. default "0"
  438. help
  439. By default, the probe for DiskOnChip devices will look for a
  440. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  441. This option allows you to specify a single address at which to probe
  442. for the device, which is useful if you have other devices in that
  443. range which get upset when they are probed.
  444. (Note that on PowerPC, the normal probe will only check at
  445. 0xE4000000.)
  446. Normally, you should leave this set to zero, to allow the probe at
  447. the normal addresses.
  448. config MTD_NAND_DISKONCHIP_PROBE_HIGH
  449. bool "Probe high addresses"
  450. depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  451. help
  452. By default, the probe for DiskOnChip devices will look for a
  453. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  454. This option changes to make it probe between 0xFFFC8000 and
  455. 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
  456. useful to you. Say 'N'.
  457. config MTD_NAND_DISKONCHIP_BBTWRITE
  458. bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
  459. depends on MTD_NAND_DISKONCHIP
  460. help
  461. On DiskOnChip devices shipped with the INFTL filesystem (Millennium
  462. and 2000 TSOP/Alon), Linux reserves some space at the end of the
  463. device for the Bad Block Table (BBT). If you have existing INFTL
  464. data on your device (created by non-Linux tools such as M-Systems'
  465. DOS drivers), your data might overlap the area Linux wants to use for
  466. the BBT. If this is a concern for you, leave this option disabled and
  467. Linux will not write BBT data into this area.
  468. The downside of leaving this option disabled is that if bad blocks
  469. are detected by Linux, they will not be recorded in the BBT, which
  470. could cause future problems.
  471. Once you enable this option, new filesystems (INFTL or others, created
  472. in Linux or other operating systems) will not use the reserved area.
  473. The only reason not to enable this option is to prevent damage to
  474. preexisting filesystems.
  475. Even if you leave this disabled, you can enable BBT writes at module
  476. load time (assuming you build diskonchip as a module) with the module
  477. parameter "inftl_bbt_write=1".
  478. config MTD_NAND_ARKMICRO
  479. tristate "Support for NAND controller on Arkmicro SoCs"
  480. depends on ARCH_ARKMICRO
  481. help
  482. Enables support for NAND controller on Arkmicro SoCs.
  483. endif # MTD_RAW_NAND