Kconfig 17.8 KB
Newer Older
M
Maxim Levitsky 已提交
1 2 3 4 5 6 7 8 9 10 11
config MTD_NAND_ECC
	tristate

config MTD_NAND_ECC_SMC
	bool "NAND ECC Smart Media byte order"
	depends on MTD_NAND_ECC
	default n
	help
	  Software ECC according to the Smart Media Specification.
	  The original Linux implementation had byte 0 and 1 swapped.

M
Maxim Levitsky 已提交
12 13 14 15 16 17 18 19 20 21 22

menuconfig MTD_NAND
	tristate "NAND Device Support"
	depends on MTD
	select MTD_NAND_IDS
	select MTD_NAND_ECC
	help
	  This enables support for accessing all type of NAND flash
	  devices. For further information see
	  <http://www.linux-mtd.infradead.org/doc/nand.html>.

J
Jan Engelhardt 已提交
23 24
if MTD_NAND

L
Linus Torvalds 已提交
25 26 27 28 29 30 31
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 已提交
32
	  flipped accidentally due to device wear or something else.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

config MTD_NAND_BCH
	tristate
	select BCH
	depends on MTD_NAND_ECC_BCH
	default MTD_NAND

config MTD_NAND_ECC_BCH
	bool "Support software BCH ECC"
	default n
	help
	  This enables support for software BCH error correction. Binary BCH
	  codes are more powerful and cpu intensive than traditional Hamming
	  ECC codes. They are used with NAND devices requiring more than 1 bit
	  of error correction.
L
Linus Torvalds 已提交
48

49 50 51 52
config MTD_SM_COMMON
	tristate
	default n

53 54 55 56 57 58 59 60
config MTD_NAND_MUSEUM_IDS
	bool "Enable chip ids for obsolete ancient NAND devices"
	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 已提交
61 62
config MTD_NAND_AUTCPU12
	tristate "SmartMediaCard on autronix autcpu12 board"
J
Jan Engelhardt 已提交
63
	depends on ARCH_AUTCPU12
L
Linus Torvalds 已提交
64
	help
65
	  This enables the driver for the autronix autcpu12 board to
L
Linus Torvalds 已提交
66 67
	  access the SmartMediaCard.

68 69 70 71 72 73 74 75 76 77
config MTD_NAND_DENALI
       depends on PCI
        tristate "Support Denali NAND controller on Intel Moorestown"
        help
          Enable the driver for NAND flash on Intel Moorestown, using the
          Denali NAND controller core.
 
config MTD_NAND_DENALI_SCRATCH_REG_ADDR
        hex "Denali NAND size scratch register address"
        default "0xFF108018"
78
        depends on MTD_NAND_DENALI
79 80 81 82 83 84 85
        help
          Some platforms place the NAND chip size in a scratch register
          because (some versions of) the driver aren't able to automatically
          determine the size of certain chips. Set the address of the
          scratch register here to enable this feature. On Intel Moorestown
          boards, the scratch register is at 0xFF108018.

L
Linus Torvalds 已提交
86 87
config MTD_NAND_H1900
	tristate "iPAQ H1900 flash"
A
Arnd Bergmann 已提交
88
	depends on ARCH_PXA && BROKEN
L
Linus Torvalds 已提交
89 90 91
	help
	  This enables the driver for the iPAQ h1900 flash.

92 93
config MTD_NAND_GPIO
	tristate "GPIO NAND Flash driver"
94
	depends on GENERIC_GPIO && ARM
95 96 97
	help
	  This enables a GPIO based NAND flash driver.

L
Linus Torvalds 已提交
98 99
config MTD_NAND_SPIA
	tristate "NAND Flash device on SPIA board"
J
Jan Engelhardt 已提交
100
	depends on ARCH_P720T
L
Linus Torvalds 已提交
101 102 103
	help
	  If you had to ask, you don't have one. Say 'N'.

104 105
config MTD_NAND_AMS_DELTA
	tristate "NAND Flash device on Amstrad E3"
J
Jan Engelhardt 已提交
106
	depends on MACH_AMS_DELTA
107
	default y
108 109 110
	help
	  Support for NAND flash on Amstrad E3 (Delta).

111
config MTD_NAND_OMAP2
J
Jan Weitzel 已提交
112
	tristate "NAND Flash device on OMAP2, OMAP3 and OMAP4"
