Kconfig 15.9 KB
Newer Older
J
Jan Engelhardt 已提交
1
menuconfig MTD_NAND
L
Linus Torvalds 已提交
2 3 4 5 6 7
	tristate "NAND Device Support"
	depends on MTD
	select MTD_NAND_IDS
	help
	  This enables support for accessing all type of NAND flash
	  devices. For further information see
8
	  <http://www.linux-mtd.infradead.org/doc/nand.html>.
L
Linus Torvalds 已提交
9

J
Jan Engelhardt 已提交
10 11
if MTD_NAND

L
Linus Torvalds 已提交
12 13 14 15 16 17 18
config MTD_NAND_VERIFY_WRITE
	bool "Verify NAND page writes"
	help
	  This adds an extra check when data is written to the flash. The
	  NAND flash device internally checks only bits transitioning
	  from 1 to 0. There is a rare possibility that even though the
	  device thinks the write was successful, a bit could have been
M
Matt LaPlante 已提交
19
	  flipped accidentally due to device wear or something else.
L
Linus Torvalds 已提交
20

21 22 23 24 25 26 27
config MTD_NAND_ECC_SMC
	bool "NAND ECC Smart Media byte order"
	default n
	help
	  Software ECC according to the Smart Media Specification.
	  The original Linux implementation had byte 0 and 1 swapped.

28 29 30 31 32 33 34 35 36
config MTD_NAND_MUSEUM_IDS
	bool "Enable chip ids for obsolete ancient NAND devices"
	depends on MTD_NAND
	default n
	help
	  Enable this option only when your board has first generation
	  NAND chips (page size 256 byte, erase size 4-8KiB). The IDs
	  of these chips were reused by later, larger chips.

L
Linus Torvalds 已提交
37 38
config MTD_NAND_AUTCPU12
	tristate "SmartMediaCard on autronix autcpu12 board"
J
Jan Engelhardt 已提交
39
	depends on ARCH_AUTCPU12
L
Linus Torvalds 已提交
40
	help
41
	  This enables the driver for the autronix autcpu12 board to
L
Linus Torvalds 已提交
42 43 44 45
	  access the SmartMediaCard.

config MTD_NAND_EDB7312
	tristate "Support for Cirrus Logic EBD7312 evaluation board"
J
Jan Engelhardt 已提交
46
	depends on ARCH_EDB7312
L
Linus Torvalds 已提交
47
	help
48
	  This enables the driver for the Cirrus Logic EBD7312 evaluation
L
Linus Torvalds 已提交
49 50 51 52
	  board to access the onboard NAND Flash.

config MTD_NAND_H1900
	tristate "iPAQ H1900 flash"
J
Jan Engelhardt 已提交
53
	depends on ARCH_PXA && MTD_PARTITIONS
L
Linus Torvalds 已提交
54 55 56
	help
	  This enables the driver for the iPAQ h1900 flash.

57 58
config MTD_NAND_GPIO
	tristate "GPIO NAND Flash driver"
59
	depends on GENERIC_GPIO && ARM
60 61 62
	help
	  This enables a GPIO based NAND flash driver.

L
Linus Torvalds 已提交
63 64
config MTD_NAND_SPIA
	tristate "NAND Flash device on SPIA board"
J
Jan Engelhardt 已提交
65
	depends on ARCH_P720T
L
Linus Torvalds 已提交
66 67 68
	help
	  If you had to ask, you don't have one. Say 'N'.

69 70
config MTD_NAND_AMS_DELTA
	tristate "NAND Flash device on Amstrad E3"
J
Jan Engelhardt 已提交
71
	depends on MACH_AMS_DELTA
72 73 74
	help
	  Support for NAND flash on Amstrad E3 (Delta).

75 76 77 78 79 80
config MTD_NAND_OMAP2
	tristate "NAND Flash device on OMAP2 and OMAP3"
	depends on ARM && MTD_NAND && (ARCH_OMAP2 || ARCH_OMAP3)
	help
          Support for NAND flash on Texas Instruments OMAP2 and OMAP3 platforms.

81 82 83 84 85 86 87 88
config MTD_NAND_OMAP_PREFETCH
	bool "GPMC prefetch support for NAND Flash device"
	depends on MTD_NAND && MTD_NAND_OMAP2
	default y
	help
	 The NAND device can be accessed for Read/Write using GPMC PREFETCH engine
	 to improve the performance.

