Kconfig 17.5 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

25 26 27 28 29 30 31 32 33 34 35 36 37 38
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 已提交
39

40 41 42 43
config MTD_SM_COMMON
	tristate
	default n

44
config MTD_NAND_DENALI
45
        tristate "Support Denali NAND controller"
46
        depends on HAS_DMA
47 48 49 50 51 52
        help
	  Enable support for the Denali NAND controller.  This should be
	  combined with either the PCI or platform drivers to provide device
	  registration.

config MTD_NAND_DENALI_PCI
53
        tristate "Support Denali NAND controller on Intel Moorestown"
54
	depends on PCI && MTD_NAND_DENALI
55 56 57
        help
          Enable the driver for NAND flash on Intel Moorestown, using the
          Denali NAND controller core.
D
Dinh Nguyen 已提交
58 59 60 61 62 63 64 65

config MTD_NAND_DENALI_DT
	tristate "Support Denali NAND controller as a DT device"
	depends on HAVE_CLK && MTD_NAND_DENALI
	help
	  Enable the driver for NAND flash on platforms using a Denali NAND
	  controller as a DT device.

66 67 68
config MTD_NAND_DENALI_SCRATCH_REG_ADDR
        hex "Denali NAND size scratch register address"
        default "0xFF108018"
69
        depends on MTD_NAND_DENALI_PCI
70 71 72 73 74 75 76
        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.

77
config MTD_NAND_GPIO
78
	tristate "GPIO assisted NAND Flash driver"
79
	depends on GPIOLIB
80
	help
81 82 83
	  This enables a NAND flash driver where control signals are
	  connected to GPIO pins, and commands and data are communicated
	  via a memory mapped interface.
84

85 86
config MTD_NAND_AMS_DELTA
	tristate "NAND Flash device on Amstrad E3"
J
Jan Engelhardt 已提交
87
	depends on MACH_AMS_DELTA
88
	default y
89 90 91
	help
	  Support for NAND flash on Amstrad E3 (Delta).

92
config MTD_NAND_OMAP2
J
Jan Weitzel 已提交
93
	tristate "NAND Flash device on OMAP2, OMAP3 and OMAP4"
94
	depends on ARCH_OMAP2PLUS
95
	help
J
Jan Weitzel 已提交
96 97
          Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4
	  platforms.
98

99
config MTD_NAND_OMAP_BCH
100
	depends on MTD_NAND_OMAP2
101
	bool "Support hardware based BCH error correction"
102 103 104
	default n
	select BCH
	help
105 106 107 108
	  This config enables the ELM hardware engine, which can be used to
	  locate and correct errors when using BCH ECC scheme. This offloads
	  the cpu from doing ECC error searching and correction. However some
	  legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
109
	  so this is optional for them.
110

111 112 113
config MTD_NAND_OMAP_BCH_BUILD
	def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH

L
Linus Torvalds 已提交
114 115 116
config MTD_NAND_IDS
	tristate

117 118 119
config MTD_NAND_RICOH
	tristate "Ricoh xD card reader"
	default n
120
	depends on PCI
121 122 123 124 125 126 127 128
	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 已提交
129
config MTD_NAND_AU1550
130
	tristate "Au1550/1200 NAND support"
131
	depends on MIPS_ALCHEMY
L
Linus Torvalds 已提交
132 133 134 135
	help
	  This enables the driver for the NAND flash controller on the
	  AMD/Alchemy 1550 SOC.

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

156 157 158 159 160 161 162 163 164 165 166 167
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 已提交
168
config MTD_NAND_S3C2410
169
	tristate "NAND Flash support for Samsung S3C SoCs"
170
	depends on ARCH_S3C24XX || ARCH_S3C64XX
L
Linus Torvalds 已提交
171
	help
172
	  This enables the NAND flash controller on the S3C24xx and S3C64xx
B
Ben Dooks 已提交
173
	  SoCs
L
Linus Torvalds 已提交
174

175
	  No board specific support is done by this driver, each board
176
	  must advertise a platform_device for the driver to attach.
L
Linus Torvalds 已提交
177 178

config MTD_NAND_S3C2410_DEBUG
179
	bool "Samsung S3C NAND driver debug"
L
Linus Torvalds 已提交
180 181
	depends on MTD_NAND_S3C2410
	help
182
	  Enable debugging of the S3C NAND driver
L
Linus Torvalds 已提交
183 184

config MTD_NAND_S3C2410_HWECC
185
	bool "Samsung S3C NAND Hardware ECC"
L
Linus Torvalds 已提交
186 187
	depends on MTD_NAND_S3C2410
	help
