Kconfig 18 KB

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