89 90 91 92 93 94 95 96 97
config MTD_NAND_OMAP_PREFETCH_DMA
	depends on MTD_NAND_OMAP_PREFETCH
	bool "DMA mode"
	default n
	help
	 The GPMC PREFETCH engine can be configured eigther in MPU interrupt mode
	 or in DMA interrupt mode.
	 Say y for DMA mode or MPU mode will be used

L
Linus Torvalds 已提交
98 99 100 101
config MTD_NAND_IDS
	tristate

config MTD_NAND_AU1550
102
	tristate "Au1550/1200 NAND support"
J
Jan Engelhardt 已提交
103
	depends on SOC_AU1200 || SOC_AU1550
L
Linus Torvalds 已提交
104 105 106 107
	help
	  This enables the driver for the NAND flash controller on the
	  AMD/Alchemy 1550 SOC.

108 109
config MTD_NAND_BF5XX
	tristate "Blackfin on-chip NAND Flash Controller driver"
110
	depends on (BF54x || BF52x) && MTD_NAND
111 112 113 114 115 116 117 118 119 120 121
	help
	  This enables the Blackfin on-chip NAND flash controller

	  No board specific support is done by this driver, each board
	  must advertise a platform_device for the driver to attach.

	  This driver can also be built as a module. If so, the module
	  will be called bf5xx-nand.

config MTD_NAND_BF5XX_HWECC
	bool "BF5XX NAND Hardware ECC"
122
	default y
123 124 125 126 127
	depends on MTD_NAND_BF5XX
	help
	  Enable the use of the BF5XX's internal ECC generator when
	  using NAND.

128 129 130 131 132 133 134 135 136 137 138 139
config MTD_NAND_BF5XX_BOOTROM_ECC
	bool "Use Blackfin BootROM ECC Layout"
	default n
	depends on MTD_NAND_BF5XX_HWECC
	help
	  If you wish to modify NAND pages and allow the Blackfin on-chip
	  BootROM to boot from them, say Y here.  This is only necessary
	  if you are booting U-Boot out of NAND and you wish to update
	  U-Boot from Linux' userspace.  Otherwise, you should say N here.

	  If unsure, say N.

L
Linus Torvalds 已提交
140 141
config MTD_NAND_RTC_FROM4
	tristate "Renesas Flash ROM 4-slot interface board (FROM_BOARD4)"
J
Jan Engelhardt 已提交
142
	depends on SH_SOLUTION_ENGINE
L
Linus Torvalds 已提交
143 144
	select REED_SOLOMON
	select REED_SOLOMON_DEC8
145
	select BITREVERSE
L
Linus Torvalds 已提交
146
	help
147
	  This enables the driver for the Renesas Technology AG-AND
L
Linus Torvalds 已提交
148 149 150 151
	  flash interface board (FROM_BOARD4)

config MTD_NAND_PPCHAMELEONEVB
	tristate "NAND Flash device on PPChameleonEVB board"
J
Jan Engelhardt 已提交
152
	depends on PPCHAMELEONEVB && BROKEN
L
Linus Torvalds 已提交
153 154 155 156
	help
	  This enables the NAND flash driver on the PPChameleon EVB Board.

config MTD_NAND_S3C2410
157 158
	tristate "NAND Flash support for Samsung S3C SoCs"
	depends on ARCH_S3C2410 || ARCH_S3C64XX
L
Linus Torvalds 已提交
159
	help
160
	  This enables the NAND flash controller on the S3C24xx and S3C64xx
B
Ben Dooks 已提交
161
	  SoCs
L
Linus Torvalds 已提交
162

163
	  No board specific support is done by this driver, each board
164
	  must advertise a platform_device for the driver to attach.
L
Linus Torvalds 已提交
165 166

config MTD_NAND_S3C2410_DEBUG
167
	bool "Samsung S3C NAND driver debug"
L
Linus Torvalds 已提交
168 169
	depends on MTD_NAND_S3C2410
	help
170
	  Enable debugging of the S3C NAND driver
L
Linus Torvalds 已提交
171 172

config MTD_NAND_S3C2410_HWECC
173
	bool "Samsung S3C NAND Hardware ECC"
L
Linus Torvalds 已提交
174 175
	depends on MTD_NAND_S3C2410
	help
176 177
	  Enable the use of the controller's internal ECC generator when
	  using NAND. Early versions of the chips have had problems with