188 189
	  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 已提交
190 191 192
	  incorrect ECC generation, and if using these, the default of
	  software ECC is preferable.

S
Sean MacLennan 已提交
193 194 195 196 197 198 199
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

200
config MTD_NAND_S3C2410_CLKSTOP
201
	bool "Samsung S3C NAND IDLE clock stop"
202 203 204 205 206 207 208 209
	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
Linus Torvalds 已提交
210
config MTD_NAND_DISKONCHIP
211
	tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
R
Richard Weinberger 已提交
212
	depends on HAS_IOMEM
L
Linus Torvalds 已提交
213 214 215 216 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
	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".

280
config MTD_NAND_DOCG4
281 282
	tristate "Support for DiskOnChip G4"
	depends on HAS_IOMEM
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
	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.

300 301
config MTD_NAND_SHARPSL
	tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
J
Jan Engelhardt 已提交
302
	depends on ARCH_PXA
303

304
config MTD_NAND_CAFE
305 306 307 308 309
	tristate "NAND support for OLPC CAFÉ chip"
	depends on PCI
	select REED_SOLOMON
	select REED_SOLOMON_DEC16
	help
310
	  Use NAND flash attached to the CAFÉ chip designed for the OLPC
311
	  laptop.
312

313 314
config MTD_NAND_CS553X
	tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
315
	depends on X86_32
316 317 318 319 320 321 322 323
	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.

324
	  If you say "m", the module will be called cs553x_nand.
325

326
config MTD_NAND_ATMEL
327
	tristate "Support for NAND Flash / SmartMedia on AT91 and AVR32"
328
	depends on ARCH_AT91 || AVR32
A
Andrew Victor 已提交
329 330
	help
	  Enables support for NAND Flash / Smart Media Card interface
331
	  on Atmel AT91 and AVR32 processors.
A
Andrew Victor 已提交
332

E
eric miao 已提交
333
config MTD_NAND_PXA3xx
334
	tristate "NAND support on PXA3xx and Armada 370/XP"
335
	depends on PXA3xx || ARCH_MMP || PLAT_ORION
E
eric miao 已提交
336 337
	help
	  This enables the driver for the NAND flash device found on
338
	  PXA3xx processors (NFCv1) and also on Armada 370/XP (NFCv2).
E
eric miao 已提交
339

R
Roland Stigge 已提交
340 341 342 343 344 345 346 347 348 349 350
config MTD_NAND_SLC_LPC32XX
	tristate "NXP LPC32xx SLC Controller"
	depends on ARCH_LPC32XX
	help
	  Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
	  chips) NAND controller. This is the default for the PHYTEC 3250
	  reference board which contains a NAND256R3A2CZA6 chip.

	  Please check the actual NAND chip connected and its support
	  by the SLC NAND controller.

R
Roland Stigge 已提交
351 352 353 354 355 356 357 358 359 360 361
config MTD_NAND_MLC_LPC32XX
	tristate "NXP LPC32xx MLC Controller"
	depends on ARCH_LPC32XX
	help
	  Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
	  controller. This is the default for the WORK92105 controller
	  board.

	  Please check the actual NAND chip connected and its support
	  by the MLC NAND controller.

M
Mike Rapoport 已提交
362 363
config MTD_NAND_CM_X270
	tristate "Support for NAND Flash on CM-X270 modules"
364
	depends on MACH_ARMCORE
M
Mike Rapoport 已提交
365

E
Egor Martovetsky 已提交
366 367
config MTD_NAND_PASEMI
	tristate "NAND support for PA Semi PWRficient"
368
	depends on PPC_PASEMI
E
Egor Martovetsky 已提交
369 370 371
	help
	  Enables support for NAND Flash interface on PA Semi PWRficient
	  based boards
M
Mike Rapoport 已提交
372

373 374
config MTD_NAND_TMIO
	tristate "NAND Flash device on Toshiba Mobile IO Controller"
375
	depends on MFD_TMIO
376 377 378 379
	help
	  Support for NAND flash connected to a Toshiba Mobile IO
	  Controller in some PDAs, including the Sharp SL6000x.

380 381
config MTD_NAND_NANDSIM
	tristate "Support for NAND Flash Simulator"
L
Linus Torvalds 已提交
382
	help
383
	  The simulator may simulate various NAND flash chips for the
L
Linus Torvalds 已提交
384
	  MTD nand layer.
385

386
config MTD_NAND_GPMI_NAND
387
        tristate "GPMI NAND Flash Controller driver"
388
        depends on MTD_NAND && MXS_DMA
389
        help
390
	 Enables NAND Flash support for IMX23, IMX28 or IMX6.
