Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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_VERIFY_WRITE
  21. bool "Verify NAND page writes"
  22. help
  23. This adds an extra check when data is written to the flash. The
  24. NAND flash device internally checks only bits transitioning
  25. from 1 to 0. There is a rare possibility that even though the
  26. device thinks the write was successful, a bit could have been
  27. flipped accidentally due to device wear or something else.
  28. config MTD_NAND_BCH
  29. tristate
  30. select BCH
  31. depends on MTD_NAND_ECC_BCH
  32. default MTD_NAND
  33. config MTD_NAND_ECC_BCH
  34. bool "Support software BCH ECC"
  35. default n
  36. help
  37. This enables support for software BCH error correction. Binary BCH
  38. codes are more powerful and cpu intensive than traditional Hamming
  39. ECC codes. They are used with NAND devices requiring more than 1 bit
  40. of error correction.
  41. config MTD_SM_COMMON
  42. tristate
  43. default n
  44. config MTD_NAND_MUSEUM_IDS
  45. bool "Enable chip ids for obsolete ancient NAND devices"
  46. default n
  47. help
  48. Enable this option only when your board has first generation
  49. NAND chips (page size 256 byte, erase size 4-8KiB). The IDs
  50. of these chips were reused by later, larger chips.
  51. config MTD_NAND_AUTCPU12
  52. tristate "SmartMediaCard on autronix autcpu12 board"
  53. depends on ARCH_AUTCPU12
  54. help
  55. This enables the driver for the autronix autcpu12 board to
  56. access the SmartMediaCard.
  57. config MTD_NAND_DENALI
  58. depends on PCI
  59. tristate "Support Denali NAND controller on Intel Moorestown"
  60. help
  61. Enable the driver for NAND flash on Intel Moorestown, using the
  62. Denali NAND controller core.
  63. config MTD_NAND_DENALI_SCRATCH_REG_ADDR
  64. hex "Denali NAND size scratch register address"
  65. default "0xFF108018"
  66. depends on MTD_NAND_DENALI
  67. help
  68. Some platforms place the NAND chip size in a scratch register
  69. because (some versions of) the driver aren't able to automatically
  70. determine the size of certain chips. Set the address of the
  71. scratch register here to enable this feature. On Intel Moorestown
  72. boards, the scratch register is at 0xFF108018.
  73. config MTD_NAND_H1900
  74. tristate "iPAQ H1900 flash"
  75. depends on ARCH_PXA && BROKEN
  76. help
  77. This enables the driver for the iPAQ h1900 flash.
  78. config MTD_NAND_GPIO
  79. tristate "GPIO NAND Flash driver"
  80. depends on GENERIC_GPIO && ARM
  81. help
  82. This enables a GPIO based NAND flash driver.
  83. config MTD_NAND_SPIA
  84. tristate "NAND Flash device on SPIA board"
  85. depends on ARCH_P720T
  86. help
  87. If you had to ask, you don't have one. Say 'N'.
  88. config MTD_NAND_AMS_DELTA
  89. tristate "NAND Flash device on Amstrad E3"
  90. depends on MACH_AMS_DELTA
  91. default y
  92. help
  93. Support for NAND flash on Amstrad E3 (Delta).
  94. config MTD_NAND_OMAP2
  95. tristate "NAND Flash device on OMAP2, OMAP3 and OMAP4"
  96. depends on ARM && (ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4)
  97. help
  98. Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4
  99. platforms.
  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_RTC_FROM4
  146. tristate "Renesas Flash ROM 4-slot interface board (FROM_BOARD4)"
  147. depends on SH_SOLUTION_ENGINE
  148. select REED_SOLOMON
  149. select REED_SOLOMON_DEC8
  150. select BITREVERSE
  151. help
  152. This enables the driver for the Renesas Technology AG-AND
  153. flash interface board (FROM_BOARD4)
  154. config MTD_NAND_PPCHAMELEONEVB
  155. tristate "NAND Flash device on PPChameleonEVB board"
  156. depends on PPCHAMELEONEVB && BROKEN
  157. help
  158. This enables the NAND flash driver on the PPChameleon EVB Board.
  159. config MTD_NAND_S3C2410
  160. tristate "NAND Flash support for Samsung S3C SoCs"
  161. depends on ARCH_S3C2410 || ARCH_S3C64XX
  162. help
  163. This enables the NAND flash controller on the S3C24xx and S3C64xx
  164. SoCs
  165. No board specific support is done by this driver, each board
  166. must advertise a platform_device for the driver to attach.
  167. config MTD_NAND_S3C2410_DEBUG
  168. bool "Samsung S3C NAND driver debug"
  169. depends on MTD_NAND_S3C2410
  170. help
  171. Enable debugging of the S3C NAND driver
  172. config MTD_NAND_S3C2410_HWECC
  173. bool "Samsung S3C NAND Hardware ECC"
  174. depends on MTD_NAND_S3C2410
  175. help
  176. Enable the use of the controller's internal ECC generator when
  177. using NAND. Early versions of the chips have had problems with
  178. incorrect ECC generation, and if using these, the default of
  179. software ECC is preferable.
  180. config MTD_NAND_NDFC
  181. tristate "NDFC NanD Flash Controller"
  182. depends on 4xx
  183. select MTD_NAND_ECC_SMC
  184. help
  185. NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
  186. config MTD_NAND_S3C2410_CLKSTOP
  187. bool "Samsung S3C NAND IDLE clock stop"
  188. depends on MTD_NAND_S3C2410
  189. default n
  190. help
  191. Stop the clock to the NAND controller when there is no chip
  192. selected to save power. This will mean there is a small delay
  193. when the is NAND chip selected or released, but will save
  194. approximately 5mA of power when there is nothing happening.
  195. config MTD_NAND_BCM_UMI
  196. tristate "NAND Flash support for BCM Reference Boards"
  197. depends on ARCH_BCMRING
  198. help
  199. This enables the NAND flash controller on the BCM UMI block.
  200. No board specific support is done by this driver, each board
  201. must advertise a platform_device for the driver to attach.
  202. config MTD_NAND_BCM_UMI_HWCS
  203. bool "BCM UMI NAND Hardware CS"
  204. depends on MTD_NAND_BCM_UMI
  205. help
  206. Enable the use of the BCM UMI block's internal CS using NAND.
  207. This should only be used if you know the external NAND CS can toggle.
  208. config MTD_NAND_DISKONCHIP
  209. tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation) (EXPERIMENTAL)"
  210. depends on EXPERIMENTAL
  211. select REED_SOLOMON
  212. select REED_SOLOMON_DEC16
  213. help
  214. This is a reimplementation of M-Systems DiskOnChip 2000,
  215. Millennium and Millennium Plus as a standard NAND device driver,
  216. as opposed to the earlier self-contained MTD device drivers.
  217. This should enable, among other things, proper JFFS2 operation on
  218. these devices.
  219. config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  220. bool "Advanced detection options for DiskOnChip"
  221. depends on MTD_NAND_DISKONCHIP
  222. help
  223. This option allows you to specify nonstandard address at which to
  224. probe for a DiskOnChip, or to change the detection options. You
  225. are unlikely to need any of this unless you are using LinuxBIOS.
  226. Say 'N'.
  227. config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
  228. hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  229. depends on MTD_NAND_DISKONCHIP
  230. default "0"
  231. ---help---
  232. By default, the probe for DiskOnChip devices will look for a
  233. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  234. This option allows you to specify a single address at which to probe
  235. for the device, which is useful if you have other devices in that
  236. range which get upset when they are probed.
  237. (Note that on PowerPC, the normal probe will only check at
  238. 0xE4000000.)
  239. Normally, you should leave this set to zero, to allow the probe at
  240. the normal addresses.
  241. config MTD_NAND_DISKONCHIP_PROBE_HIGH
  242. bool "Probe high addresses"
  243. depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
  244. help
  245. By default, the probe for DiskOnChip devices will look for a
  246. DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
  247. This option changes to make it probe between 0xFFFC8000 and
  248. 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
  249. useful to you. Say 'N'.
  250. config MTD_NAND_DISKONCHIP_BBTWRITE
  251. bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
  252. depends on MTD_NAND_DISKONCHIP
  253. help
  254. On DiskOnChip devices shipped with the INFTL filesystem (Millennium
  255. and 2000 TSOP/Alon), Linux reserves some space at the end of the
  256. device for the Bad Block Table (BBT). If you have existing INFTL
  257. data on your device (created by non-Linux tools such as M-Systems'
  258. DOS drivers), your data might overlap the area Linux wants to use for
  259. the BBT. If this is a concern for you, leave this option disabled and
  260. Linux will not write BBT data into this area.
  261. The downside of leaving this option disabled is that if bad blocks
  262. are detected by Linux, they will not be recorded in the BBT, which
  263. could cause future problems.
  264. Once you enable this option, new filesystems (INFTL or others, created
  265. in Linux or other operating systems) will not use the reserved area.
  266. The only reason not to enable this option is to prevent damage to
  267. preexisting filesystems.
  268. Even if you leave this disabled, you can enable BBT writes at module
  269. load time (assuming you build diskonchip as a module) with the module
  270. parameter "inftl_bbt_write=1".
  271. config MTD_NAND_SHARPSL
  272. tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
  273. depends on ARCH_PXA
  274. config MTD_NAND_CAFE
  275. tristate "NAND support for OLPC CAFÉ chip"
  276. depends on PCI
  277. select REED_SOLOMON
  278. select REED_SOLOMON_DEC16
  279. help
  280. Use NAND flash attached to the CAFÉ chip designed for the OLPC
  281. laptop.
  282. config MTD_NAND_CS553X
  283. tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
  284. depends on X86_32
  285. help
  286. The CS553x companion chips for the AMD Geode processor
  287. include NAND flash controllers with built-in hardware ECC
  288. capabilities; enabling this option will allow you to use
  289. these. The driver will check the MSRs to verify that the
  290. controller is enabled for NAND, and currently requires that
  291. the controller be in MMIO mode.
  292. If you say "m", the module will be called cs553x_nand.
  293. config MTD_NAND_ATMEL
  294. tristate "Support for NAND Flash / SmartMedia on AT91 and AVR32"
  295. depends on ARCH_AT91 || AVR32
  296. help
  297. Enables support for NAND Flash / Smart Media Card interface
  298. on Atmel AT91 and AVR32 processors.
  299. choice
  300. prompt "ECC management for NAND Flash / SmartMedia on AT91 / AVR32"
  301. depends on MTD_NAND_ATMEL
  302. config MTD_NAND_ATMEL_ECC_HW
  303. bool "Hardware ECC"
  304. depends on ARCH_AT91SAM9263 || ARCH_AT91SAM9260 || AVR32
  305. help
  306. Use hardware ECC instead of software ECC when the chip
  307. supports it.
  308. The hardware ECC controller is capable of single bit error
  309. correction and 2-bit random detection per page.
  310. NB : hardware and software ECC schemes are incompatible.
  311. If you switch from one to another, you'll have to erase your
  312. mtd partition.
  313. If unsure, say Y
  314. config MTD_NAND_ATMEL_ECC_SOFT
  315. bool "Software ECC"
  316. help
  317. Use software ECC.
  318. NB : hardware and software ECC schemes are incompatible.
  319. If you switch from one to another, you'll have to erase your
  320. mtd partition.
  321. config MTD_NAND_ATMEL_ECC_NONE
  322. bool "No ECC (testing only, DANGEROUS)"
  323. depends on DEBUG_KERNEL
  324. help
  325. No ECC will be used.
  326. It's not a good idea and it should be reserved for testing
  327. purpose only.
  328. If unsure, say N
  329. endchoice
  330. config MTD_NAND_PXA3xx
  331. tristate "Support for NAND flash devices on PXA3xx"
  332. depends on PXA3xx || ARCH_MMP
  333. help
  334. This enables the driver for the NAND flash device found on
  335. PXA3xx processors
  336. config MTD_NAND_CM_X270
  337. tristate "Support for NAND Flash on CM-X270 modules"
  338. depends on MACH_ARMCORE
  339. config MTD_NAND_PASEMI
  340. tristate "NAND support for PA Semi PWRficient"
  341. depends on PPC_PASEMI
  342. help
  343. Enables support for NAND Flash interface on PA Semi PWRficient
  344. based boards
  345. config MTD_NAND_TMIO
  346. tristate "NAND Flash device on Toshiba Mobile IO Controller"
  347. depends on MFD_TMIO
  348. help
  349. Support for NAND flash connected to a Toshiba Mobile IO
  350. Controller in some PDAs, including the Sharp SL6000x.
  351. config MTD_NAND_NANDSIM
  352. tristate "Support for NAND Flash Simulator"
  353. help
  354. The simulator may simulate various NAND flash chips for the
  355. MTD nand layer.
  356. config MTD_NAND_GPMI_NAND
  357. bool "GPMI NAND Flash Controller driver"
  358. depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28)
  359. select MTD_PARTITIONS
  360. select MTD_CMDLINE_PARTS
  361. help
  362. Enables NAND Flash support for IMX23 or IMX28.
  363. The GPMI controller is very powerful, with the help of BCH
  364. module, it can do the hardware ECC. The GPMI supports several
  365. NAND flashs at the same time. The GPMI may conflicts with other
  366. block, such as SD card. So pay attention to it when you enable
  367. the GPMI.
  368. config MTD_NAND_PLATFORM
  369. tristate "Support for generic platform NAND driver"
  370. help
  371. This implements a generic NAND driver for on-SOC platform
  372. devices. You will need to provide platform-specific functions
  373. via platform_data.
  374. config MTD_ALAUDA
  375. tristate "MTD driver for Olympus MAUSB-10 and Fujifilm DPC-R1"
  376. depends on USB
  377. help
  378. These two (and possibly other) Alauda-based cardreaders for
  379. SmartMedia and xD allow raw flash access.
  380. config MTD_NAND_ORION
  381. tristate "NAND Flash support for Marvell Orion SoC"
  382. depends on PLAT_ORION
  383. help
  384. This enables the NAND flash controller on Orion machines.
  385. No board specific support is done by this driver, each board
  386. must advertise a platform_device for the driver to attach.
  387. config MTD_NAND_FSL_ELBC
  388. tristate "NAND support for Freescale eLBC controllers"
  389. depends on PPC_OF
  390. select FSL_LBC
  391. help
  392. Various Freescale chips, including the 8313, include a NAND Flash
  393. Controller Module with built-in hardware ECC capabilities.
  394. Enabling this option will enable you to use this to control
  395. external NAND devices.
  396. config MTD_NAND_FSL_UPM
  397. tristate "Support for NAND on Freescale UPM"
  398. depends on PPC_83xx || PPC_85xx
  399. select FSL_LBC
  400. help
  401. Enables support for NAND Flash chips wired onto Freescale PowerPC
  402. processor localbus with User-Programmable Machine support.
  403. config MTD_NAND_MPC5121_NFC
  404. tristate "MPC5121 built-in NAND Flash Controller support"
  405. depends on PPC_MPC512x
  406. help
  407. This enables the driver for the NAND flash controller on the
  408. MPC5121 SoC.
  409. config MTD_NAND_MXC
  410. tristate "MXC NAND support"
  411. depends on IMX_HAVE_PLATFORM_MXC_NAND
  412. help
  413. This enables the driver for the NAND flash controller on the
  414. MXC processors.
  415. config MTD_NAND_NOMADIK
  416. tristate "ST Nomadik 8815 NAND support"
  417. depends on ARCH_NOMADIK
  418. help
  419. Driver for the NAND flash controller on the Nomadik, with ECC.
  420. config MTD_NAND_SH_FLCTL
  421. tristate "Support for NAND on Renesas SuperH FLCTL"
  422. depends on SUPERH || ARCH_SHMOBILE
  423. help
  424. Several Renesas SuperH CPU has FLCTL. This option enables support
  425. for NAND Flash using FLCTL.
  426. config MTD_NAND_DAVINCI
  427. tristate "Support NAND on DaVinci SoC"
  428. depends on ARCH_DAVINCI
  429. help
  430. Enable the driver for NAND flash chips on Texas Instruments
  431. DaVinci processors.
  432. config MTD_NAND_TXX9NDFMC
  433. tristate "NAND Flash support for TXx9 SoC"
  434. depends on SOC_TX4938 || SOC_TX4939
  435. help
  436. This enables the NAND flash controller on the TXx9 SoCs.
  437. config MTD_NAND_SOCRATES
  438. tristate "Support for NAND on Socrates board"
  439. depends on SOCRATES
  440. help
  441. Enables support for NAND Flash chips wired onto Socrates board.
  442. config MTD_NAND_NUC900
  443. tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
  444. depends on ARCH_W90X900
  445. help
  446. This enables the driver for the NAND Flash on evaluation board based
  447. on w90p910 / NUC9xx.
  448. config MTD_NAND_JZ4740
  449. tristate "Support for JZ4740 SoC NAND controller"
  450. depends on MACH_JZ4740
  451. help
  452. Enables support for NAND Flash on JZ4740 SoC based boards.
  453. config MTD_NAND_FSMC
  454. tristate "Support for NAND on ST Micros FSMC"
  455. depends on PLAT_SPEAR || PLAT_NOMADIK || MACH_U300
  456. help
  457. Enables support for NAND Flash chips on the ST Microelectronics
  458. Flexible Static Memory Controller (FSMC)
  459. endif # MTD_NAND