blob: dbfa72d61d5aa7b955e6d0728b127f69e79b3012 [file] [log] [blame]
Maxim Levitskye5f710c2010-03-19 17:22:54 +02001config MTD_NAND_ECC
2 tristate
3
4config MTD_NAND_ECC_SMC
5 bool "NAND ECC Smart Media byte order"
6 depends on MTD_NAND_ECC
7 default n
8 help
9 Software ECC according to the Smart Media Specification.
10 The original Linux implementation had byte 0 and 1 swapped.
11
Maxim Levitsky5869d2c2010-06-02 18:22:48 +030012
13menuconfig MTD_NAND
14 tristate "NAND Device Support"
15 depends on MTD
Maxim Levitsky5869d2c2010-06-02 18:22:48 +030016 select MTD_NAND_ECC
17 help
18 This enables support for accessing all type of NAND flash
19 devices. For further information see
20 <http://www.linux-mtd.infradead.org/doc/nand.html>.
21
Jan Engelhardtec98c682007-04-19 16:21:41 -050022if MTD_NAND
23
Ivan Djelic193bd402011-03-11 11:05:33 +010024config MTD_NAND_BCH
25 tristate
26 select BCH
27 depends on MTD_NAND_ECC_BCH
28 default MTD_NAND
29
30config MTD_NAND_ECC_BCH
31 bool "Support software BCH ECC"
32 default n
33 help
34 This enables support for software BCH error correction. Binary BCH
35 codes are more powerful and cpu intensive than traditional Hamming
36 ECC codes. They are used with NAND devices requiring more than 1 bit
37 of error correction.
38
Maxim Levitsky9fc51a32010-02-22 20:39:39 +020039config MTD_SM_COMMON
Maxim Levitsky9fc51a32010-02-22 20:39:39 +020040 tristate
41 default n
42
Jason Robertsce082592010-05-13 15:57:33 +010043config MTD_NAND_DENALI
Andy Shevchenko04868a62015-08-06 16:04:21 +030044 tristate
Dinh Nguyen2a0a2882012-09-27 10:58:05 -060045
46config MTD_NAND_DENALI_PCI
Jason Robertsce082592010-05-13 15:57:33 +010047 tristate "Support Denali NAND controller on Intel Moorestown"
Andy Shevchenko04868a62015-08-06 16:04:21 +030048 select MTD_NAND_DENALI
49 depends on HAS_DMA && PCI
Jason Robertsce082592010-05-13 15:57:33 +010050 help
51 Enable the driver for NAND flash on Intel Moorestown, using the
52 Denali NAND controller core.
Dinh Nguyen30f9f2f2012-09-27 10:58:06 -060053
54config MTD_NAND_DENALI_DT
55 tristate "Support Denali NAND controller as a DT device"
Andy Shevchenko04868a62015-08-06 16:04:21 +030056 select MTD_NAND_DENALI
Masahiro Yamada0ed6ca32015-12-16 14:00:09 +090057 depends on HAS_DMA && HAVE_CLK && OF
Dinh Nguyen30f9f2f2012-09-27 10:58:06 -060058 help
59 Enable the driver for NAND flash on platforms using a Denali NAND
60 controller as a DT device.
61
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020062config MTD_NAND_GPIO
Gerhard Sittigc9d79c42014-08-05 10:37:26 +020063 tristate "GPIO assisted NAND Flash driver"
Geert Uytterhoevenf650ce22015-05-05 18:32:29 +020064 depends on GPIOLIB || COMPILE_TEST
Richard Weinberger15c0be72016-01-25 23:24:10 +010065 depends on HAS_IOMEM
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020066 help
Gerhard Sittigc9d79c42014-08-05 10:37:26 +020067 This enables a NAND flash driver where control signals are
68 connected to GPIO pins, and commands and data are communicated
69 via a memory mapped interface.
Mike Rapoportaaf7ea22008-10-15 08:38:49 +020070
Jonathan McDowell3d12c0c2006-05-21 18:11:55 +010071config MTD_NAND_AMS_DELTA
72 tristate "NAND Flash device on Amstrad E3"
Jan Engelhardtec98c682007-04-19 16:21:41 -050073 depends on MACH_AMS_DELTA
Janusz Krzysztofik494f45d2010-12-15 12:58:15 +010074 default y
Jonathan McDowell3d12c0c2006-05-21 18:11:55 +010075 help
76 Support for NAND flash on Amstrad E3 (Delta).
77
Vimal Singh67ce04b2009-05-12 13:47:03 -070078config MTD_NAND_OMAP2
Roger Quadrose13f8802016-08-24 12:25:00 +030079 tristate "NAND Flash device on OMAP2, OMAP3, OMAP4 and Keystone"
80 depends on (ARCH_OMAP2PLUS || ARCH_KEYSTONE)
Vimal Singh67ce04b2009-05-12 13:47:03 -070081 help
Roger Quadrose13f8802016-08-24 12:25:00 +030082 Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
83 and Keystone platforms.
Vimal Singh67ce04b2009-05-12 13:47:03 -070084
Ivan Djelic0e618ef2012-04-30 12:17:18 +020085config MTD_NAND_OMAP_BCH
Ezequiel Garcia43b77692013-10-25 07:17:55 -030086 depends on MTD_NAND_OMAP2
Ezequiel Garciae7cd6822014-10-01 14:33:29 +030087 bool "Support hardware based BCH error correction"
Ivan Djelic0e618ef2012-04-30 12:17:18 +020088 default n
89 select BCH
Ivan Djelic0e618ef2012-04-30 12:17:18 +020090 help
Pekon Gupta90c9c952013-10-24 18:20:26 +053091 This config enables the ELM hardware engine, which can be used to
92 locate and correct errors when using BCH ECC scheme. This offloads
93 the cpu from doing ECC error searching and correction. However some
94 legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
Roger Quadros8b3d58e2014-10-01 14:33:30 +030095 so this is optional for them.
Ivan Djelic0e618ef2012-04-30 12:17:18 +020096
Ezequiel Garciae7cd6822014-10-01 14:33:29 +030097config MTD_NAND_OMAP_BCH_BUILD
98 def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
99
Maxim Levitsky67e054e2010-02-22 20:39:42 +0200100config MTD_NAND_RICOH
101 tristate "Ricoh xD card reader"
102 default n
Randy Dunlapf696aa42010-03-11 09:10:32 -0800103 depends on PCI
Maxim Levitsky67e054e2010-02-22 20:39:42 +0200104 select MTD_SM_COMMON
105 help
106 Enable support for Ricoh R5C852 xD card reader
107 You also need to enable ether
108 NAND SSFDC (SmartMedia) read only translation layer' or new
109 expermental, readwrite
110 'SmartMedia/xD new translation layer'
111
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112config MTD_NAND_AU1550
Pete Popovef6f0d12005-09-23 02:44:58 +0100113 tristate "Au1550/1200 NAND support"
Manuel Lauss3766386032011-08-12 11:39:45 +0200114 depends on MIPS_ALCHEMY
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115 help
116 This enables the driver for the NAND flash controller on the
117 AMD/Alchemy 1550 SOC.
118
Bryan Wub37bde12007-10-02 13:56:05 -0700119config MTD_NAND_BF5XX
120 tristate "Blackfin on-chip NAND Flash Controller driver"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400121 depends on BF54x || BF52x
Bryan Wub37bde12007-10-02 13:56:05 -0700122 help
123 This enables the Blackfin on-chip NAND flash controller
124
125 No board specific support is done by this driver, each board
126 must advertise a platform_device for the driver to attach.
127
128 This driver can also be built as a module. If so, the module
129 will be called bf5xx-nand.
130
131config MTD_NAND_BF5XX_HWECC
132 bool "BF5XX NAND Hardware ECC"
Mike Frysingera0dd2012008-07-30 12:35:02 -0700133 default y
Bryan Wub37bde12007-10-02 13:56:05 -0700134 depends on MTD_NAND_BF5XX
135 help
136 Enable the use of the BF5XX's internal ECC generator when
137 using NAND.
138
Mike Frysingerfcb90ba2008-07-30 12:35:01 -0700139config MTD_NAND_BF5XX_BOOTROM_ECC
140 bool "Use Blackfin BootROM ECC Layout"
141 default n
142 depends on MTD_NAND_BF5XX_HWECC
143 help
144 If you wish to modify NAND pages and allow the Blackfin on-chip
145 BootROM to boot from them, say Y here. This is only necessary
146 if you are booting U-Boot out of NAND and you wish to update
147 U-Boot from Linux' userspace. Otherwise, you should say N here.
148
149 If unsure, say N.
150
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151config MTD_NAND_S3C2410
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700152 tristate "NAND Flash support for Samsung S3C SoCs"
Kukjin Kimb130d5c2012-02-03 14:29:23 +0900153 depends on ARCH_S3C24XX || ARCH_S3C64XX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154 help
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700155 This enables the NAND flash controller on the S3C24xx and S3C64xx
Ben Dooksa4f957f2005-06-20 12:48:25 +0100156 SoCs
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157
Egry Gábor4992a9e2006-05-12 17:35:02 +0100158 No board specific support is done by this driver, each board
Thomas Gleixner61b03bd2005-11-07 11:15:49 +0000159 must advertise a platform_device for the driver to attach.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160
161config MTD_NAND_S3C2410_DEBUG
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700162 bool "Samsung S3C NAND driver debug"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163 depends on MTD_NAND_S3C2410
164 help
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700165 Enable debugging of the S3C NAND driver
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166
Sean MacLennana808ad32008-12-10 13:16:34 +0000167config MTD_NAND_NDFC
168 tristate "NDFC NanD Flash Controller"
169 depends on 4xx
170 select MTD_NAND_ECC_SMC
171 help
172 NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
173
Ben Dooksd1fef3c2006-06-19 09:29:38 +0100174config MTD_NAND_S3C2410_CLKSTOP
Peter Korsgaard9dbc0902009-06-07 06:04:23 -0700175 bool "Samsung S3C NAND IDLE clock stop"
Ben Dooksd1fef3c2006-06-19 09:29:38 +0100176 depends on MTD_NAND_S3C2410
177 default n
178 help
179 Stop the clock to the NAND controller when there is no chip
180 selected to save power. This will mean there is a small delay
181 when the is NAND chip selected or released, but will save
182 approximately 5mA of power when there is nothing happening.
183
Marc Gonzalez6956e232016-10-25 18:10:47 +0200184config MTD_NAND_TANGO
185 tristate "NAND Flash support for Tango chips"
186 depends on ARCH_TANGO || COMPILE_TEST
187 depends on HAS_DMA
188 help
189 Enables the NAND Flash controller on Tango chips.
190
Linus Torvalds1da177e2005-04-16 15:20:36 -0700191config MTD_NAND_DISKONCHIP
Kees Cook5d0e1372012-10-02 11:17:53 -0700192 tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
Richard Weinberger9310da02012-02-07 01:22:50 +0100193 depends on HAS_IOMEM
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194 select REED_SOLOMON
195 select REED_SOLOMON_DEC16
196 help
197 This is a reimplementation of M-Systems DiskOnChip 2000,
198 Millennium and Millennium Plus as a standard NAND device driver,
199 as opposed to the earlier self-contained MTD device drivers.
200 This should enable, among other things, proper JFFS2 operation on
201 these devices.
202
203config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
204 bool "Advanced detection options for DiskOnChip"
205 depends on MTD_NAND_DISKONCHIP
206 help
207 This option allows you to specify nonstandard address at which to
208 probe for a DiskOnChip, or to change the detection options. You
209 are unlikely to need any of this unless you are using LinuxBIOS.
210 Say 'N'.
211
212config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
213 hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
214 depends on MTD_NAND_DISKONCHIP
215 default "0"
216 ---help---
217 By default, the probe for DiskOnChip devices will look for a
218 DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
219 This option allows you to specify a single address at which to probe
220 for the device, which is useful if you have other devices in that
221 range which get upset when they are probed.
222
223 (Note that on PowerPC, the normal probe will only check at
224 0xE4000000.)
225
226 Normally, you should leave this set to zero, to allow the probe at
227 the normal addresses.
228
229config MTD_NAND_DISKONCHIP_PROBE_HIGH
230 bool "Probe high addresses"
231 depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
232 help
233 By default, the probe for DiskOnChip devices will look for a
234 DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
235 This option changes to make it probe between 0xFFFC8000 and
236 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
237 useful to you. Say 'N'.
238
239config MTD_NAND_DISKONCHIP_BBTWRITE
240 bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
241 depends on MTD_NAND_DISKONCHIP
242 help
243 On DiskOnChip devices shipped with the INFTL filesystem (Millennium
244 and 2000 TSOP/Alon), Linux reserves some space at the end of the
245 device for the Bad Block Table (BBT). If you have existing INFTL
246 data on your device (created by non-Linux tools such as M-Systems'
247 DOS drivers), your data might overlap the area Linux wants to use for
248 the BBT. If this is a concern for you, leave this option disabled and
249 Linux will not write BBT data into this area.
250 The downside of leaving this option disabled is that if bad blocks
251 are detected by Linux, they will not be recorded in the BBT, which
252 could cause future problems.
253 Once you enable this option, new filesystems (INFTL or others, created
254 in Linux or other operating systems) will not use the reserved area.
255 The only reason not to enable this option is to prevent damage to
256 preexisting filesystems.
257 Even if you leave this disabled, you can enable BBT writes at module
258 load time (assuming you build diskonchip as a module) with the module
259 parameter "inftl_bbt_write=1".
Linus Torvalds1da177e2005-04-16 15:20:36 -0700260
Mike Dunn570469f2012-01-03 16:05:44 -0800261config MTD_NAND_DOCG4
Kees Cook5d0e1372012-10-02 11:17:53 -0700262 tristate "Support for DiskOnChip G4"
263 depends on HAS_IOMEM
Mike Dunn570469f2012-01-03 16:05:44 -0800264 select BCH
265 select BITREVERSE
266 help
267 Support for diskonchip G4 nand flash, found in various smartphones and
268 PDAs, among them the Palm Treo680, HTC Prophet and Wizard, Toshiba
269 Portege G900, Asus P526, and O2 XDA Zinc.
270
271 With this driver you will be able to use UBI and create a ubifs on the
272 device, so you may wish to consider enabling UBI and UBIFS as well.
273
274 These devices ship with the Mys/Sandisk SAFTL formatting, for which
275 there is currently no mtd parser, so you may want to use command line
276 partitioning to segregate write-protected blocks. On the Treo680, the
277 first five erase blocks (256KiB each) are write-protected, followed
278 by the block containing the saftl partition table. This is probably
279 typical.
280
Adrian Bunk54af6b42006-03-31 02:29:43 -0800281config MTD_NAND_SHARPSL
282 tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
Jan Engelhardtec98c682007-04-19 16:21:41 -0500283 depends on ARCH_PXA
Adrian Bunk54af6b42006-03-31 02:29:43 -0800284
David Woodhousec45aa052006-10-22 02:17:05 +0100285config MTD_NAND_CAFE
Segher Boessenkool8c61b7a2007-05-02 12:18:49 +0200286 tristate "NAND support for OLPC CAFÉ chip"
287 depends on PCI
288 select REED_SOLOMON
289 select REED_SOLOMON_DEC16
290 help
Adrian Bunk8f46c522007-06-22 01:52:08 +0200291 Use NAND flash attached to the CAFÉ chip designed for the OLPC
Segher Boessenkool8c61b7a2007-05-02 12:18:49 +0200292 laptop.
David Woodhousec45aa052006-10-22 02:17:05 +0100293
David Woodhouse179fdc32006-05-11 22:35:28 +0100294config MTD_NAND_CS553X
295 tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
Yinghai Lu4272ebf2009-01-29 15:14:46 -0800296 depends on X86_32
Richard Weinberger02c3b0b2016-01-25 23:24:20 +0100297 depends on !UML && HAS_IOMEM
David Woodhousef41a5f82006-05-16 13:11:47 +0100298 help
299 The CS553x companion chips for the AMD Geode processor
300 include NAND flash controllers with built-in hardware ECC
301 capabilities; enabling this option will allow you to use
302 these. The driver will check the MSRs to verify that the
303 controller is enabled for NAND, and currently requires that
304 the controller be in MMIO mode.
305
Pavel Machek4737f092009-06-05 00:44:53 +0200306 If you say "m", the module will be called cs553x_nand.
David Woodhousef41a5f82006-05-16 13:11:47 +0100307
HÃ¥vard Skinnemoend4f4c0a2008-06-06 18:04:52 +0200308config MTD_NAND_ATMEL
Boris Brezillonf88fc122017-03-16 09:02:40 +0100309 tristate "Support for NAND Flash / SmartMedia on AT91"
310 depends on ARCH_AT91
Boris Brezillonf9ce2ed2017-03-16 09:35:59 +0100311 select MFD_ATMEL_SMC
Andrew Victor42cb1402006-10-19 18:24:35 +0200312 help
313 Enables support for NAND Flash / Smart Media Card interface
Boris Brezillonf88fc122017-03-16 09:02:40 +0100314 on Atmel AT91 processors.
Andrew Victor42cb1402006-10-19 18:24:35 +0200315
eric miaofe69af02008-02-14 15:48:23 +0800316config MTD_NAND_PXA3xx
Ezequiel Garciac5f99672013-11-07 12:17:11 -0300317 tristate "NAND support on PXA3xx and Armada 370/XP"
Ezequiel Garcia0d58f6e2013-08-12 14:14:59 -0300318 depends on PXA3xx || ARCH_MMP || PLAT_ORION
eric miaofe69af02008-02-14 15:48:23 +0800319 help
320 This enables the driver for the NAND flash device found on
Ezequiel Garciac5f99672013-11-07 12:17:11 -0300321 PXA3xx processors (NFCv1) and also on Armada 370/XP (NFCv2).
eric miaofe69af02008-02-14 15:48:23 +0800322
Roland Stigge2944a442012-06-07 12:22:15 +0200323config MTD_NAND_SLC_LPC32XX
324 tristate "NXP LPC32xx SLC Controller"
325 depends on ARCH_LPC32XX
326 help
327 Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
328 chips) NAND controller. This is the default for the PHYTEC 3250
329 reference board which contains a NAND256R3A2CZA6 chip.
330
331 Please check the actual NAND chip connected and its support
332 by the SLC NAND controller.
333
Roland Stigge70f7cb72012-06-30 18:50:38 +0200334config MTD_NAND_MLC_LPC32XX
335 tristate "NXP LPC32xx MLC Controller"
336 depends on ARCH_LPC32XX
337 help
338 Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
339 controller. This is the default for the WORK92105 controller
340 board.
341
342 Please check the actual NAND chip connected and its support
343 by the MLC NAND controller.
344
Mike Rapoport54d33c42007-04-22 08:53:21 +0300345config MTD_NAND_CM_X270
346 tristate "Support for NAND Flash on CM-X270 modules"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400347 depends on MACH_ARMCORE
Mike Rapoport54d33c42007-04-22 08:53:21 +0300348
Egor Martovetsky846fc312007-11-28 18:37:31 -0600349config MTD_NAND_PASEMI
350 tristate "NAND support for PA Semi PWRficient"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400351 depends on PPC_PASEMI
Egor Martovetsky846fc312007-11-28 18:37:31 -0600352 help
353 Enables support for NAND Flash interface on PA Semi PWRficient
354 based boards
Mike Rapoport54d33c42007-04-22 08:53:21 +0300355
Ian Moltonec43b812008-07-15 16:04:22 +0100356config MTD_NAND_TMIO
357 tristate "NAND Flash device on Toshiba Mobile IO Controller"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400358 depends on MFD_TMIO
Ian Moltonec43b812008-07-15 16:04:22 +0100359 help
360 Support for NAND flash connected to a Toshiba Mobile IO
361 Controller in some PDAs, including the Sharp SL6000x.
362
Adrian Bunk54af6b42006-03-31 02:29:43 -0800363config MTD_NAND_NANDSIM
364 tristate "Support for NAND Flash Simulator"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 help
David Woodhousef41a5f82006-05-16 13:11:47 +0100366 The simulator may simulate various NAND flash chips for the
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 MTD nand layer.
Adrian Bunk54af6b42006-03-31 02:29:43 -0800368
Huang Shijie157550ff2011-09-08 10:47:11 +0800369config MTD_NAND_GPMI_NAND
Fabio Estevame1f5b3f2012-07-28 19:29:24 -0300370 tristate "GPMI NAND Flash Controller driver"
Arnd Bergmanna3349372012-08-04 10:48:12 +0000371 depends on MTD_NAND && MXS_DMA
Huang Shijie157550ff2011-09-08 10:47:11 +0800372 help
Fabio Estevam27c84fa2012-07-25 08:18:18 -0300373 Enables NAND Flash support for IMX23, IMX28 or IMX6.
Huang Shijie157550ff2011-09-08 10:47:11 +0800374 The GPMI controller is very powerful, with the help of BCH
375 module, it can do the hardware ECC. The GPMI supports several
376 NAND flashs at the same time. The GPMI may conflicts with other
377 block, such as SD card. So pay attention to it when you enable
378 the GPMI.
379
Brian Norris27c5b172015-03-06 11:38:08 -0800380config MTD_NAND_BRCMNAND
381 tristate "Broadcom STB NAND controller"
Anup Patelebdee132015-10-02 23:26:43 +0530382 depends on ARM || ARM64 || MIPS
Brian Norris27c5b172015-03-06 11:38:08 -0800383 help
384 Enables the Broadcom NAND controller driver. The controller was
385 originally designed for Set-Top Box but is used on various BCM7xxx,
386 BCM3xxx, BCM63xxx, iProc/Cygnus and more.
387
Rafał Miłeckia54013702012-11-12 13:03:21 +0100388config MTD_NAND_BCM47XXNFLASH
Rafał Miłeckiecfe57b2012-12-03 10:22:35 +0100389 tristate "Support for NAND flash on BCM4706 BCMA bus"
Rafał Miłeckia54013702012-11-12 13:03:21 +0100390 depends on BCMA_NFLASH
391 help
392 BCMA bus can have various flash memories attached, they are
393 registered by bcma as platform devices. This enables driver for
Rafał Miłeckiecfe57b2012-12-03 10:22:35 +0100394 NAND flash memories. For now only BCM4706 is supported.
Rafał Miłeckia54013702012-11-12 13:03:21 +0100395
Vitaly Wool711fdf62007-05-06 19:31:18 +0400396config MTD_NAND_PLATFORM
397 tristate "Support for generic platform NAND driver"
Richard Weinberger9310da02012-02-07 01:22:50 +0100398 depends on HAS_IOMEM
Vitaly Wool711fdf62007-05-06 19:31:18 +0400399 help
400 This implements a generic NAND driver for on-SOC platform
401 devices. You will need to provide platform-specific functions
402 via platform_data.
403
Tzachi Perelstein2a1dba22007-10-17 01:10:40 +0200404config MTD_NAND_ORION
405 tristate "NAND Flash support for Marvell Orion SoC"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400406 depends on PLAT_ORION
Tzachi Perelstein2a1dba22007-10-17 01:10:40 +0200407 help
408 This enables the NAND flash controller on Orion machines.
409
410 No board specific support is done by this driver, each board
411 must advertise a platform_device for the driver to attach.
412
Neil Armstrong66859242016-10-20 10:49:01 +0200413config MTD_NAND_OXNAS
414 tristate "NAND Flash support for Oxford Semiconductor SoC"
Jean Delvarede0b3442017-01-09 11:58:14 +0100415 depends on ARCH_OXNAS || COMPILE_TEST
Randy Dunlapf0fcdc52017-01-01 18:58:27 -0800416 depends on HAS_IOMEM
Neil Armstrong66859242016-10-20 10:49:01 +0200417 help
418 This enables the NAND flash controller on Oxford Semiconductor SoCs.
419
Scott Wood76b10462008-02-06 15:36:21 -0600420config MTD_NAND_FSL_ELBC
421 tristate "NAND support for Freescale eLBC controllers"
Andrey Smirnov107896c2016-07-21 14:59:18 -0700422 depends on FSL_SOC
Roy Zang3ab8f2a2010-10-18 15:22:31 +0800423 select FSL_LBC
Scott Wood76b10462008-02-06 15:36:21 -0600424 help
425 Various Freescale chips, including the 8313, include a NAND Flash
426 Controller Module with built-in hardware ECC capabilities.
427 Enabling this option will enable you to use this to control
428 external NAND devices.
429
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530430config MTD_NAND_FSL_IFC
431 tristate "NAND support for Freescale IFC controller"
Alison Wang01eb9ae2017-02-13 14:46:56 +0800432 depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530433 select FSL_IFC
Paul Gortmaker42d87b12014-02-19 17:46:40 -0500434 select MEMORY
Prabhakar Kushwaha82771882012-03-15 11:04:23 +0530435 help
436 Various Freescale chips e.g P1010, include a NAND Flash machine
437 with built-in hardware ECC capabilities.
438 Enabling this option will enable you to use this to control
439 external NAND devices.
440
Anton Vorontsov5c249c52008-03-11 22:33:13 +0300441config MTD_NAND_FSL_UPM
442 tristate "Support for NAND on Freescale UPM"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400443 depends on PPC_83xx || PPC_85xx
Anton Vorontsov5c249c52008-03-11 22:33:13 +0300444 select FSL_LBC
445 help
446 Enables support for NAND Flash chips wired onto Freescale PowerPC
447 processor localbus with User-Programmable Machine support.
448
Anatolij Gustschinbb315f72010-02-15 18:35:05 +0100449config MTD_NAND_MPC5121_NFC
450 tristate "MPC5121 built-in NAND Flash Controller support"
451 depends on PPC_MPC512x
452 help
453 This enables the driver for the NAND flash controller on the
454 MPC5121 SoC.
455
Stefan Agner456930d2015-09-02 18:06:33 -0700456config MTD_NAND_VF610_NFC
457 tristate "Support for Freescale NFC for VF610/MPC5125"
458 depends on (SOC_VF610 || COMPILE_TEST)
Richard Weinberger15c0be72016-01-25 23:24:10 +0100459 depends on HAS_IOMEM
Stefan Agner456930d2015-09-02 18:06:33 -0700460 help
461 Enables support for NAND Flash Controller on some Freescale
462 processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
Stefan Agner049f4252015-09-02 18:06:34 -0700463 The driver supports a maximum 2k page size. With 2k pages and
464 64 bytes or more of OOB, hardware ECC with up to 32-bit error
465 correction is supported. Hardware ECC is only enabled through
466 device tree.
Stefan Agner456930d2015-09-02 18:06:33 -0700467
Sascha Hauer34f6e152008-09-02 17:16:59 +0200468config MTD_NAND_MXC
469 tristate "MXC NAND support"
Fabio Estevam4d363b52012-07-02 19:00:19 -0300470 depends on ARCH_MXC
Sascha Hauer34f6e152008-09-02 17:16:59 +0200471 help
472 This enables the driver for the NAND flash controller on the
473 MXC processors.
474
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900475config MTD_NAND_SH_FLCTL
476 tristate "Support for NAND on Renesas SuperH FLCTL"
Geert Uytterhoevend5c56202015-12-08 18:40:59 +0100477 depends on SUPERH || COMPILE_TEST
Richard Weinberger3d44dc22014-01-31 13:39:07 +0100478 depends on HAS_IOMEM
479 depends on HAS_DMA
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900480 help
481 Several Renesas SuperH CPU has FLCTL. This option enables support
Magnus Dammb79c7ad2010-02-02 13:01:25 +0900482 for NAND Flash using FLCTL.
Yoshihiro Shimoda6028aa02008-10-14 21:23:26 +0900483
David Brownellff4569c2009-03-04 12:01:37 -0800484config MTD_NAND_DAVINCI
Ivan Khoronzhuk458f3932013-12-17 15:38:12 +0200485 tristate "Support NAND on DaVinci/Keystone SoC"
486 depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF)
David Brownellff4569c2009-03-04 12:01:37 -0800487 help
488 Enable the driver for NAND flash chips on Texas Instruments
Ivan Khoronzhuk458f3932013-12-17 15:38:12 +0200489 DaVinci/Keystone processors.
David Brownellff4569c2009-03-04 12:01:37 -0800490
Atsushi Nemoto64fb65b2009-03-04 12:01:34 -0800491config MTD_NAND_TXX9NDFMC
492 tristate "NAND Flash support for TXx9 SoC"
493 depends on SOC_TX4938 || SOC_TX4939
494 help
495 This enables the NAND flash controller on the TXx9 SoCs.
496
Wolfgang Grandegger1b578192009-03-25 11:48:38 +0100497config MTD_NAND_SOCRATES
498 tristate "Support for NAND on Socrates board"
Kyle Spaans8c1a1152010-06-08 09:48:22 -0400499 depends on SOCRATES
Wolfgang Grandegger1b578192009-03-25 11:48:38 +0100500 help
501 Enables support for NAND Flash chips wired onto Socrates board.
502
David Woodhousebb6a77552010-01-01 12:16:47 +0000503config MTD_NAND_NUC900
504 tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
Jamie Iles6a8a98b2011-05-23 10:23:43 +0100505 depends on ARCH_W90X900
Wan ZongShun8bff82c2009-07-10 15:17:27 +0800506 help
507 This enables the driver for the NAND Flash on evaluation board based
David Woodhousebb6a77552010-01-01 12:16:47 +0000508 on w90p910 / NUC9xx.
Wan ZongShun8bff82c2009-07-10 15:17:27 +0800509
Lars-Peter Clausenba01d6e2010-07-17 11:15:29 +0000510config MTD_NAND_JZ4740
511 tristate "Support for JZ4740 SoC NAND controller"
512 depends on MACH_JZ4740
513 help
514 Enables support for NAND Flash on JZ4740 SoC based boards.
515
Alex Smithae02ab02016-01-04 12:34:43 +0000516config MTD_NAND_JZ4780
517 tristate "Support for NAND on JZ4780 SoC"
518 depends on MACH_JZ4780 && JZ4780_NEMC
519 help
520 Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
521 based boards, using the BCH controller for hardware error correction.
522
Linus Walleij6c009ab2010-09-13 00:35:22 +0200523config MTD_NAND_FSMC
524 tristate "Support for NAND on ST Micros FSMC"
Linus Walleij4404d7d2016-12-18 12:34:55 +0100525 depends on OF
Linus Walleij694e33a2012-10-18 14:01:25 +0200526 depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300
Linus Walleij6c009ab2010-09-13 00:35:22 +0200527 help
528 Enables support for NAND Flash chips on the ST Microelectronics
529 Flexible Static Memory Controller (FSMC)
530
John Crispin99f2b102012-08-23 20:28:32 +0200531config MTD_NAND_XWAY
Hauke Mehrtens73529c82016-12-05 22:14:36 +0100532 bool "Support for NAND on Lantiq XWAY SoC"
John Crispin99f2b102012-08-23 20:28:32 +0200533 depends on LANTIQ && SOC_TYPE_XWAY
John Crispin99f2b102012-08-23 20:28:32 +0200534 help
535 Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
536 to the External Bus Unit (EBU).
537
Boris BREZILLON1fef62c2014-10-21 15:08:41 +0200538config MTD_NAND_SUNXI
539 tristate "Support for NAND on Allwinner SoCs"
540 depends on ARCH_SUNXI
541 help
542 Enables support for NAND Flash chips on Allwinner SoCs.
543
Zhou Wang54f531f2015-01-25 18:53:13 +0800544config MTD_NAND_HISI504
545 tristate "Support for NAND controller on Hisilicon SoC Hip04"
Ezequiel Garcia7699f1e2017-05-02 16:49:51 -0300546 depends on ARCH_HISI || COMPILE_TEST
Geert Uytterhoeven5e0899d2015-03-01 10:35:52 +0100547 depends on HAS_DMA
Zhou Wang54f531f2015-01-25 18:53:13 +0800548 help
549 Enables support for NAND controller on Hisilicon SoC Hip04.
550
Archit Tanejac76b78d2016-02-03 14:29:50 +0530551config MTD_NAND_QCOM
552 tristate "Support for NAND on QCOM SoCs"
553 depends on ARCH_QCOM
554 help
555 Enables support for NAND flash chips on SoCs containing the EBI2 NAND
556 controller. This controller is found on IPQ806x SoC.
557
Jorge Ramirez-Ortiz1d6b1e42016-06-14 11:50:51 -0400558config MTD_NAND_MTK
559 tristate "Support for NAND controller on MTK SoCs"
Ezequiel Garcia6f9ad5f2017-05-02 16:49:52 -0300560 depends on ARCH_MEDIATEK || COMPILE_TEST
Jorge Ramirez-Ortiz1d6b1e42016-06-14 11:50:51 -0400561 depends on HAS_DMA
562 help
563 Enables support for NAND controller on MTK SoCs.
564 This controller is found on mt27xx, mt81xx, mt65xx SoCs.
565
Jan Engelhardtec98c682007-04-19 16:21:41 -0500566endif # MTD_NAND