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