L
Linus Torvalds 已提交
178 179 180
	  incorrect ECC generation, and if using these, the default of
	  software ECC is preferable.

S
Sean MacLennan 已提交
181 182 183 184 185 186 187
config MTD_NAND_NDFC
	tristate "NDFC NanD Flash Controller"
	depends on 4xx
	select MTD_NAND_ECC_SMC
	help
	 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 191 192 193 194 195 196 197
	depends on MTD_NAND_S3C2410
	default n
	help
	  Stop the clock to the NAND controller when there is no chip
	  selected to save power. This will mean there is a small delay
	  when the is NAND chip selected or released, but will save
	  approximately 5mA of power when there is nothing happening.

L
Leo (Hao) Chen 已提交
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
config MTD_NAND_BCM_UMI
	tristate "NAND Flash support for BCM Reference Boards"
	depends on ARCH_BCMRING && MTD_NAND
	help
	  This enables the NAND flash controller on the BCM UMI block.

	  No board specfic support is done by this driver, each board
	  must advertise a platform_device for the driver to attach.

config MTD_NAND_BCM_UMI_HWCS
	bool "BCM UMI NAND Hardware CS"
	depends on MTD_NAND_BCM_UMI
	help
	  Enable the use of the BCM UMI block's internal CS using NAND.
	  This should only be used if you know the external NAND CS can toggle.

L
Linus Torvalds 已提交
214 215
config MTD_NAND_DISKONCHIP
	tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation) (EXPERIMENTAL)"
J
Jan Engelhardt 已提交
216
	depends on EXPERIMENTAL
L
Linus Torvalds 已提交
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
	select REED_SOLOMON
	select REED_SOLOMON_DEC16
	help
	  This is a reimplementation of M-Systems DiskOnChip 2000,
	  Millennium and Millennium Plus as a standard NAND device driver,
	  as opposed to the earlier self-contained MTD device drivers.
	  This should enable, among other things, proper JFFS2 operation on
	  these devices.

config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
        bool "Advanced detection options for DiskOnChip"
        depends on MTD_NAND_DISKONCHIP
        help
          This option allows you to specify nonstandard address at which to
          probe for a DiskOnChip, or to change the detection options.  You
          are unlikely to need any of this unless you are using LinuxBIOS.
          Say 'N'.

config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
        hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
        depends on MTD_NAND_DISKONCHIP
        default "0"
        ---help---
        By default, the probe for DiskOnChip devices will look for a
        DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
        This option allows you to specify a single address at which to probe
        for the device, which is useful if you have other devices in that
        range which get upset when they are probed.

        (Note that on PowerPC, the normal probe will only check at
        0xE4000000.)

        Normally, you should leave this set to zero, to allow the probe at
        the normal addresses.

config MTD_NAND_DISKONCHIP_PROBE_HIGH
        bool "Probe high addresses"
        depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
        help
          By default, the probe for DiskOnChip devices will look for a
          DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
          This option changes to make it probe between 0xFFFC8000 and
          0xFFFEE000.  Unless you are using LinuxBIOS, this is unlikely to be
          useful to you.  Say 'N'.

config MTD_NAND_DISKONCHIP_BBTWRITE
	bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
	depends on MTD_NAND_DISKONCHIP
	help
	  On DiskOnChip devices shipped with the INFTL filesystem (Millennium
	  and 2000 TSOP/Alon), Linux reserves some space at the end of the
	  device for the Bad Block Table (BBT).  If you have existing INFTL
	  data on your device (created by non-Linux tools such as M-Systems'
	  DOS drivers), your data might overlap the area Linux wants to use for
	  the BBT.  If this is a concern for you, leave this option disabled and
	  Linux will not write BBT data into this area.
	  The downside of leaving this option disabled is that if bad blocks
	  are detected by Linux, they will not be recorded in the BBT, which
	  could cause future problems.
	  Once you enable this option, new filesystems (INFTL or others, created
	  in Linux or other operating systems) will not use the reserved area.
	  The only reason not to enable this option is to prevent damage to
	  preexisting filesystems.
	  Even if you leave this disabled, you can enable BBT writes at module
	  load time (assuming you build diskonchip as a module) with the module
	  parameter "inftl_bbt_write=1".

284 285
config MTD_NAND_SHARPSL
	tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
J
Jan Engelhardt 已提交
286
	depends on ARCH_PXA
