Kconfig 17 KB

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