113
	depends on ARCH_OMAP2PLUS
114
	help
J
Jan Weitzel 已提交
115 116
          Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4
	  platforms.
117

L
Linus Torvalds 已提交
118 119 120
config MTD_NAND_IDS
	tristate

121 122 123
config MTD_NAND_RICOH
	tristate "Ricoh xD card reader"
	default n
124
	depends on PCI
125 126 127 128 129 130 131 132
	select MTD_SM_COMMON
	help
	  Enable support for Ricoh R5C852 xD card reader
	  You also need to enable ether
	  NAND SSFDC (SmartMedia) read only translation layer' or new
	  expermental, readwrite
	  'SmartMedia/xD new translation layer'

L
Linus Torvalds 已提交
133
config MTD_NAND_AU1550
134
	tristate "Au1550/1200 NAND support"
135
	depends on MIPS_ALCHEMY
L
Linus Torvalds 已提交
136 137 138 139
	help
	  This enables the driver for the NAND flash controller on the
	  AMD/Alchemy 1550 SOC.

140 141
config MTD_NAND_BF5XX
	tristate "Blackfin on-chip NAND Flash Controller driver"
142
	depends on BF54x || BF52x
143 144 145 146 147 148 149 150 151 152 153
	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"
154
	default y
155 156 157 158 159
	depends on MTD_NAND_BF5XX
	help
	  Enable the use of the BF5XX's internal ECC generator when
	  using NAND.

160 161 162 163 164 165 166 167 168 169 170 171
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 已提交
172 173
config MTD_NAND_RTC_FROM4
	tristate "Renesas Flash ROM 4-slot interface board (FROM_BOARD4)"
J
Jan Engelhardt 已提交
174
	depends on SH_SOLUTION_ENGINE
L
Linus Torvalds 已提交
175 176
	select REED_SOLOMON
	select REED_SOLOMON_DEC8
177
	select BITREVERSE
L
Linus Torvalds 已提交
178
	help
179
	  This enables the driver for the Renesas Technology AG-AND
L
Linus Torvalds 已提交
180 181 182 183
	  flash interface board (FROM_BOARD4)

config MTD_NAND_PPCHAMELEONEVB
	tristate "NAND Flash device on PPChameleonEVB board"
J
Jan Engelhardt 已提交
184
	depends on PPCHAMELEONEVB && BROKEN
L
Linus Torvalds 已提交
185 186 187 188
	help
	  This enables the NAND flash driver on the PPChameleon EVB Board.

config MTD_NAND_S3C2410
189 190
	tristate "NAND Flash support for Samsung S3C SoCs"
	depends on ARCH_S3C2410 || ARCH_S3C64XX
L
Linus Torvalds 已提交
191
	help
192
	  This enables the NAND flash controller on the S3C24xx and S3C64xx
B
Ben Dooks 已提交
193
	  SoCs
L
Linus Torvalds 已提交
194

195
	  No board specific support is done by this driver, each board
196
	  must advertise a platform_device for the driver to attach.
L
Linus Torvalds 已提交
197 198

config MTD_NAND_S3C2410_DEBUG
199
	bool "Samsung S3C NAND driver debug"
L
Linus Torvalds 已提交
200 201
	depends on MTD_NAND_S3C2410
	help
202
	  Enable debugging of the S3C NAND driver
L
Linus Torvalds 已提交
203 204

config MTD_NAND_S3C2410_HWECC
205
	bool "Samsung S3C NAND Hardware ECC"
L
Linus Torvalds 已提交
206 207
	depends on MTD_NAND_S3C2410
	help
208 209
	  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 已提交
210 211 212
	  incorrect ECC generation, and if using these, the default of
	  software ECC is preferable.

S
Sean MacLennan 已提交
213 214 215 216 217 218 219
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

220
config MTD_NAND_S3C2410_CLKSTOP
221
	bool "Samsung S3C NAND IDLE clock stop"
222 223 224 225 226 227 228 229
	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 已提交
230 231
config MTD_NAND_BCM_UMI
	tristate "NAND Flash support for BCM Reference Boards"
232
	depends on ARCH_BCMRING
L
Leo (Hao) Chen 已提交
233 234 235
	help
	  This enables the NAND flash controller on the BCM UMI block.

L
Lucas De Marchi 已提交
236
	  No board specific support is done by this driver, each board