287

288 289
config MTD_NAND_BASLER_EXCITE
	tristate  "Support for NAND Flash on Basler eXcite"
J
Jan Engelhardt 已提交
290
	depends on BASLER_EXCITE
291 292 293
	help
          This enables the driver for the NAND flash device found on the
          Basler eXcite Smart Camera. If built as a module, the driver
294
          will be named excite_nandflash.
295

296
config MTD_NAND_CAFE
297 298 299 300 301
	tristate "NAND support for OLPC CAFÉ chip"
	depends on PCI
	select REED_SOLOMON
	select REED_SOLOMON_DEC16
	help
302
	  Use NAND flash attached to the CAFÉ chip designed for the OLPC
303
	  laptop.
304

305 306
config MTD_NAND_CS553X
	tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
307
	depends on X86_32
308 309 310 311 312 313 314 315
	help
	  The CS553x companion chips for the AMD Geode processor
	  include NAND flash controllers with built-in hardware ECC
	  capabilities; enabling this option will allow you to use
	  these. The driver will check the MSRs to verify that the
	  controller is enabled for NAND, and currently requires that
	  the controller be in MMIO mode.

316
	  If you say "m", the module will be called cs553x_nand.
317

318
config MTD_NAND_ATMEL
319
	tristate "Support for NAND Flash / SmartMedia on AT91 and AVR32"
320
	depends on ARCH_AT91 || AVR32
A
Andrew Victor 已提交
321 322
	help
	  Enables support for NAND Flash / Smart Media Card interface
323
	  on Atmel AT91 and AVR32 processors.
324
choice
325
	prompt "ECC management for NAND Flash / SmartMedia on AT91 / AVR32"
326
	depends on MTD_NAND_ATMEL
327

328
config MTD_NAND_ATMEL_ECC_HW
329
	bool "Hardware ECC"
330
	depends on ARCH_AT91SAM9263 || ARCH_AT91SAM9260 || AVR32
331
	help
332 333 334
	  Use hardware ECC instead of software ECC when the chip
	  supports it.

335 336 337 338 339 340 341 342 343
	  The hardware ECC controller is capable of single bit error
	  correction and 2-bit random detection per page.

	  NB : hardware and software ECC schemes are incompatible.
	  If you switch from one to another, you'll have to erase your
	  mtd partition.

	  If unsure, say Y

344
config MTD_NAND_ATMEL_ECC_SOFT
345 346
	bool "Software ECC"
	help
347
	  Use software ECC.
348 349 350 351 352

	  NB : hardware and software ECC schemes are incompatible.
	  If you switch from one to another, you'll have to erase your
	  mtd partition.

353
config MTD_NAND_ATMEL_ECC_NONE
354 355 356 357 358 359 360 361 362 363 364 365
	bool "No ECC (testing only, DANGEROUS)"
	depends on DEBUG_KERNEL
	help
	  No ECC will be used.
	  It's not a good idea and it should be reserved for testing
	  purpose only.

	  If unsure, say N

	  endchoice

endchoice
A
Andrew Victor 已提交
366

E
eric miao 已提交
367
config MTD_NAND_PXA3xx
368
	tristate "Support for NAND flash devices on PXA3xx"
369
	depends on MTD_NAND && (PXA3xx || ARCH_MMP)
E
eric miao 已提交
370 371 372 373
	help
	  This enables the driver for the NAND flash device found on
	  PXA3xx processors

374 375 376 377 378 379 380
config MTD_NAND_PXA3xx_BUILTIN
	bool "Use builtin definitions for some NAND chips (deprecated)"
	depends on MTD_NAND_PXA3xx
	help
	  This enables builtin definitions for some NAND chips. This
	  is deprecated in favor of platform specific data.

M
Mike Rapoport 已提交
381 382 383 384
config MTD_NAND_CM_X270
	tristate "Support for NAND Flash on CM-X270 modules"
	depends on MTD_NAND && MACH_ARMCORE

E
Egor Martovetsky 已提交
385 386 387 388 389 390
config MTD_NAND_PASEMI
	tristate "NAND support for PA Semi PWRficient"
	depends on MTD_NAND && PPC_PASEMI
	help
	  Enables support for NAND Flash interface on PA Semi PWRficient
	  based boards
M
Mike Rapoport 已提交
391

392 393
config MTD_NAND_TMIO
	tristate "NAND Flash device on Toshiba Mobile IO Controller"
