Kconfig 17 KB

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