L
Leo (Hao) Chen 已提交
237 238 239 240 241 242 243 244 245
	  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 已提交
246 247
config MTD_NAND_DISKONCHIP
	tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation) (EXPERIMENTAL)"
J
Jan Engelhardt 已提交
248
	depends on EXPERIMENTAL
L
Linus Torvalds 已提交
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 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
	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".

316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
config MTD_NAND_DOCG4
	tristate "Support for DiskOnChip G4 (EXPERIMENTAL)"
	depends on EXPERIMENTAL
	select BCH
	select BITREVERSE
	help
	  Support for diskonchip G4 nand flash, found in various smartphones and
	  PDAs, among them the Palm Treo680, HTC Prophet and Wizard, Toshiba
	  Portege G900, Asus P526, and O2 XDA Zinc.

	  With this driver you will be able to use UBI and create a ubifs on the
	  device, so you may wish to consider enabling UBI and UBIFS as well.

	  These devices ship with the Mys/Sandisk SAFTL formatting, for which
	  there is currently no mtd parser, so you may want to use command line
	  partitioning to segregate write-protected blocks. On the Treo680, the
	  first five erase blocks (256KiB each) are write-protected, followed
	  by the block containing the saftl partition table.  This is probably
	  typical.

336 337
config MTD_NAND_SHARPSL
	tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
J
Jan Engelhardt 已提交
338
	depends on ARCH_PXA
339

340
config MTD_NAND_CAFE
341 342 343 344 345
	tristate "NAND support for OLPC CAFÉ chip"
	depends on PCI
	select REED_SOLOMON
	select REED_SOLOMON_DEC16
	help
346
	  Use NAND flash attached to the CAFÉ chip designed for the OLPC
347
	  laptop.
348

349 350
config MTD_NAND_CS553X
	tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
351
	depends on X86_32
352 353 354 355 356 357 358 359
	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.

360
	  If you say "m", the module will be called cs553x_nand.
361

362
config MTD_NAND_ATMEL
363
	tristate "Support for NAND Flash / SmartMedia on AT91 and AVR32"
364
	depends on ARCH_AT91 || AVR32
A
Andrew Victor 已提交
365 366
	help
	  Enables support for NAND Flash / Smart Media Card interface
367
	  on Atmel AT91 and AVR32 processors.
368
choice
369
	prompt "ECC management for NAND Flash / SmartMedia on AT91 / AVR32"
370
	depends on MTD_NAND_ATMEL
371

372
config MTD_NAND_ATMEL_ECC_HW
373
	bool "Hardware ECC"
374
	depends on ARCH_AT91SAM9263 || ARCH_AT91SAM9260 || AVR32
375
	help
376 377 378
	  Use hardware ECC instead of software ECC when the chip
	  supports it.

379 380 381 382 383 384 385 386 387
	  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

388
config MTD_NAND_ATMEL_ECC_SOFT
389 390
	bool "Software ECC"
	help
391
	  Use software ECC.
392 393 394 395 396

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

397
config MTD_NAND_ATMEL_ECC_NONE
398 399 400 401 402 403 404 405 406 407
	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
A
Andrew Victor 已提交
408

E
eric miao 已提交
409
config MTD_NAND_PXA3xx
410
	tristate "Support for NAND flash devices on PXA3xx"
411
	depends on PXA3xx || ARCH_MMP
E
eric miao 已提交
412 413 414 415
	help
	  This enables the driver for the NAND flash device found on
	  PXA3xx processors

M
Mike Rapoport 已提交
416 417
config MTD_NAND_CM_X270
	tristate "Support for NAND Flash on CM-X270 modules"
418
	depends on MACH_ARMCORE
M
Mike Rapoport 已提交
419

E
Egor Martovetsky 已提交
420 421
config MTD_NAND_PASEMI
	tristate "NAND support for PA Semi PWRficient"
422
	depends on PPC_PASEMI
E
Egor Martovetsky 已提交
423 424 425
	help
	  Enables support for NAND Flash interface on PA Semi PWRficient
	  based boards
M
Mike Rapoport 已提交
426

427 428
config MTD_NAND_TMIO
	tristate "NAND Flash device on Toshiba Mobile IO Controller"
429
	depends on MFD_TMIO
430 431 432 433
	help
	  Support for NAND flash connected to a Toshiba Mobile IO
	  Controller in some PDAs, including the Sharp SL6000x.