391 392 393 394 395 396
	 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.

397
config MTD_NAND_BCM47XXNFLASH
398
	tristate "Support for NAND flash on BCM4706 BCMA bus"
399 400 401 402
	depends on BCMA_NFLASH
	help
	  BCMA bus can have various flash memories attached, they are
	  registered by bcma as platform devices. This enables driver for
403
	  NAND flash memories. For now only BCM4706 is supported.
404

405 406
config MTD_NAND_PLATFORM
	tristate "Support for generic platform NAND driver"
R
Richard Weinberger 已提交
407
	depends on HAS_IOMEM
408 409 410 411 412
	help
	  This implements a generic NAND driver for on-SOC platform
	  devices. You will need to provide platform-specific functions
	  via platform_data.

413 414
config MTD_NAND_ORION
	tristate "NAND Flash support for Marvell Orion SoC"
415
	depends on PLAT_ORION
416 417 418 419 420 421
	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.

422 423
config MTD_NAND_FSL_ELBC
	tristate "NAND support for Freescale eLBC controllers"
424
	depends on PPC
425
	select FSL_LBC
426 427 428 429 430 431
	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.

432 433 434 435
config MTD_NAND_FSL_IFC
	tristate "NAND support for Freescale IFC controller"
	depends on MTD_NAND && FSL_SOC
	select FSL_IFC
436
	select MEMORY
437 438 439 440 441 442
	help
	  Various Freescale chips e.g P1010, include a NAND Flash machine
	  with built-in hardware ECC capabilities.
	  Enabling this option will enable you to use this to control
	  external NAND devices.

443 444
config MTD_NAND_FSL_UPM
	tristate "Support for NAND on Freescale UPM"
445
	depends on PPC_83xx || PPC_85xx
446 447 448 449 450
	select FSL_LBC
	help
	  Enables support for NAND Flash chips wired onto Freescale PowerPC
	  processor localbus with User-Programmable Machine support.

451 452 453 454 455 456 457
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.

458 459
config MTD_NAND_MXC
	tristate "MXC NAND support"
460
	depends on ARCH_MXC
461 462 463 464
	help
	  This enables the driver for the NAND flash controller on the
	  MXC processors.

465 466
config MTD_NAND_SH_FLCTL
	tristate "Support for NAND on Renesas SuperH FLCTL"
467
	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
468 469
	depends on HAS_IOMEM
	depends on HAS_DMA
470 471
	help
	  Several Renesas SuperH CPU has FLCTL. This option enables support
M
Magnus Damm 已提交
472
	  for NAND Flash using FLCTL.
473

474
config MTD_NAND_DAVINCI
475 476
        tristate "Support NAND on DaVinci/Keystone SoC"
        depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF)
477 478
        help
	  Enable the driver for NAND flash chips on Texas Instruments
479
	  DaVinci/Keystone processors.
480

481 482 483 484 485 486
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.

487 488
config MTD_NAND_SOCRATES
	tristate "Support for NAND on Socrates board"
489
	depends on SOCRATES
490 491 492
	help
	  Enables support for NAND Flash chips wired onto Socrates board.

493 494
config MTD_NAND_NUC900
	tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
J
Jamie Iles 已提交
495
	depends on ARCH_W90X900
496 497
	help
	  This enables the driver for the NAND Flash on evaluation board based
498
	  on w90p910 / NUC9xx.
499

500 501 502 503 504 505
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 已提交
506 507
config MTD_NAND_FSMC
	tristate "Support for NAND on ST Micros FSMC"
508
	depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300
L
Linus Walleij 已提交
509 510 511 512
	help
	  Enables support for NAND Flash chips on the ST Microelectronics
	  Flexible Static Memory Controller (FSMC)

513 514 515 516 517 518 519 520
config MTD_NAND_XWAY
	tristate "Support for NAND on Lantiq XWAY SoC"
	depends on LANTIQ && SOC_TYPE_XWAY
	select MTD_NAND_PLATFORM
	help
	  Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
	  to the External Bus Unit (EBU).

521 522 523 524 525 526
config MTD_NAND_SUNXI
	tristate "Support for NAND on Allwinner SoCs"
	depends on ARCH_SUNXI
	help
	  Enables support for NAND Flash chips on Allwinner SoCs.

527 528
config MTD_NAND_HISI504
	tristate "Support for NAND controller on Hisilicon SoC Hip04"
529
	depends on HAS_DMA
530 531 532
	help
	  Enables support for NAND controller on Hisilicon SoC Hip04.

J
Jan Engelhardt 已提交
533
endif # MTD_NAND