xref: /linux/drivers/mtd/nand/raw/Kconfig (revision a7ab085d7c16a7367a0c93ee39d0750d23b537f9)
1config 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
12
13menuconfig MTD_NAND
14	tristate "Raw/Parallel NAND Device Support"
15	depends on MTD
16	select MTD_NAND_ECC
17	select MTD_NAND_CORE
18	help
19	  This enables support for accessing all type of raw/parallel
20	  NAND flash devices. For further information see
21	  <http://www.linux-mtd.infradead.org/doc/nand.html>.
22
23if MTD_NAND
24
25config MTD_NAND_BCH
26	tristate
27	select BCH
28	depends on MTD_NAND_ECC_BCH
29	default MTD_NAND
30
31config MTD_NAND_ECC_BCH
32	bool "Support software BCH ECC"
33	default n
34	help
35	  This enables support for software BCH error correction. Binary BCH
36	  codes are more powerful and cpu intensive than traditional Hamming
37	  ECC codes. They are used with NAND devices requiring more than 1 bit
38	  of error correction.
39
40config MTD_SM_COMMON
41	tristate
42	default n
43
44config MTD_NAND_DENALI
45	tristate
46
47config MTD_NAND_DENALI_PCI
48	tristate "Support Denali NAND controller on Intel Moorestown"
49	select MTD_NAND_DENALI
50	depends on PCI
51	help
52	  Enable the driver for NAND flash on Intel Moorestown, using the
53	  Denali NAND controller core.
54
55config MTD_NAND_DENALI_DT
56	tristate "Support Denali NAND controller as a DT device"
57	select MTD_NAND_DENALI
58	depends on HAS_DMA && HAVE_CLK && OF
59	help
60	  Enable the driver for NAND flash on platforms using a Denali NAND
61	  controller as a DT device.
62
63config MTD_NAND_GPIO
64	tristate "GPIO assisted NAND Flash driver"
65	depends on GPIOLIB || COMPILE_TEST
66	depends on HAS_IOMEM
67	help
68	  This enables a NAND flash driver where control signals are
69	  connected to GPIO pins, and commands and data are communicated
70	  via a memory mapped interface.
71
72config MTD_NAND_AMS_DELTA
73	tristate "NAND Flash device on Amstrad E3"
74	depends on MACH_AMS_DELTA || COMPILE_TEST
75	default y
76	help
77	  Support for NAND flash on Amstrad E3 (Delta).
78
79config MTD_NAND_OMAP2
80	tristate "NAND Flash device on OMAP2, OMAP3, OMAP4 and Keystone"
81	depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
82	depends on HAS_IOMEM
83	help
84	  Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
85	  and Keystone platforms.
86
87config MTD_NAND_OMAP_BCH
88	depends on MTD_NAND_OMAP2
89	bool "Support hardware based BCH error correction"
90	default n
91	select BCH
92	help
93	  This config enables the ELM hardware engine, which can be used to
94	  locate and correct errors when using BCH ECC scheme. This offloads
95	  the cpu from doing ECC error searching and correction. However some
96	  legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
97	  so this is optional for them.
98
99config MTD_NAND_OMAP_BCH_BUILD
100	def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
101
102config MTD_NAND_RICOH
103	tristate "Ricoh xD card reader"
104	default n
105	depends on PCI
106	select MTD_SM_COMMON
107	help
108	  Enable support for Ricoh R5C852 xD card reader
109	  You also need to enable ether
110	  NAND SSFDC (SmartMedia) read only translation layer' or new
111	  expermental, readwrite
112	  'SmartMedia/xD new translation layer'
113
114config MTD_NAND_AU1550
115	tristate "Au1550/1200 NAND support"
116	depends on MIPS_ALCHEMY
117	help
118	  This enables the driver for the NAND flash controller on the
119	  AMD/Alchemy 1550 SOC.
120
121config MTD_NAND_S3C2410
122	tristate "NAND Flash support for Samsung S3C SoCs"
123	depends on ARCH_S3C24XX || ARCH_S3C64XX
124	help
125	  This enables the NAND flash controller on the S3C24xx and S3C64xx
126	  SoCs
127
128	  No board specific support is done by this driver, each board
129	  must advertise a platform_device for the driver to attach.
130
131config MTD_NAND_S3C2410_DEBUG
132	bool "Samsung S3C NAND driver debug"
133	depends on MTD_NAND_S3C2410
134	help
135	  Enable debugging of the S3C NAND driver
136
137config MTD_NAND_NDFC
138	tristate "NDFC NanD Flash Controller"
139	depends on 4xx
140	select MTD_NAND_ECC_SMC
141	help
142	  NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
143
144config MTD_NAND_S3C2410_CLKSTOP
145	bool "Samsung S3C NAND IDLE clock stop"
146	depends on MTD_NAND_S3C2410
147	default n
148	help
149	  Stop the clock to the NAND controller when there is no chip
150	  selected to save power. This will mean there is a small delay
151	  when the is NAND chip selected or released, but will save
152	  approximately 5mA of power when there is nothing happening.
153
154config MTD_NAND_TANGO
155	tristate "NAND Flash support for Tango chips"
156	depends on ARCH_TANGO || COMPILE_TEST
157	depends on HAS_IOMEM
158	help
159	  Enables the NAND Flash controller on Tango chips.
160
161config MTD_NAND_DISKONCHIP
162	tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
163	depends on HAS_IOMEM
164	select REED_SOLOMON
165	select REED_SOLOMON_DEC16
166	help
167	  This is a reimplementation of M-Systems DiskOnChip 2000,
168	  Millennium and Millennium Plus as a standard NAND device driver,
169	  as opposed to the earlier self-contained MTD device drivers.
170	  This should enable, among other things, proper JFFS2 operation on
171	  these devices.
172
173config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
174	bool "Advanced detection options for DiskOnChip"
175	depends on MTD_NAND_DISKONCHIP
176	help
177	  This option allows you to specify nonstandard address at which to
178	  probe for a DiskOnChip, or to change the detection options.  You
179	  are unlikely to need any of this unless you are using LinuxBIOS.
180	  Say 'N'.
181
182config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
183	hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
184	depends on MTD_NAND_DISKONCHIP
185	default "0"
186	help
187	  By default, the probe for DiskOnChip devices will look for a
188	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
189	  This option allows you to specify a single address at which to probe
190	  for the device, which is useful if you have other devices in that
191	  range which get upset when they are probed.
192
193	  (Note that on PowerPC, the normal probe will only check at
194	  0xE4000000.)
195
196	  Normally, you should leave this set to zero, to allow the probe at
197	  the normal addresses.
198
199config MTD_NAND_DISKONCHIP_PROBE_HIGH
200	bool "Probe high addresses"
201	depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
202	help
203	  By default, the probe for DiskOnChip devices will look for a
204	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
205	  This option changes to make it probe between 0xFFFC8000 and
206	  0xFFFEE000.  Unless you are using LinuxBIOS, this is unlikely to be
207	  useful to you.  Say 'N'.
208
209config MTD_NAND_DISKONCHIP_BBTWRITE
210	bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
211	depends on MTD_NAND_DISKONCHIP
212	help
213	  On DiskOnChip devices shipped with the INFTL filesystem (Millennium
214	  and 2000 TSOP/Alon), Linux reserves some space at the end of the
215	  device for the Bad Block Table (BBT).  If you have existing INFTL
216	  data on your device (created by non-Linux tools such as M-Systems'
217	  DOS drivers), your data might overlap the area Linux wants to use for
218	  the BBT.  If this is a concern for you, leave this option disabled and
219	  Linux will not write BBT data into this area.
220	  The downside of leaving this option disabled is that if bad blocks
221	  are detected by Linux, they will not be recorded in the BBT, which
222	  could cause future problems.
223	  Once you enable this option, new filesystems (INFTL or others, created
224	  in Linux or other operating systems) will not use the reserved area.
225	  The only reason not to enable this option is to prevent damage to
226	  preexisting filesystems.
227	  Even if you leave this disabled, you can enable BBT writes at module
228	  load time (assuming you build diskonchip as a module) with the module
229	  parameter "inftl_bbt_write=1".
230
231config MTD_NAND_SHARPSL
232	tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)"
233	depends on ARCH_PXA || COMPILE_TEST
234	depends on HAS_IOMEM
235
236config MTD_NAND_CAFE
237	tristate "NAND support for OLPC CAFÉ chip"
238	depends on PCI
239	select REED_SOLOMON
240	select REED_SOLOMON_DEC16
241	help
242	  Use NAND flash attached to the CAFÉ chip designed for the OLPC
243	  laptop.
244
245config MTD_NAND_CS553X
246	tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
247	depends on X86_32
248	depends on !UML && HAS_IOMEM
249	help
250	  The CS553x companion chips for the AMD Geode processor
251	  include NAND flash controllers with built-in hardware ECC
252	  capabilities; enabling this option will allow you to use
253	  these. The driver will check the MSRs to verify that the
254	  controller is enabled for NAND, and currently requires that
255	  the controller be in MMIO mode.
256
257	  If you say "m", the module will be called cs553x_nand.
258
259config MTD_NAND_ATMEL
260	tristate "Support for NAND Flash / SmartMedia on AT91"
261	depends on ARCH_AT91 || COMPILE_TEST
262	depends on HAS_IOMEM
263	select GENERIC_ALLOCATOR
264	select MFD_ATMEL_SMC
265	help
266	  Enables support for NAND Flash / Smart Media Card interface
267	  on Atmel AT91 processors.
268
269config MTD_NAND_MARVELL
270	tristate "NAND controller support on Marvell boards"
271	depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
272		   COMPILE_TEST
273	depends on HAS_IOMEM
274	help
275	  This enables the NAND flash controller driver for Marvell boards,
276	  including:
277	  - PXA3xx processors (NFCv1)
278	  - 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2)
279	  - 64-bit Aramda platforms (7k, 8k) (NFCv2)
280
281config MTD_NAND_SLC_LPC32XX
282	tristate "NXP LPC32xx SLC Controller"
283	depends on ARCH_LPC32XX || COMPILE_TEST
284	depends on HAS_IOMEM
285	help
286	  Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
287	  chips) NAND controller. This is the default for the PHYTEC 3250
288	  reference board which contains a NAND256R3A2CZA6 chip.
289
290	  Please check the actual NAND chip connected and its support
291	  by the SLC NAND controller.
292
293config MTD_NAND_MLC_LPC32XX
294	tristate "NXP LPC32xx MLC Controller"
295	depends on ARCH_LPC32XX || COMPILE_TEST
296	depends on HAS_IOMEM
297	help
298	  Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
299	  controller. This is the default for the WORK92105 controller
300	  board.
301
302	  Please check the actual NAND chip connected and its support
303	  by the MLC NAND controller.
304
305config MTD_NAND_CM_X270
306	tristate "Support for NAND Flash on CM-X270 modules"
307	depends on MACH_ARMCORE
308
309config MTD_NAND_PASEMI
310	tristate "NAND support for PA Semi PWRficient"
311	depends on PPC_PASEMI
312	help
313	  Enables support for NAND Flash interface on PA Semi PWRficient
314	  based boards
315
316config MTD_NAND_TMIO
317	tristate "NAND Flash device on Toshiba Mobile IO Controller"
318	depends on MFD_TMIO
319	help
320	  Support for NAND flash connected to a Toshiba Mobile IO
321	  Controller in some PDAs, including the Sharp SL6000x.
322
323config MTD_NAND_NANDSIM
324	tristate "Support for NAND Flash Simulator"
325	help
326	  The simulator may simulate various NAND flash chips for the
327	  MTD nand layer.
328
329config MTD_NAND_GPMI_NAND
330	tristate "GPMI NAND Flash Controller driver"
331	depends on MXS_DMA
332	help
333	  Enables NAND Flash support for IMX23, IMX28 or IMX6.
334	  The GPMI controller is very powerful, with the help of BCH
335	  module, it can do the hardware ECC. The GPMI supports several
336	  NAND flashs at the same time.
337
338config MTD_NAND_BRCMNAND
339	tristate "Broadcom STB NAND controller"
340	depends on ARM || ARM64 || MIPS || COMPILE_TEST
341	depends on HAS_IOMEM
342	help
343	  Enables the Broadcom NAND controller driver. The controller was
344	  originally designed for Set-Top Box but is used on various BCM7xxx,
345	  BCM3xxx, BCM63xxx, iProc/Cygnus and more.
346
347config MTD_NAND_BCM47XXNFLASH
348	tristate "Support for NAND flash on BCM4706 BCMA bus"
349	depends on BCMA_NFLASH
350	depends on BCMA
351	help
352	  BCMA bus can have various flash memories attached, they are
353	  registered by bcma as platform devices. This enables driver for
354	  NAND flash memories. For now only BCM4706 is supported.
355
356config MTD_NAND_PLATFORM
357	tristate "Support for generic platform NAND driver"
358	depends on HAS_IOMEM
359	help
360	  This implements a generic NAND driver for on-SOC platform
361	  devices. You will need to provide platform-specific functions
362	  via platform_data.
363
364config MTD_NAND_ORION
365	tristate "NAND Flash support for Marvell Orion SoC"
366	depends on PLAT_ORION
367	help
368	  This enables the NAND flash controller on Orion machines.
369
370	  No board specific support is done by this driver, each board
371	  must advertise a platform_device for the driver to attach.
372
373config MTD_NAND_OXNAS
374	tristate "NAND Flash support for Oxford Semiconductor SoC"
375	depends on ARCH_OXNAS || COMPILE_TEST
376	depends on HAS_IOMEM
377	help
378	  This enables the NAND flash controller on Oxford Semiconductor SoCs.
379
380config MTD_NAND_FSL_ELBC
381	tristate "NAND support for Freescale eLBC controllers"
382	depends on FSL_SOC
383	select FSL_LBC
384	help
385	  Various Freescale chips, including the 8313, include a NAND Flash
386	  Controller Module with built-in hardware ECC capabilities.
387	  Enabling this option will enable you to use this to control
388	  external NAND devices.
389
390config MTD_NAND_FSL_IFC
391	tristate "NAND support for Freescale IFC controller"
392	depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
393	depends on HAS_IOMEM
394	select FSL_IFC
395	select MEMORY
396	help
397	  Various Freescale chips e.g P1010, include a NAND Flash machine
398	  with built-in hardware ECC capabilities.
399	  Enabling this option will enable you to use this to control
400	  external NAND devices.
401
402config MTD_NAND_FSL_UPM
403	tristate "Support for NAND on Freescale UPM"
404	depends on PPC_83xx || PPC_85xx
405	select FSL_LBC
406	help
407	  Enables support for NAND Flash chips wired onto Freescale PowerPC
408	  processor localbus with User-Programmable Machine support.
409
410config MTD_NAND_MPC5121_NFC
411	tristate "MPC5121 built-in NAND Flash Controller support"
412	depends on PPC_MPC512x
413	help
414	  This enables the driver for the NAND flash controller on the
415	  MPC5121 SoC.
416
417config MTD_NAND_VF610_NFC
418	tristate "Support for Freescale NFC for VF610/MPC5125"
419	depends on (SOC_VF610 || COMPILE_TEST)
420	depends on HAS_IOMEM
421	help
422	  Enables support for NAND Flash Controller on some Freescale
423	  processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
424	  The driver supports a maximum 2k page size. With 2k pages and
425	  64 bytes or more of OOB, hardware ECC with up to 32-bit error
426	  correction is supported. Hardware ECC is only enabled through
427	  device tree.
428
429config MTD_NAND_MXC
430	tristate "MXC NAND support"
431	depends on ARCH_MXC || COMPILE_TEST
432	depends on HAS_IOMEM
433	help
434	  This enables the driver for the NAND flash controller on the
435	  MXC processors.
436
437config MTD_NAND_SH_FLCTL
438	tristate "Support for NAND on Renesas SuperH FLCTL"
439	depends on SUPERH || COMPILE_TEST
440	depends on HAS_IOMEM
441	help
442	  Several Renesas SuperH CPU has FLCTL. This option enables support
443	  for NAND Flash using FLCTL.
444
445config MTD_NAND_DAVINCI
446	tristate "Support NAND on DaVinci/Keystone SoC"
447	depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST
448	depends on HAS_IOMEM
449	help
450	  Enable the driver for NAND flash chips on Texas Instruments
451	  DaVinci/Keystone processors.
452
453config MTD_NAND_TXX9NDFMC
454	tristate "NAND Flash support for TXx9 SoC"
455	depends on SOC_TX4938 || SOC_TX4939 || COMPILE_TEST
456	depends on HAS_IOMEM
457	help
458	  This enables the NAND flash controller on the TXx9 SoCs.
459
460config MTD_NAND_SOCRATES
461	tristate "Support for NAND on Socrates board"
462	depends on SOCRATES
463	help
464	  Enables support for NAND Flash chips wired onto Socrates board.
465
466config MTD_NAND_NUC900
467	tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards."
468	depends on ARCH_W90X900 || COMPILE_TEST
469	depends on HAS_IOMEM
470	help
471	  This enables the driver for the NAND Flash on evaluation board based
472	  on w90p910 / NUC9xx.
473
474source "drivers/mtd/nand/raw/ingenic/Kconfig"
475
476config MTD_NAND_FSMC
477	tristate "Support for NAND on ST Micros FSMC"
478	depends on OF && HAS_IOMEM
479	depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 || \
480		   COMPILE_TEST
481	help
482	  Enables support for NAND Flash chips on the ST Microelectronics
483	  Flexible Static Memory Controller (FSMC)
484
485config MTD_NAND_XWAY
486	bool "Support for NAND on Lantiq XWAY SoC"
487	depends on LANTIQ && SOC_TYPE_XWAY
488	help
489	  Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
490	  to the External Bus Unit (EBU).
491
492config MTD_NAND_SUNXI
493	tristate "Support for NAND on Allwinner SoCs"
494	depends on ARCH_SUNXI || COMPILE_TEST
495	depends on HAS_IOMEM
496	help
497	  Enables support for NAND Flash chips on Allwinner SoCs.
498
499config MTD_NAND_HISI504
500	tristate "Support for NAND controller on Hisilicon SoC Hip04"
501	depends on ARCH_HISI || COMPILE_TEST
502	depends on HAS_IOMEM
503	help
504	  Enables support for NAND controller on Hisilicon SoC Hip04.
505
506config MTD_NAND_QCOM
507	tristate "Support for NAND on QCOM SoCs"
508	depends on ARCH_QCOM || COMPILE_TEST
509	depends on HAS_IOMEM
510	help
511	  Enables support for NAND flash chips on SoCs containing the EBI2 NAND
512	  controller. This controller is found on IPQ806x SoC.
513
514config MTD_NAND_MTK
515	tristate "Support for NAND controller on MTK SoCs"
516	depends on ARCH_MEDIATEK || COMPILE_TEST
517	depends on HAS_IOMEM
518	help
519	  Enables support for NAND controller on MTK SoCs.
520	  This controller is found on mt27xx, mt81xx, mt65xx SoCs.
521
522config MTD_NAND_TEGRA
523	tristate "Support for NAND controller on NVIDIA Tegra"
524	depends on ARCH_TEGRA || COMPILE_TEST
525	depends on HAS_IOMEM
526	help
527	  Enables support for NAND flash controller on NVIDIA Tegra SoC.
528	  The driver has been developed and tested on a Tegra 2 SoC. DMA
529	  support, raw read/write page as well as HW ECC read/write page
530	  is supported. Extra OOB bytes when using HW ECC are currently
531	  not supported.
532
533config MTD_NAND_STM32_FMC2
534	tristate "Support for NAND controller on STM32MP SoCs"
535	depends on MACH_STM32MP157 || COMPILE_TEST
536	help
537	  Enables support for NAND Flash chips on SoCs containing the FMC2
538	  NAND controller. This controller is found on STM32MP SoCs.
539	  The controller supports a maximum 8k page size and supports
540	  a maximum 8-bit correction error per sector of 512 bytes.
541
542config MTD_NAND_MESON
543	tristate "Support for NAND controller on Amlogic's Meson SoCs"
544	depends on ARCH_MESON || COMPILE_TEST
545	select MFD_SYSCON
546	help
547	  Enables support for NAND controller on Amlogic's Meson SoCs.
548	  This controller is found on Meson SoCs.
549
550endif # MTD_NAND
551