434 435
config MTD_NAND_NANDSIM
	tristate "Support for NAND Flash Simulator"
L
Linus Torvalds 已提交
436
	help
437
	  The simulator may simulate various NAND flash chips for the
L
Linus Torvalds 已提交
438
	  MTD nand layer.
439

440 441 442 443 444 445 446 447 448 449 450
config MTD_NAND_GPMI_NAND
        bool "GPMI NAND Flash Controller driver"
        depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28)
        help
	 Enables NAND Flash support for IMX23 or IMX28.
	 The GPMI controller is very powerful, with the help of BCH
	 module, it can do the hardware ECC. The GPMI supports several
	 NAND flashs at the same time. The GPMI may conflicts with other
	 block, such as SD card. So pay attention to it when you enable
	 the GPMI.

451 452 453 454 455 456 457
config MTD_NAND_PLATFORM
	tristate "Support for generic platform NAND driver"
	help
	  This implements a generic NAND driver for on-SOC platform
	  devices. You will need to provide platform-specific functions
	  via platform_data.

458
config MTD_ALAUDA
459
	tristate "MTD driver for Olympus MAUSB-10 and Fujifilm DPC-R1"
460
	depends on USB
461 462 463
	help
	  These two (and possibly other) Alauda-based cardreaders for
	  SmartMedia and xD allow raw flash access.
464

465 466
config MTD_NAND_ORION
	tristate "NAND Flash support for Marvell Orion SoC"
467
	depends on PLAT_ORION
468 469 470 471 472 473
	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.

474 475
config MTD_NAND_FSL_ELBC
	tristate "NAND support for Freescale eLBC controllers"
476
	depends on PPC_OF
477
	select FSL_LBC
478 479 480 481 482 483
	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.

484 485
config MTD_NAND_FSL_UPM
	tristate "Support for NAND on Freescale UPM"
486
	depends on PPC_83xx || PPC_85xx
487 488 489 490 491
	select FSL_LBC
	help
	  Enables support for NAND Flash chips wired onto Freescale PowerPC
	  processor localbus with User-Programmable Machine support.

492 493 494 495 496 497 498
config MTD_NAND_MPC5121_NFC
	tristate "MPC5121 built-in NAND Flash Controller support"
	depends on PPC_MPC512x
	help
	  This enables the driver for the NAND flash controller on the
	  MPC5121 SoC.

499 500
config MTD_NAND_MXC
	tristate "MXC NAND support"
R
Richard Zhao 已提交
501
	depends on IMX_HAVE_PLATFORM_MXC_NAND
502 503 504 505
	help
	  This enables the driver for the NAND flash controller on the
	  MXC processors.

506 507 508 509 510 511
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.

512 513
config MTD_NAND_SH_FLCTL
	tristate "Support for NAND on Renesas SuperH FLCTL"
514
	depends on SUPERH || ARCH_SHMOBILE
515 516
	help
	  Several Renesas SuperH CPU has FLCTL. This option enables support
M
Magnus Damm 已提交
517
	  for NAND Flash using FLCTL.
518

519 520 521 522 523 524 525
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.

526 527 528 529 530 531
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.

532 533
config MTD_NAND_SOCRATES
	tristate "Support for NAND on Socrates board"
534
	depends on SOCRATES
535 536 537
	help
	  Enables support for NAND Flash chips wired onto Socrates board.

538 539
config MTD_NAND_NUC900
	tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
J
Jamie Iles 已提交
540
	depends on ARCH_W90X900
541 542
	help
	  This enables the driver for the NAND Flash on evaluation board based
543
	  on w90p910 / NUC9xx.
544

545 546 547 548 549 550
config MTD_NAND_JZ4740
	tristate "Support for JZ4740 SoC NAND controller"
	depends on MACH_JZ4740
	help
		Enables support for NAND Flash on JZ4740 SoC based boards.

L
Linus Walleij 已提交
551 552 553 554 555 556 557
config MTD_NAND_FSMC
	tristate "Support for NAND on ST Micros FSMC"
	depends on PLAT_SPEAR || PLAT_NOMADIK || MACH_U300
	help
	  Enables support for NAND Flash chips on the ST Microelectronics
	  Flexible Static Memory Controller (FSMC)

J
Jan Engelhardt 已提交
558
endif # MTD_NAND