Kconfig 18 KB

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