Kconfig 17 KB

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