blob: bfa587d65aa2addce834b6f334b23fab95999e13 [file] [log] [blame]
Dima Zavina658ac82008-12-04 12:19:57 -08001config MTD_NAND_IDS
2 tristate "Include chip ids for known NAND devices."
3 depends on MTD
4 help
5 Useful for NAND drivers that do not use the NAND subsystem but
6 still like to take advantage of the known chip information.
7
Maxim Levitskye5f710c2010-03-19 17:22:54 +02008config MTD_NAND_ECC
9 tristate
10
11config MTD_NAND_ECC_SMC
12 bool "NAND ECC Smart Media byte order"
13 depends on MTD_NAND_ECC
14 default n
15 help
16 Software ECC according to the Smart Media Specification.
17 The original Linux implementation had byte 0 and 1 swapped.
18
Maxim Levitsky5869d2c2010-06-02 18:22:48 +030019
20menuconfig MTD_NAND
21 tristate "NAND Device Support"
22 depends on MTD
23 select MTD_NAND_IDS
24 select MTD_NAND_ECC
25 help
26 This enables support for accessing all type of NAND flash
27 devices. For further information see
28 <http://www.linux-mtd.infradead.org/doc/nand.html>.
29
Jan Engelhardtec98c682007-04-19 16:21:41 -050030if MTD_NAND
31
Ivan Djelic193bd402011-03-11 11:05:33 +010032config MTD_NAND_BCH
33 tristate
34 select BCH
35 depends on MTD_NAND_ECC_BCH
36 default MTD_NAND
37
38config MTD_NAND_ECC_BCH
39 bool "Support software BCH ECC"
40 default n
41 help
42 This enables support for software BCH error correction. Binary BCH
43 codes are more powerful and cpu intensive than traditional Hamming
44 ECC codes. They are used with NAND devices requiring more than 1 bit
45 of error correction.
46
Maxim Levitsky9fc51a32010-02-22 20:39:39 +020047config MTD_SM_COMMON
Maxim Levitsky9fc51a32010-02-22 20:39:39 +020048 tristate
49 default n
50
Jason Robertsce082592010-05-13 15:57:33 +010051config MTD_NAND_DENALI
Andy Shevchenko04868a62015-08-06 16:04:21 +030052 tristate
Dinh Nguyen2a0a2882012-09-27 10:58:05 -060053
54config MTD_NAND_DENALI_PCI
Jason Robertsce082592010-05-13 15:57:33 +010055 tristate "Support Denali NAND controller on Intel Moorestown"
Andy Shevchenko04868a62015-08-06 16:04:21 +030056 select MTD_NAND_DENALI
57 depends on HAS_DMA && PCI
Jason Robertsce082592010-05-13 15:57:33 +010058 help
59 Enable the driver for NAND flash on Intel Moorestown, using the
60 Denali NAND controller core.
Dinh Nguyen30f9f2f2012-09-27 10:58:06 -060061
62config MTD_NAND_DENALI_DT
63 tristate "Support Denali NAND controller as a DT device"
Andy Shevchenko04868a62015-08-06 16:04:21 +030064 select MTD_NAND_DENALI
Masahiro Yamada0ed6ca32015-12-16 14:00:09 +090065 depends on HAS_DMA && HAVE_CLK && OF
Dinh Nguyen30f9f2f2012-09-27 10:58:06 -060066 help
67 Enable the driver for NAND flash on platforms using a Denali NAND
68 controller as a DT device.
69
Jason Robertsce082592010-05-13 15:57:33 +010070config MTD_NAND_DENALI_SCRATCH_REG_ADDR
71 hex "Denali NAND size scratch register address"
72 default "0xFF108018"
Dinh Nguyen2a0a2882012-09-27 10:58:05 -060073 depends on MTD_NAND_DENALI_PCI
Jason Robertsce082592010-05-13 15:57:33 +010074 help
75 Some platforms place the NAND chip size in a scratch register
76 because (some versions of) the driver aren't able to automatically
77 determine the size of certain chips. Set the address of the
78 scratch register here to enable this feature. On Intel Moorestown
79 boards, the scratch register is at 0xFF108018.
80
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020081config MTD_NAND_GPIO
Gerhard Sittigc9d79c42014-08-05 10:37:26 +020082 tristate "GPIO assisted NAND Flash driver"
Geert Uytterhoevenf650ce22015-05-05 18:32:29 +020083 depends on GPIOLIB || COMPILE_TEST
Richard Weinberger15c0be72016-01-25 23:24:10 +010084 depends on HAS_IOMEM
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020085 help
Gerhard Sittigc9d79c42014-08-05 10:37:26 +020086 This enables a NAND flash driver where control signals are
87 connected to GPIO pins, and commands and data are communicated
88 via a memory mapped interface.
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020089
Jonathan McDowell3d12c0c2006-05-21 18:11:55 +010090config MTD_NAND_AMS_DELTA
91 tristate "NAND Flash device on Amstrad E3"
Jan Engelhardtec98c682007-04-19 16:21:41 -050092 depends on MACH_AMS_DELTA
Janusz Krzysztofik494f45d2010-12-15 12:58:15 +010093 default y
Jonathan McDowell3d12c0c2006-05-21 18:11:55 +010094 help
95 Support for NAND flash on Amstrad E3 (Delta).
96
Vimal Singh67ce04b2009-05-12 13:47:03 -070097config MTD_NAND_OMAP2
Roger Quadrose13f8802016-08-24 12:25:00 +030098 tristate "NAND Flash device on OMAP2, OMAP3, OMAP4 and Keystone"
99 depends on (ARCH_OMAP2PLUS || ARCH_KEYSTONE)
Vimal Singh67ce04b2009-05-12 13:47:03 -0700100 help
Roger Quadrose13f8802016-08-24 12:25:00 +0300101 Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
102 and Keystone platforms.
Vimal Singh67ce04b2009-05-12 13:47:03 -0700103
Ivan Djelic0e618ef2012-04-30 12:17:18 +0200104config MTD_NAND_OMAP_BCH
Ezequiel Garcia43b77692013-10-25 07:17:55 -0300105 depends on MTD_NAND_OMAP2
Ezequiel Garciae7cd6822014-10-01 14:33:29 +0300106 bool "Support hardware based BCH error correction"
Ivan Djelic0e618ef2012-04-30 12:17:18 +0200107 default n
108 select BCH
Ivan Djelic0e618ef2012-04-30 12:17:18 +0200109 help
Pekon Gupta90c9c952013-10-24 18:20:26 +0530110 This config enables the ELM hardware engine, which can be used to
111 locate and correct errors when using BCH ECC scheme. This offloads
112 the cpu from doing ECC error searching and correction. However some
113 legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
Roger Quadros8b3d58e2014-10-01 14:33:30 +0300114 so this is optional for them.
Ivan Djelic0e618ef2012-04-30 12:17:18 +0200115
Ezequiel Garciae7cd6822014-10-01 14:33:29 +0300116config MTD_NAND_OMAP_BCH_BUILD
117 def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
118
Maxim Levitsky67e054e2010-02-22 20:39:42 +0200119config MTD_NAND_RICOH
120 tristate "Ricoh xD card reader"
121 default n
Randy Dunlapf696aa42010-03-11 09:10:32 -0800122 depends on PCI
Maxim Levitsky67e054e2010-02-22 20:39:42 +0200123 select MTD_SM_COMMON
124 help
125 Enable support for Ricoh R5C852 xD card reader
126 You also need to enable ether
127 NAND SSFDC (SmartMedia) read only translation layer' or new
128 expermental, readwrite
129 'SmartMedia/xD new translation layer'
130
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131config MTD_NAND_AU1550
Pete Popovef6f0d12005-09-23 02:44:58 +0100132 tristate "Au1550/1200 NAND support"
Manuel Lauss3766386032011-08-12 11:39:45 +0200133 depends on MIPS_ALCHEMY
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 help
135 This enables the driver for the NAND flash controller on the
136 AMD/Alchemy 1550 SOC.
137
Bryan Wub37bde12007-10-02 13:56:05 -0700138config MTD_NAND_BF5XX
139 tristate "Blackfin on-chip NAND Flash Controller driver"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400140 depends on BF54x || BF52x
Bryan Wub37bde12007-10-02 13:56:05 -0700141 help
142 This enables the Blackfin on-chip NAND flash controller
143
144 No board specific support is done by this driver, each board
145 must advertise a platform_device for the driver to attach.
146
147 This driver can also be built as a module. If so, the module
148 will be called bf5xx-nand.
149
150config MTD_NAND_BF5XX_HWECC
151 bool "BF5XX NAND Hardware ECC"
Mike Frysingera0dd2012008-07-30 12:35:02 -0700152 default y
Bryan Wub37bde12007-10-02 13:56:05 -0700153 depends on MTD_NAND_BF5XX
154 help
155 Enable the use of the BF5XX's internal ECC generator when
156 using NAND.
157
Mike Frysingerfcb90ba2008-07-30 12:35:01 -0700158config MTD_NAND_BF5XX_BOOTROM_ECC
159 bool "Use Blackfin BootROM ECC Layout"
160 default n
161 depends on MTD_NAND_BF5XX_HWECC
162 help
163 If you wish to modify NAND pages and allow the Blackfin on-chip
164 BootROM to boot from them, say Y here. This is only necessary
165 if you are booting U-Boot out of NAND and you wish to update
166 U-Boot from Linux' userspace. Otherwise, you should say N here.
167
168 If unsure, say N.
169
Linus Torvalds1da177e2005-04-16 15:20:36 -0700170config MTD_NAND_S3C2410
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700171 tristate "NAND Flash support for Samsung S3C SoCs"
Kukjin Kimb130d5c2012-02-03 14:29:23 +0900172 depends on ARCH_S3C24XX || ARCH_S3C64XX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173 help
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700174 This enables the NAND flash controller on the S3C24xx and S3C64xx
Ben Dooksa4f957f2005-06-20 12:48:25 +0100175 SoCs
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176
Egry Gábor4992a9e2006-05-12 17:35:02 +0100177 No board specific support is done by this driver, each board
Thomas Gleixner61b03bd2005-11-07 11:15:49 +0000178 must advertise a platform_device for the driver to attach.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700179
180config MTD_NAND_S3C2410_DEBUG
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700181 bool "Samsung S3C NAND driver debug"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182 depends on MTD_NAND_S3C2410
183 help
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700184 Enable debugging of the S3C NAND driver
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185
186config MTD_NAND_S3C2410_HWECC
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700187 bool "Samsung S3C NAND Hardware ECC"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188 depends on MTD_NAND_S3C2410
189 help
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700190 Enable the use of the controller's internal ECC generator when
191 using NAND. Early versions of the chips have had problems with
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192 incorrect ECC generation, and if using these, the default of
193 software ECC is preferable.
194
Sean MacLennana808ad32008-12-10 13:16:34 +0000195config MTD_NAND_NDFC
196 tristate "NDFC NanD Flash Controller"
197 depends on 4xx
198 select MTD_NAND_ECC_SMC
199 help
200 NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
201
Ben Dooksd1fef3c2006-06-19 09:29:38 +0100202config MTD_NAND_S3C2410_CLKSTOP
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700203 bool "Samsung S3C NAND IDLE clock stop"
Ben Dooksd1fef3c2006-06-19 09:29:38 +0100204 depends on MTD_NAND_S3C2410
205 default n
206 help
207 Stop the clock to the NAND controller when there is no chip
208 selected to save power. This will mean there is a small delay
209 when the is NAND chip selected or released, but will save
210 approximately 5mA of power when there is nothing happening.
211
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212config MTD_NAND_DISKONCHIP
Kees Cook5d0e1372012-10-02 11:17:53 -0700213 tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
Richard Weinberger9310da02012-02-07 01:22:50 +0100214 depends on HAS_IOMEM
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215 select REED_SOLOMON
216 select REED_SOLOMON_DEC16
217 help
218 This is a reimplementation of M-Systems DiskOnChip 2000,
219 Millennium and Millennium Plus as a standard NAND device driver,
220 as opposed to the earlier self-contained MTD device drivers.
221 This should enable, among other things, proper JFFS2 operation on
222 these devices.
223
224config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
225 bool "Advanced detection options for DiskOnChip"
226 depends on MTD_NAND_DISKONCHIP
227 help
228 This option allows you to specify nonstandard address at which to
229 probe for a DiskOnChip, or to change the detection options. You
230 are unlikely to need any of this unless you are using LinuxBIOS.
231 Say 'N'.
232
233config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
234 hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
235 depends on MTD_NAND_DISKONCHIP
236 default "0"
237 ---help---
238 By default, the probe for DiskOnChip devices will look for a
239 DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
240 This option allows you to specify a single address at which to probe
241 for the device, which is useful if you have other devices in that
242 range which get upset when they are probed.
243
244 (Note that on PowerPC, the normal probe will only check at
245 0xE4000000.)
246
247 Normally, you should leave this set to zero, to allow the probe at
248 the normal addresses.
249
250config MTD_NAND_DISKONCHIP_PROBE_HIGH
251 bool "Probe high addresses"
252 depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
253 help
254 By default, the probe for DiskOnChip devices will look for a
255 DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
256 This option changes to make it probe between 0xFFFC8000 and
257 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
258 useful to you. Say 'N'.
259
260config MTD_NAND_DISKONCHIP_BBTWRITE
261 bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
262 depends on MTD_NAND_DISKONCHIP
263 help
264 On DiskOnChip devices shipped with the INFTL filesystem (Millennium
265 and 2000 TSOP/Alon), Linux reserves some space at the end of the
266 device for the Bad Block Table (BBT). If you have existing INFTL
267 data on your device (created by non-Linux tools such as M-Systems'
268 DOS drivers), your data might overlap the area Linux wants to use for
269 the BBT. If this is a concern for you, leave this option disabled and
270 Linux will not write BBT data into this area.
271 The downside of leaving this option disabled is that if bad blocks
272 are detected by Linux, they will not be recorded in the BBT, which
273 could cause future problems.
274 Once you enable this option, new filesystems (INFTL or others, created
275 in Linux or other operating systems) will not use the reserved area.
276 The only reason not to enable this option is to prevent damage to
277 preexisting filesystems.
278 Even if you leave this disabled, you can enable BBT writes at module
279 load time (assuming you build diskonchip as a module) with the module
280 parameter "inftl_bbt_write=1".
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281
Mike Dunn570469f2012-01-03 16:05:44 -0800282config MTD_NAND_DOCG4
Kees Cook5d0e1372012-10-02 11:17:53 -0700283 tristate "Support for DiskOnChip G4"
284 depends on HAS_IOMEM
Mike Dunn570469f2012-01-03 16:05:44 -0800285 select BCH
286 select BITREVERSE
287 help
288 Support for diskonchip G4 nand flash, found in various smartphones and
289 PDAs, among them the Palm Treo680, HTC Prophet and Wizard, Toshiba
290 Portege G900, Asus P526, and O2 XDA Zinc.
291
292 With this driver you will be able to use UBI and create a ubifs on the
293 device, so you may wish to consider enabling UBI and UBIFS as well.
294
295 These devices ship with the Mys/Sandisk SAFTL formatting, for which
296 there is currently no mtd parser, so you may want to use command line
297 partitioning to segregate write-protected blocks. On the Treo680, the
298 first five erase blocks (256KiB each) are write-protected, followed
299 by the block containing the saftl partition table. This is probably
300 typical.
301
Adrian Bunk54af6b42006-03-31 02:29:43 -0800302config MTD_NAND_SHARPSL
303 tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
Jan Engelhardtec98c682007-04-19 16:21:41 -0500304 depends on ARCH_PXA
Adrian Bunk54af6b42006-03-31 02:29:43 -0800305
David Woodhousec45aa052006-10-22 02:17:05 +0100306config MTD_NAND_CAFE
Segher Boessenkool8c61b7a2007-05-02 12:18:49 +0200307 tristate "NAND support for OLPC CAFÉ chip"
308 depends on PCI
309 select REED_SOLOMON
310 select REED_SOLOMON_DEC16
311 help
Adrian Bunk8f46c522007-06-22 01:52:08 +0200312 Use NAND flash attached to the CAFÉ chip designed for the OLPC
Segher Boessenkool8c61b7a2007-05-02 12:18:49 +0200313 laptop.
David Woodhousec45aa052006-10-22 02:17:05 +0100314
David Woodhouse179fdc32006-05-11 22:35:28 +0100315config MTD_NAND_CS553X
316 tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
Yinghai Lu4272ebf2009-01-29 15:14:46 -0800317 depends on X86_32
Richard Weinberger02c3b0b2016-01-25 23:24:20 +0100318 depends on !UML && HAS_IOMEM
David Woodhousef41a5f82006-05-16 13:11:47 +0100319 help
320 The CS553x companion chips for the AMD Geode processor
321 include NAND flash controllers with built-in hardware ECC
322 capabilities; enabling this option will allow you to use
323 these. The driver will check the MSRs to verify that the
324 controller is enabled for NAND, and currently requires that
325 the controller be in MMIO mode.
326
Pavel Machek4737f092009-06-05 00:44:53 +0200327 If you say "m", the module will be called cs553x_nand.
David Woodhousef41a5f82006-05-16 13:11:47 +0100328
HÃ¥vard Skinnemoend4f4c0a2008-06-06 18:04:52 +0200329config MTD_NAND_ATMEL
David Brownellbd5a4382008-07-03 23:40:19 -0700330 tristate "Support for NAND Flash / SmartMedia on AT91 and AVR32"
HÃ¥vard Skinnemoen984290d2008-06-06 18:04:57 +0200331 depends on ARCH_AT91 || AVR32
Andrew Victor42cb1402006-10-19 18:24:35 +0200332 help
333 Enables support for NAND Flash / Smart Media Card interface
HÃ¥vard Skinnemoen984290d2008-06-06 18:04:57 +0200334 on Atmel AT91 and AVR32 processors.
Andrew Victor42cb1402006-10-19 18:24:35 +0200335
eric miaofe69af02008-02-14 15:48:23 +0800336config MTD_NAND_PXA3xx
Ezequiel Garciac5f99672013-11-07 12:17:11 -0300337 tristate "NAND support on PXA3xx and Armada 370/XP"
Ezequiel Garcia0d58f6e2013-08-12 14:14:59 -0300338 depends on PXA3xx || ARCH_MMP || PLAT_ORION
eric miaofe69af02008-02-14 15:48:23 +0800339 help
340 This enables the driver for the NAND flash device found on
Ezequiel Garciac5f99672013-11-07 12:17:11 -0300341 PXA3xx processors (NFCv1) and also on Armada 370/XP (NFCv2).
eric miaofe69af02008-02-14 15:48:23 +0800342
Roland Stigge2944a442012-06-07 12:22:15 +0200343config MTD_NAND_SLC_LPC32XX
344 tristate "NXP LPC32xx SLC Controller"
345 depends on ARCH_LPC32XX
346 help
347 Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
348 chips) NAND controller. This is the default for the PHYTEC 3250
349 reference board which contains a NAND256R3A2CZA6 chip.
350
351 Please check the actual NAND chip connected and its support
352 by the SLC NAND controller.
353
Roland Stigge70f7cb72012-06-30 18:50:38 +0200354config MTD_NAND_MLC_LPC32XX
355 tristate "NXP LPC32xx MLC Controller"
356 depends on ARCH_LPC32XX
357 help
358 Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
359 controller. This is the default for the WORK92105 controller
360 board.
361
362 Please check the actual NAND chip connected and its support
363 by the MLC NAND controller.
364
Mike Rapoport54d33c42007-04-22 08:53:21 +0300365config MTD_NAND_CM_X270
366 tristate "Support for NAND Flash on CM-X270 modules"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400367 depends on MACH_ARMCORE
Mike Rapoport54d33c42007-04-22 08:53:21 +0300368
Egor Martovetsky846fc312007-11-28 18:37:31 -0600369config MTD_NAND_PASEMI
370 tristate "NAND support for PA Semi PWRficient"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400371 depends on PPC_PASEMI
Egor Martovetsky846fc312007-11-28 18:37:31 -0600372 help
373 Enables support for NAND Flash interface on PA Semi PWRficient
374 based boards
Mike Rapoport54d33c42007-04-22 08:53:21 +0300375
Ian Moltonec43b812008-07-15 16:04:22 +0100376config MTD_NAND_TMIO
377 tristate "NAND Flash device on Toshiba Mobile IO Controller"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400378 depends on MFD_TMIO
Ian Moltonec43b812008-07-15 16:04:22 +0100379 help
380 Support for NAND flash connected to a Toshiba Mobile IO
381 Controller in some PDAs, including the Sharp SL6000x.
382
Adrian Bunk54af6b42006-03-31 02:29:43 -0800383config MTD_NAND_NANDSIM
384 tristate "Support for NAND Flash Simulator"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385 help
David Woodhousef41a5f82006-05-16 13:11:47 +0100386 The simulator may simulate various NAND flash chips for the
Linus Torvalds1da177e2005-04-16 15:20:36 -0700387 MTD nand layer.
Adrian Bunk54af6b42006-03-31 02:29:43 -0800388
Huang Shijie157550ff2011-09-08 10:47:11 +0800389config MTD_NAND_GPMI_NAND
Fabio Estevame1f5b3f2012-07-28 19:29:24 -0300390 tristate "GPMI NAND Flash Controller driver"
Arnd Bergmanna3349372012-08-04 10:48:12 +0000391 depends on MTD_NAND && MXS_DMA
Huang Shijie157550ff2011-09-08 10:47:11 +0800392 help
Fabio Estevam27c84fa2012-07-25 08:18:18 -0300393 Enables NAND Flash support for IMX23, IMX28 or IMX6.
Huang Shijie157550ff2011-09-08 10:47:11 +0800394 The GPMI controller is very powerful, with the help of BCH
395 module, it can do the hardware ECC. The GPMI supports several
396 NAND flashs at the same time. The GPMI may conflicts with other
397 block, such as SD card. So pay attention to it when you enable
398 the GPMI.
399
Brian Norris27c5b172015-03-06 11:38:08 -0800400config MTD_NAND_BRCMNAND
401 tristate "Broadcom STB NAND controller"
Anup Patelebdee132015-10-02 23:26:43 +0530402 depends on ARM || ARM64 || MIPS
Brian Norris27c5b172015-03-06 11:38:08 -0800403 help
404 Enables the Broadcom NAND controller driver. The controller was
405 originally designed for Set-Top Box but is used on various BCM7xxx,
406 BCM3xxx, BCM63xxx, iProc/Cygnus and more.
407
Rafał Miłeckia54013702012-11-12 13:03:21 +0100408config MTD_NAND_BCM47XXNFLASH
Rafał Miłeckiecfe57b2012-12-03 10:22:35 +0100409 tristate "Support for NAND flash on BCM4706 BCMA bus"
Rafał Miłeckia54013702012-11-12 13:03:21 +0100410 depends on BCMA_NFLASH
411 help
412 BCMA bus can have various flash memories attached, they are
413 registered by bcma as platform devices. This enables driver for
Rafał Miłeckiecfe57b2012-12-03 10:22:35 +0100414 NAND flash memories. For now only BCM4706 is supported.
Rafał Miłeckia54013702012-11-12 13:03:21 +0100415
Vitaly Wool711fdf62007-05-06 19:31:18 +0400416config MTD_NAND_PLATFORM
417 tristate "Support for generic platform NAND driver"
Richard Weinberger9310da02012-02-07 01:22:50 +0100418 depends on HAS_IOMEM
Vitaly Wool711fdf62007-05-06 19:31:18 +0400419 help
420 This implements a generic NAND driver for on-SOC platform
421 devices. You will need to provide platform-specific functions
422 via platform_data.
423
Tzachi Perelstein2a1dba22007-10-17 01:10:40 +0200424config MTD_NAND_ORION
425 tristate "NAND Flash support for Marvell Orion SoC"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400426 depends on PLAT_ORION
Tzachi Perelstein2a1dba22007-10-17 01:10:40 +0200427 help
428 This enables the NAND flash controller on Orion machines.
429
430 No board specific support is done by this driver, each board
431 must advertise a platform_device for the driver to attach.
432
Scott Wood76b10462008-02-06 15:36:21 -0600433config MTD_NAND_FSL_ELBC
434 tristate "NAND support for Freescale eLBC controllers"
Andrey Smirnov107896c2016-07-21 14:59:18 -0700435 depends on FSL_SOC
Roy Zang3ab8f2a2010-10-18 15:22:31 +0800436 select FSL_LBC
Scott Wood76b10462008-02-06 15:36:21 -0600437 help
438 Various Freescale chips, including the 8313, include a NAND Flash
439 Controller Module with built-in hardware ECC capabilities.
440 Enabling this option will enable you to use this to control
441 external NAND devices.
442
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530443config MTD_NAND_FSL_IFC
444 tristate "NAND support for Freescale IFC controller"
Andrey Smirnov75c19e52016-07-21 14:59:19 -0700445 depends on FSL_SOC || ARCH_LAYERSCAPE
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530446 select FSL_IFC
Paul Gortmaker42d87b12014-02-19 17:46:40 -0500447 select MEMORY
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530448 help
449 Various Freescale chips e.g P1010, include a NAND Flash machine
450 with built-in hardware ECC capabilities.
451 Enabling this option will enable you to use this to control
452 external NAND devices.
453
Anton Vorontsov5c249c52008-03-11 22:33:13 +0300454config MTD_NAND_FSL_UPM
455 tristate "Support for NAND on Freescale UPM"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400456 depends on PPC_83xx || PPC_85xx
Anton Vorontsov5c249c52008-03-11 22:33:13 +0300457 select FSL_LBC
458 help
459 Enables support for NAND Flash chips wired onto Freescale PowerPC
460 processor localbus with User-Programmable Machine support.
461
Anatolij Gustschinbb315f72010-02-15 18:35:05 +0100462config MTD_NAND_MPC5121_NFC
463 tristate "MPC5121 built-in NAND Flash Controller support"
464 depends on PPC_MPC512x
465 help
466 This enables the driver for the NAND flash controller on the
467 MPC5121 SoC.
468
Stefan Agner456930d2015-09-02 18:06:33 -0700469config MTD_NAND_VF610_NFC
470 tristate "Support for Freescale NFC for VF610/MPC5125"
471 depends on (SOC_VF610 || COMPILE_TEST)
Richard Weinberger15c0be72016-01-25 23:24:10 +0100472 depends on HAS_IOMEM
Stefan Agner456930d2015-09-02 18:06:33 -0700473 help
474 Enables support for NAND Flash Controller on some Freescale
475 processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
Stefan Agner049f4252015-09-02 18:06:34 -0700476 The driver supports a maximum 2k page size. With 2k pages and
477 64 bytes or more of OOB, hardware ECC with up to 32-bit error
478 correction is supported. Hardware ECC is only enabled through
479 device tree.
Stefan Agner456930d2015-09-02 18:06:33 -0700480
Sascha Hauer34f6e152008-09-02 17:16:59 +0200481config MTD_NAND_MXC
482 tristate "MXC NAND support"
Fabio Estevam4d363b52012-07-02 19:00:19 -0300483 depends on ARCH_MXC
Sascha Hauer34f6e152008-09-02 17:16:59 +0200484 help
485 This enables the driver for the NAND flash controller on the
486 MXC processors.
487
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900488config MTD_NAND_SH_FLCTL
489 tristate "Support for NAND on Renesas SuperH FLCTL"
Geert Uytterhoevend5c56202015-12-08 18:40:59 +0100490 depends on SUPERH || COMPILE_TEST
Richard Weinberger3d44dc22014-01-31 13:39:07 +0100491 depends on HAS_IOMEM
492 depends on HAS_DMA
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900493 help
494 Several Renesas SuperH CPU has FLCTL. This option enables support
Magnus Dammb79c7ad2010-02-02 13:01:25 +0900495 for NAND Flash using FLCTL.
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900496
David Brownellff4569c2009-03-04 12:01:37 -0800497config MTD_NAND_DAVINCI
Ivan Khoronzhuk458f3932013-12-17 15:38:12 +0200498 tristate "Support NAND on DaVinci/Keystone SoC"
499 depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF)
David Brownellff4569c2009-03-04 12:01:37 -0800500 help
501 Enable the driver for NAND flash chips on Texas Instruments
Ivan Khoronzhuk458f3932013-12-17 15:38:12 +0200502 DaVinci/Keystone processors.
David Brownellff4569c2009-03-04 12:01:37 -0800503
Atsushi Nemoto64fb65b2009-03-04 12:01:34 -0800504config MTD_NAND_TXX9NDFMC
505 tristate "NAND Flash support for TXx9 SoC"
506 depends on SOC_TX4938 || SOC_TX4939
507 help
508 This enables the NAND flash controller on the TXx9 SoCs.
509
Wolfgang Grandegger1b578192009-03-25 11:48:38 +0100510config MTD_NAND_SOCRATES
511 tristate "Support for NAND on Socrates board"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400512 depends on SOCRATES
Wolfgang Grandegger1b578192009-03-25 11:48:38 +0100513 help
514 Enables support for NAND Flash chips wired onto Socrates board.
515
David Woodhousebb6a77552010-01-01 12:16:47 +0000516config MTD_NAND_NUC900
517 tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
Jamie Iles6a8a98b2011-05-23 10:23:43 +0100518 depends on ARCH_W90X900
Wan ZongShun8bff82c2009-07-10 15:17:27 +0800519 help
520 This enables the driver for the NAND Flash on evaluation board based
David Woodhousebb6a77552010-01-01 12:16:47 +0000521 on w90p910 / NUC9xx.
Wan ZongShun8bff82c2009-07-10 15:17:27 +0800522
Lars-Peter Clausenba01d6e2010-07-17 11:15:29 +0000523config MTD_NAND_JZ4740
524 tristate "Support for JZ4740 SoC NAND controller"
525 depends on MACH_JZ4740
526 help
527 Enables support for NAND Flash on JZ4740 SoC based boards.
528
Alex Smithae02ab02016-01-04 12:34:43 +0000529config MTD_NAND_JZ4780
530 tristate "Support for NAND on JZ4780 SoC"
531 depends on MACH_JZ4780 && JZ4780_NEMC
532 help
533 Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
534 based boards, using the BCH controller for hardware error correction.
535
Linus Walleij6c009ab2010-09-13 00:35:22 +0200536config MTD_NAND_FSMC
537 tristate "Support for NAND on ST Micros FSMC"
Linus Walleij694e33a2012-10-18 14:01:25 +0200538 depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300
Linus Walleij6c009ab2010-09-13 00:35:22 +0200539 help
540 Enables support for NAND Flash chips on the ST Microelectronics
541 Flexible Static Memory Controller (FSMC)
542
John Crispin99f2b102012-08-23 20:28:32 +0200543config MTD_NAND_XWAY
544 tristate "Support for NAND on Lantiq XWAY SoC"
545 depends on LANTIQ && SOC_TYPE_XWAY
John Crispin99f2b102012-08-23 20:28:32 +0200546 help
547 Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
548 to the External Bus Unit (EBU).
549
Boris BREZILLON1fef62c2014-10-21 15:08:41 +0200550config MTD_NAND_SUNXI
551 tristate "Support for NAND on Allwinner SoCs"
552 depends on ARCH_SUNXI
553 help
554 Enables support for NAND Flash chips on Allwinner SoCs.
555
Zhou Wang54f531f2015-01-25 18:53:13 +0800556config MTD_NAND_HISI504
557 tristate "Support for NAND controller on Hisilicon SoC Hip04"
Geert Uytterhoeven5e0899d2015-03-01 10:35:52 +0100558 depends on HAS_DMA
Zhou Wang54f531f2015-01-25 18:53:13 +0800559 help
560 Enables support for NAND controller on Hisilicon SoC Hip04.
561
Archit Tanejac76b78d2016-02-03 14:29:50 +0530562config MTD_NAND_QCOM
563 tristate "Support for NAND on QCOM SoCs"
564 depends on ARCH_QCOM
565 help
566 Enables support for NAND flash chips on SoCs containing the EBI2 NAND
567 controller. This controller is found on IPQ806x SoC.
568
Jorge Ramirez-Ortiz1d6b1e42016-06-14 11:50:51 -0400569config MTD_NAND_MTK
570 tristate "Support for NAND controller on MTK SoCs"
571 depends on HAS_DMA
572 help
573 Enables support for NAND controller on MTK SoCs.
574 This controller is found on mt27xx, mt81xx, mt65xx SoCs.
575
Jan Engelhardtec98c682007-04-19 16:21:41 -0500576endif # MTD_NAND