394
	depends on MTD_NAND && MFD_TMIO
395 396 397 398
	help
	  Support for NAND flash connected to a Toshiba Mobile IO
	  Controller in some PDAs, including the Sharp SL6000x.

399 400
config MTD_NAND_NANDSIM
	tristate "Support for NAND Flash Simulator"
J
Jan Engelhardt 已提交
401
	depends on MTD_PARTITIONS
L
Linus Torvalds 已提交
402
	help
403
	  The simulator may simulate various NAND flash chips for the
L
Linus Torvalds 已提交
404
	  MTD nand layer.
405

406 407 408 409 410 411 412 413
config MTD_NAND_PLATFORM
	tristate "Support for generic platform NAND driver"
	depends on MTD_NAND
	help
	  This implements a generic NAND driver for on-SOC platform
	  devices. You will need to provide platform-specific functions
	  via platform_data.

414
config MTD_ALAUDA
415
	tristate "MTD driver for Olympus MAUSB-10 and Fujifilm DPC-R1"
416 417 418 419
	depends on MTD_NAND && USB
	help
	  These two (and possibly other) Alauda-based cardreaders for
	  SmartMedia and xD allow raw flash access.
420

421 422
config MTD_NAND_ORION
	tristate "NAND Flash support for Marvell Orion SoC"
423
	depends on PLAT_ORION && MTD_NAND
424 425 426 427 428 429
	help
	  This enables the NAND flash controller on Orion machines.

	  No board specific support is done by this driver, each board
	  must advertise a platform_device for the driver to attach.

430 431 432 433 434 435 436 437 438
config MTD_NAND_FSL_ELBC
	tristate "NAND support for Freescale eLBC controllers"
	depends on MTD_NAND && PPC_OF
	help
	  Various Freescale chips, including the 8313, include a NAND Flash
	  Controller Module with built-in hardware ECC capabilities.
	  Enabling this option will enable you to use this to control
	  external NAND devices.

439 440
config MTD_NAND_FSL_UPM
	tristate "Support for NAND on Freescale UPM"
441
	depends on MTD_NAND && (PPC_83xx || PPC_85xx)
442 443 444 445 446
	select FSL_LBC
	help
	  Enables support for NAND Flash chips wired onto Freescale PowerPC
	  processor localbus with User-Programmable Machine support.

447 448
config MTD_NAND_MXC
	tristate "MXC NAND support"
S
Sascha Hauer 已提交
449
	depends on ARCH_MX2 || ARCH_MX3
450 451 452 453
	help
	  This enables the driver for the NAND flash controller on the
	  MXC processors.

454 455 456 457 458 459
config MTD_NAND_NOMADIK
	tristate "ST Nomadik 8815 NAND support"
	depends on ARCH_NOMADIK
	help
	  Driver for the NAND flash controller on the Nomadik, with ECC.

460 461 462 463 464 465 466
config MTD_NAND_SH_FLCTL
	tristate "Support for NAND on Renesas SuperH FLCTL"
	depends on MTD_NAND && SUPERH && CPU_SUBTYPE_SH7723
	help
	  Several Renesas SuperH CPU has FLCTL. This option enables support
	  for NAND Flash using FLCTL. This driver support SH7723.

467 468 469 470 471 472 473
config MTD_NAND_DAVINCI
        tristate "Support NAND on DaVinci SoC"
        depends on ARCH_DAVINCI
        help
	  Enable the driver for NAND flash chips on Texas Instruments
	  DaVinci processors.

474 475 476 477 478 479
config MTD_NAND_TXX9NDFMC
	tristate "NAND Flash support for TXx9 SoC"
	depends on SOC_TX4938 || SOC_TX4939
	help
	  This enables the NAND flash controller on the TXx9 SoCs.

480 481 482 483 484 485
config MTD_NAND_SOCRATES
	tristate "Support for NAND on Socrates board"
	depends on MTD_NAND && SOCRATES
	help
	  Enables support for NAND Flash chips wired onto Socrates board.

486 487
config MTD_NAND_NUC900
	tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
488 489 490
	depends on ARCH_W90X900 && MTD_PARTITIONS
	help
	  This enables the driver for the NAND Flash on evaluation board based
491
	  on w90p910 / NUC9xx.
492

J
Jan Engelhardt 已提交
493
endif # MTD_NAND