xref: /linux/drivers/mtd/nand/raw/Kconfig (revision 7019ac5d3bbf1ba98e25c38b0cfb497e0ebdc5f0)
19bb94643SMiquel Raynalconfig MTD_NAND_ECC_SW_HAMMING
293db446aSBoris Brezillon	tristate
393db446aSBoris Brezillon
49bb94643SMiquel Raynalconfig MTD_NAND_ECC_SW_HAMMING_SMC
593db446aSBoris Brezillon	bool "NAND ECC Smart Media byte order"
69bb94643SMiquel Raynal	depends on MTD_NAND_ECC_SW_HAMMING
793db446aSBoris Brezillon	default n
893db446aSBoris Brezillon	help
993db446aSBoris Brezillon	  Software ECC according to the Smart Media Specification.
1093db446aSBoris Brezillon	  The original Linux implementation had byte 0 and 1 swapped.
1193db446aSBoris Brezillon
1272c5af00SMiquel Raynalmenuconfig MTD_RAW_NAND
13daf9a874SMiquel Raynal	tristate "Raw/Parallel NAND Device Support"
1493db446aSBoris Brezillon	depends on MTD
15a7ab085dSBoris Brezillon	select MTD_NAND_CORE
169bb94643SMiquel Raynal	select MTD_NAND_ECC_SW_HAMMING
1793db446aSBoris Brezillon	help
18daf9a874SMiquel Raynal	  This enables support for accessing all type of raw/parallel
19daf9a874SMiquel Raynal	  NAND flash devices. For further information see
2093db446aSBoris Brezillon	  <http://www.linux-mtd.infradead.org/doc/nand.html>.
2193db446aSBoris Brezillon
2272c5af00SMiquel Raynalif MTD_RAW_NAND
2393db446aSBoris Brezillon
24714c0682SMiquel Raynalconfig MTD_NAND_ECC_SW_BCH
25*7019ac5dSAnders Roxell	bool "Support software BCH ECC"
2693db446aSBoris Brezillon	select BCH
2793db446aSBoris Brezillon	default n
2893db446aSBoris Brezillon	help
2993db446aSBoris Brezillon	  This enables support for software BCH error correction. Binary BCH
3093db446aSBoris Brezillon	  codes are more powerful and cpu intensive than traditional Hamming
3193db446aSBoris Brezillon	  ECC codes. They are used with NAND devices requiring more than 1 bit
3293db446aSBoris Brezillon	  of error correction.
3393db446aSBoris Brezillon
34e787be1fSMiquel Raynalcomment "Raw/parallel NAND flash controllers"
3593db446aSBoris Brezillon
3693db446aSBoris Brezillonconfig MTD_NAND_DENALI
3793db446aSBoris Brezillon	tristate
3893db446aSBoris Brezillon
3993db446aSBoris Brezillonconfig MTD_NAND_DENALI_PCI
40e787be1fSMiquel Raynal	tristate "Denali NAND controller on Intel Moorestown"
4193db446aSBoris Brezillon	select MTD_NAND_DENALI
427db782bcSGeert Uytterhoeven	depends on PCI
4393db446aSBoris Brezillon	help
4493db446aSBoris Brezillon	  Enable the driver for NAND flash on Intel Moorestown, using the
4593db446aSBoris Brezillon	  Denali NAND controller core.
4693db446aSBoris Brezillon
4793db446aSBoris Brezillonconfig MTD_NAND_DENALI_DT
48e787be1fSMiquel Raynal	tristate "Denali NAND controller as a DT device"
4993db446aSBoris Brezillon	select MTD_NAND_DENALI
5093db446aSBoris Brezillon	depends on HAS_DMA && HAVE_CLK && OF
5193db446aSBoris Brezillon	help
5293db446aSBoris Brezillon	  Enable the driver for NAND flash on platforms using a Denali NAND
5393db446aSBoris Brezillon	  controller as a DT device.
5493db446aSBoris Brezillon
5593db446aSBoris Brezillonconfig MTD_NAND_AMS_DELTA
56e787be1fSMiquel Raynal	tristate "Amstrad E3 NAND controller"
57fbb080a1SBoris Brezillon	depends on MACH_AMS_DELTA || COMPILE_TEST
5893db446aSBoris Brezillon	default y
5993db446aSBoris Brezillon	help
6093db446aSBoris Brezillon	  Support for NAND flash on Amstrad E3 (Delta).
6193db446aSBoris Brezillon
6293db446aSBoris Brezillonconfig MTD_NAND_OMAP2
63e787be1fSMiquel Raynal	tristate "OMAP2, OMAP3, OMAP4 and Keystone NAND controller"
6431ac1a53SBoris Brezillon	depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
6531ac1a53SBoris Brezillon	depends on HAS_IOMEM
6693db446aSBoris Brezillon	help
6793db446aSBoris Brezillon	  Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
6893db446aSBoris Brezillon	  and Keystone platforms.
6993db446aSBoris Brezillon
7093db446aSBoris Brezillonconfig MTD_NAND_OMAP_BCH
7193db446aSBoris Brezillon	depends on MTD_NAND_OMAP2
7293db446aSBoris Brezillon	bool "Support hardware based BCH error correction"
7393db446aSBoris Brezillon	default n
7493db446aSBoris Brezillon	select BCH
7593db446aSBoris Brezillon	help
7693db446aSBoris Brezillon	  This config enables the ELM hardware engine, which can be used to
7793db446aSBoris Brezillon	  locate and correct errors when using BCH ECC scheme. This offloads
7893db446aSBoris Brezillon	  the cpu from doing ECC error searching and correction. However some
7993db446aSBoris Brezillon	  legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
8093db446aSBoris Brezillon	  so this is optional for them.
8193db446aSBoris Brezillon
8293db446aSBoris Brezillonconfig MTD_NAND_OMAP_BCH_BUILD
8393db446aSBoris Brezillon	def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
8493db446aSBoris Brezillon
8593db446aSBoris Brezillonconfig MTD_NAND_AU1550
8693db446aSBoris Brezillon	tristate "Au1550/1200 NAND support"
8793db446aSBoris Brezillon	depends on MIPS_ALCHEMY
8893db446aSBoris Brezillon	help
8993db446aSBoris Brezillon	  This enables the driver for the NAND flash controller on the
9093db446aSBoris Brezillon	  AMD/Alchemy 1550 SOC.
9193db446aSBoris Brezillon
92e787be1fSMiquel Raynalconfig MTD_NAND_NDFC
93e787be1fSMiquel Raynal	tristate "IBM/MCC 4xx NAND controller"
94e787be1fSMiquel Raynal	depends on 4xx
95e787be1fSMiquel Raynal	select MTD_NAND_ECC_SW_HAMMING_SMC
96e787be1fSMiquel Raynal	help
97e787be1fSMiquel Raynal	  NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
98e787be1fSMiquel Raynal
9993db446aSBoris Brezillonconfig MTD_NAND_S3C2410
100e787be1fSMiquel Raynal	tristate "Samsung S3C NAND controller"
10193db446aSBoris Brezillon	depends on ARCH_S3C24XX || ARCH_S3C64XX
10293db446aSBoris Brezillon	help
10393db446aSBoris Brezillon	  This enables the NAND flash controller on the S3C24xx and S3C64xx
10493db446aSBoris Brezillon	  SoCs
10593db446aSBoris Brezillon
10693db446aSBoris Brezillon	  No board specific support is done by this driver, each board
10793db446aSBoris Brezillon	  must advertise a platform_device for the driver to attach.
10893db446aSBoris Brezillon
10993db446aSBoris Brezillonconfig MTD_NAND_S3C2410_DEBUG
110e787be1fSMiquel Raynal	bool "Samsung S3C NAND controller debug"
11193db446aSBoris Brezillon	depends on MTD_NAND_S3C2410
11293db446aSBoris Brezillon	help
11393db446aSBoris Brezillon	  Enable debugging of the S3C NAND driver
11493db446aSBoris Brezillon
11593db446aSBoris Brezillonconfig MTD_NAND_S3C2410_CLKSTOP
11693db446aSBoris Brezillon	bool "Samsung S3C NAND IDLE clock stop"
11793db446aSBoris Brezillon	depends on MTD_NAND_S3C2410
11893db446aSBoris Brezillon	default n
11993db446aSBoris Brezillon	help
12093db446aSBoris Brezillon	  Stop the clock to the NAND controller when there is no chip
12193db446aSBoris Brezillon	  selected to save power. This will mean there is a small delay
12293db446aSBoris Brezillon	  when the is NAND chip selected or released, but will save
12393db446aSBoris Brezillon	  approximately 5mA of power when there is nothing happening.
12493db446aSBoris Brezillon
12593db446aSBoris Brezillonconfig MTD_NAND_TANGO
126e787be1fSMiquel Raynal	tristate "Tango NAND controller"
12793db446aSBoris Brezillon	depends on ARCH_TANGO || COMPILE_TEST
12845e9f40fSBoris Brezillon	depends on HAS_IOMEM
12993db446aSBoris Brezillon	help
13093db446aSBoris Brezillon	  Enables the NAND Flash controller on Tango chips.
13193db446aSBoris Brezillon
132e787be1fSMiquel Raynalconfig MTD_NAND_SHARPSL
133e787be1fSMiquel Raynal	tristate "Sharp SL Series (C7xx + others) NAND controller"
134e787be1fSMiquel Raynal	depends on ARCH_PXA || COMPILE_TEST
135e787be1fSMiquel Raynal	depends on HAS_IOMEM
136e787be1fSMiquel Raynal
137e787be1fSMiquel Raynalconfig MTD_NAND_CAFE
138e787be1fSMiquel Raynal	tristate "OLPC CAFÉ NAND controller"
139e787be1fSMiquel Raynal	depends on PCI
140e787be1fSMiquel Raynal	select REED_SOLOMON
141e787be1fSMiquel Raynal	select REED_SOLOMON_DEC16
142e787be1fSMiquel Raynal	help
143e787be1fSMiquel Raynal	  Use NAND flash attached to the CAFÉ chip designed for the OLPC
144e787be1fSMiquel Raynal	  laptop.
145e787be1fSMiquel Raynal
146e787be1fSMiquel Raynalconfig MTD_NAND_CS553X
147e787be1fSMiquel Raynal	tristate "CS5535/CS5536 (AMD Geode companion) NAND controller"
148e787be1fSMiquel Raynal	depends on X86_32
149e787be1fSMiquel Raynal	depends on !UML && HAS_IOMEM
150e787be1fSMiquel Raynal	help
151e787be1fSMiquel Raynal	  The CS553x companion chips for the AMD Geode processor
152e787be1fSMiquel Raynal	  include NAND flash controllers with built-in hardware ECC
153e787be1fSMiquel Raynal	  capabilities; enabling this option will allow you to use
154e787be1fSMiquel Raynal	  these. The driver will check the MSRs to verify that the
155e787be1fSMiquel Raynal	  controller is enabled for NAND, and currently requires that
156e787be1fSMiquel Raynal	  the controller be in MMIO mode.
157e787be1fSMiquel Raynal
158e787be1fSMiquel Raynal	  If you say "m", the module will be called cs553x_nand.
159e787be1fSMiquel Raynal
160e787be1fSMiquel Raynalconfig MTD_NAND_ATMEL
161e787be1fSMiquel Raynal	tristate "Atmel AT91 NAND Flash/SmartMedia NAND controller"
162e787be1fSMiquel Raynal	depends on ARCH_AT91 || COMPILE_TEST
163e787be1fSMiquel Raynal	depends on HAS_IOMEM
164e787be1fSMiquel Raynal	select GENERIC_ALLOCATOR
165e787be1fSMiquel Raynal	select MFD_ATMEL_SMC
166e787be1fSMiquel Raynal	help
167e787be1fSMiquel Raynal	  Enables support for NAND Flash / Smart Media Card interface
168e787be1fSMiquel Raynal	  on Atmel AT91 processors.
169e787be1fSMiquel Raynal
170e787be1fSMiquel Raynalconfig MTD_NAND_ORION
171e787be1fSMiquel Raynal	tristate "Marvell Orion NAND controller"
172e787be1fSMiquel Raynal	depends on PLAT_ORION
173e787be1fSMiquel Raynal	help
174e787be1fSMiquel Raynal	  This enables the NAND flash controller on Orion machines.
175e787be1fSMiquel Raynal
176e787be1fSMiquel Raynal	  No board specific support is done by this driver, each board
177e787be1fSMiquel Raynal	  must advertise a platform_device for the driver to attach.
178e787be1fSMiquel Raynal
179e787be1fSMiquel Raynalconfig MTD_NAND_MARVELL
180e787be1fSMiquel Raynal	tristate "Marvell EBU NAND controller"
181e787be1fSMiquel Raynal	depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
182e787be1fSMiquel Raynal		   COMPILE_TEST
183e787be1fSMiquel Raynal	depends on HAS_IOMEM
184e787be1fSMiquel Raynal	help
185e787be1fSMiquel Raynal	  This enables the NAND flash controller driver for Marvell boards,
186e787be1fSMiquel Raynal	  including:
187e787be1fSMiquel Raynal	  - PXA3xx processors (NFCv1)
188e787be1fSMiquel Raynal	  - 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2)
189e787be1fSMiquel Raynal	  - 64-bit Aramda platforms (7k, 8k) (NFCv2)
190e787be1fSMiquel Raynal
191e787be1fSMiquel Raynalconfig MTD_NAND_SLC_LPC32XX
192e787be1fSMiquel Raynal	tristate "NXP LPC32xx SLC NAND controller"
193e787be1fSMiquel Raynal	depends on ARCH_LPC32XX || COMPILE_TEST
194e787be1fSMiquel Raynal	depends on HAS_IOMEM
195e787be1fSMiquel Raynal	help
196e787be1fSMiquel Raynal	  Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
197e787be1fSMiquel Raynal	  chips) NAND controller. This is the default for the PHYTEC 3250
198e787be1fSMiquel Raynal	  reference board which contains a NAND256R3A2CZA6 chip.
199e787be1fSMiquel Raynal
200e787be1fSMiquel Raynal	  Please check the actual NAND chip connected and its support
201e787be1fSMiquel Raynal	  by the SLC NAND controller.
202e787be1fSMiquel Raynal
203e787be1fSMiquel Raynalconfig MTD_NAND_MLC_LPC32XX
204e787be1fSMiquel Raynal	tristate "NXP LPC32xx MLC NAND controller"
205e787be1fSMiquel Raynal	depends on ARCH_LPC32XX || COMPILE_TEST
206e787be1fSMiquel Raynal	depends on HAS_IOMEM
207e787be1fSMiquel Raynal	help
208e787be1fSMiquel Raynal	  Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
209e787be1fSMiquel Raynal	  controller. This is the default for the WORK92105 controller
210e787be1fSMiquel Raynal	  board.
211e787be1fSMiquel Raynal
212e787be1fSMiquel Raynal	  Please check the actual NAND chip connected and its support
213e787be1fSMiquel Raynal	  by the MLC NAND controller.
214e787be1fSMiquel Raynal
215e787be1fSMiquel Raynalconfig MTD_NAND_CM_X270
216e787be1fSMiquel Raynal	tristate "CM-X270 modules NAND controller"
217e787be1fSMiquel Raynal	depends on MACH_ARMCORE
218e787be1fSMiquel Raynal
219e787be1fSMiquel Raynalconfig MTD_NAND_PASEMI
220e787be1fSMiquel Raynal	tristate "PA Semi PWRficient NAND controller"
221e787be1fSMiquel Raynal	depends on PPC_PASEMI
222e787be1fSMiquel Raynal	help
223e787be1fSMiquel Raynal	  Enables support for NAND Flash interface on PA Semi PWRficient
224e787be1fSMiquel Raynal	  based boards
225e787be1fSMiquel Raynal
226e787be1fSMiquel Raynalconfig MTD_NAND_TMIO
227e787be1fSMiquel Raynal	tristate "Toshiba Mobile IO NAND controller"
228e787be1fSMiquel Raynal	depends on MFD_TMIO
229e787be1fSMiquel Raynal	help
230e787be1fSMiquel Raynal	  Support for NAND flash connected to a Toshiba Mobile IO
231e787be1fSMiquel Raynal	  Controller in some PDAs, including the Sharp SL6000x.
232e787be1fSMiquel Raynal
233e787be1fSMiquel Raynalconfig MTD_NAND_BRCMNAND
234e787be1fSMiquel Raynal	tristate "Broadcom STB NAND controller"
235e787be1fSMiquel Raynal	depends on ARM || ARM64 || MIPS || COMPILE_TEST
236e787be1fSMiquel Raynal	depends on HAS_IOMEM
237e787be1fSMiquel Raynal	help
238e787be1fSMiquel Raynal	  Enables the Broadcom NAND controller driver. The controller was
239e787be1fSMiquel Raynal	  originally designed for Set-Top Box but is used on various BCM7xxx,
240e787be1fSMiquel Raynal	  BCM3xxx, BCM63xxx, iProc/Cygnus and more.
241e787be1fSMiquel Raynal
242e787be1fSMiquel Raynalconfig MTD_NAND_BCM47XXNFLASH
243e787be1fSMiquel Raynal	tristate "BCM4706 BCMA NAND controller"
244e787be1fSMiquel Raynal	depends on BCMA_NFLASH
245e787be1fSMiquel Raynal	depends on BCMA
246e787be1fSMiquel Raynal	help
247e787be1fSMiquel Raynal	  BCMA bus can have various flash memories attached, they are
248e787be1fSMiquel Raynal	  registered by bcma as platform devices. This enables driver for
249e787be1fSMiquel Raynal	  NAND flash memories. For now only BCM4706 is supported.
250e787be1fSMiquel Raynal
251e787be1fSMiquel Raynalconfig MTD_NAND_OXNAS
252e787be1fSMiquel Raynal	tristate "Oxford Semiconductor NAND controller"
253e787be1fSMiquel Raynal	depends on ARCH_OXNAS || COMPILE_TEST
254e787be1fSMiquel Raynal	depends on HAS_IOMEM
255e787be1fSMiquel Raynal	help
256e787be1fSMiquel Raynal	  This enables the NAND flash controller on Oxford Semiconductor SoCs.
257e787be1fSMiquel Raynal
258e787be1fSMiquel Raynalconfig MTD_NAND_MPC5121_NFC
259e787be1fSMiquel Raynal	tristate "MPC5121 NAND controller"
260e787be1fSMiquel Raynal	depends on PPC_MPC512x
261e787be1fSMiquel Raynal	help
262e787be1fSMiquel Raynal	  This enables the driver for the NAND flash controller on the
263e787be1fSMiquel Raynal	  MPC5121 SoC.
264e787be1fSMiquel Raynal
265e787be1fSMiquel Raynalconfig MTD_NAND_GPMI_NAND
266e787be1fSMiquel Raynal	tristate "Freescale GPMI NAND controller"
267e787be1fSMiquel Raynal	depends on MXS_DMA
268e787be1fSMiquel Raynal	help
269e787be1fSMiquel Raynal	  Enables NAND Flash support for IMX23, IMX28 or IMX6.
270e787be1fSMiquel Raynal	  The GPMI controller is very powerful, with the help of BCH
271e787be1fSMiquel Raynal	  module, it can do the hardware ECC. The GPMI supports several
272e787be1fSMiquel Raynal	  NAND flashs at the same time.
273e787be1fSMiquel Raynal
274e787be1fSMiquel Raynalconfig MTD_NAND_FSL_ELBC
275e787be1fSMiquel Raynal	tristate "Freescale eLBC NAND controller"
276e787be1fSMiquel Raynal	depends on FSL_SOC
277e787be1fSMiquel Raynal	select FSL_LBC
278e787be1fSMiquel Raynal	help
279e787be1fSMiquel Raynal	  Various Freescale chips, including the 8313, include a NAND Flash
280e787be1fSMiquel Raynal	  Controller Module with built-in hardware ECC capabilities.
281e787be1fSMiquel Raynal	  Enabling this option will enable you to use this to control
282e787be1fSMiquel Raynal	  external NAND devices.
283e787be1fSMiquel Raynal
284e787be1fSMiquel Raynalconfig MTD_NAND_FSL_IFC
285e787be1fSMiquel Raynal	tristate "Freescale IFC NAND controller"
286e787be1fSMiquel Raynal	depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
287e787be1fSMiquel Raynal	depends on HAS_IOMEM
288e787be1fSMiquel Raynal	select FSL_IFC
289e787be1fSMiquel Raynal	select MEMORY
290e787be1fSMiquel Raynal	help
291e787be1fSMiquel Raynal	  Various Freescale chips e.g P1010, include a NAND Flash machine
292e787be1fSMiquel Raynal	  with built-in hardware ECC capabilities.
293e787be1fSMiquel Raynal	  Enabling this option will enable you to use this to control
294e787be1fSMiquel Raynal	  external NAND devices.
295e787be1fSMiquel Raynal
296e787be1fSMiquel Raynalconfig MTD_NAND_FSL_UPM
297e787be1fSMiquel Raynal	tristate "Freescale UPM NAND controller"
298e787be1fSMiquel Raynal	depends on PPC_83xx || PPC_85xx
299e787be1fSMiquel Raynal	select FSL_LBC
300e787be1fSMiquel Raynal	help
301e787be1fSMiquel Raynal	  Enables support for NAND Flash chips wired onto Freescale PowerPC
302e787be1fSMiquel Raynal	  processor localbus with User-Programmable Machine support.
303e787be1fSMiquel Raynal
304e787be1fSMiquel Raynalconfig MTD_NAND_VF610_NFC
305e787be1fSMiquel Raynal	tristate "Freescale VF610/MPC5125 NAND controller"
306e787be1fSMiquel Raynal	depends on (SOC_VF610 || COMPILE_TEST)
307e787be1fSMiquel Raynal	depends on HAS_IOMEM
308e787be1fSMiquel Raynal	help
309e787be1fSMiquel Raynal	  Enables support for NAND Flash Controller on some Freescale
310e787be1fSMiquel Raynal	  processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
311e787be1fSMiquel Raynal	  The driver supports a maximum 2k page size. With 2k pages and
312e787be1fSMiquel Raynal	  64 bytes or more of OOB, hardware ECC with up to 32-bit error
313e787be1fSMiquel Raynal	  correction is supported. Hardware ECC is only enabled through
314e787be1fSMiquel Raynal	  device tree.
315e787be1fSMiquel Raynal
316e787be1fSMiquel Raynalconfig MTD_NAND_MXC
317e787be1fSMiquel Raynal	tristate "Freescale MXC NAND controller"
318e787be1fSMiquel Raynal	depends on ARCH_MXC || COMPILE_TEST
319e787be1fSMiquel Raynal	depends on HAS_IOMEM
320e787be1fSMiquel Raynal	help
321e787be1fSMiquel Raynal	  This enables the driver for the NAND flash controller on the
322e787be1fSMiquel Raynal	  MXC processors.
323e787be1fSMiquel Raynal
324e787be1fSMiquel Raynalconfig MTD_NAND_SH_FLCTL
325e787be1fSMiquel Raynal	tristate "Renesas SuperH FLCTL NAND controller"
326e787be1fSMiquel Raynal	depends on SUPERH || COMPILE_TEST
327e787be1fSMiquel Raynal	depends on HAS_IOMEM
328e787be1fSMiquel Raynal	help
329e787be1fSMiquel Raynal	  Several Renesas SuperH CPU has FLCTL. This option enables support
330e787be1fSMiquel Raynal	  for NAND Flash using FLCTL.
331e787be1fSMiquel Raynal
332e787be1fSMiquel Raynalconfig MTD_NAND_DAVINCI
333e787be1fSMiquel Raynal	tristate "DaVinci/Keystone NAND controller"
334e787be1fSMiquel Raynal	depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST
335e787be1fSMiquel Raynal	depends on HAS_IOMEM
336e787be1fSMiquel Raynal	help
337e787be1fSMiquel Raynal	  Enable the driver for NAND flash chips on Texas Instruments
338e787be1fSMiquel Raynal	  DaVinci/Keystone processors.
339e787be1fSMiquel Raynal
340e787be1fSMiquel Raynalconfig MTD_NAND_TXX9NDFMC
341e787be1fSMiquel Raynal	tristate "TXx9 NAND controller"
342e787be1fSMiquel Raynal	depends on SOC_TX4938 || SOC_TX4939 || COMPILE_TEST
343e787be1fSMiquel Raynal	depends on HAS_IOMEM
344e787be1fSMiquel Raynal	help
345e787be1fSMiquel Raynal	  This enables the NAND flash controller on the TXx9 SoCs.
346e787be1fSMiquel Raynal
347e787be1fSMiquel Raynalconfig MTD_NAND_SOCRATES
348e787be1fSMiquel Raynal	tristate "Socrates NAND controller"
349e787be1fSMiquel Raynal	depends on SOCRATES
350e787be1fSMiquel Raynal	help
351e787be1fSMiquel Raynal	  Enables support for NAND Flash chips wired onto Socrates board.
352e787be1fSMiquel Raynal
353e787be1fSMiquel Raynalconfig MTD_NAND_NUC900
354e787be1fSMiquel Raynal	tristate "Nuvoton NUC9xx/w90p910 NAND controller"
355e787be1fSMiquel Raynal	depends on ARCH_W90X900 || COMPILE_TEST
356e787be1fSMiquel Raynal	depends on HAS_IOMEM
357e787be1fSMiquel Raynal	help
358e787be1fSMiquel Raynal	  This enables the driver for the NAND Flash on evaluation board based
359e787be1fSMiquel Raynal	  on w90p910 / NUC9xx.
360e787be1fSMiquel Raynal
361e787be1fSMiquel Raynalsource "drivers/mtd/nand/raw/ingenic/Kconfig"
362e787be1fSMiquel Raynal
363e787be1fSMiquel Raynalconfig MTD_NAND_FSMC
364e787be1fSMiquel Raynal	tristate "ST Micros FSMC NAND controller"
365e787be1fSMiquel Raynal	depends on OF && HAS_IOMEM
366e787be1fSMiquel Raynal	depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 || \
367e787be1fSMiquel Raynal		   COMPILE_TEST
368e787be1fSMiquel Raynal	help
369e787be1fSMiquel Raynal	  Enables support for NAND Flash chips on the ST Microelectronics
370e787be1fSMiquel Raynal	  Flexible Static Memory Controller (FSMC)
371e787be1fSMiquel Raynal
372e787be1fSMiquel Raynalconfig MTD_NAND_XWAY
373e787be1fSMiquel Raynal	bool "Lantiq XWAY NAND controller"
374e787be1fSMiquel Raynal	depends on LANTIQ && SOC_TYPE_XWAY
375e787be1fSMiquel Raynal	help
376e787be1fSMiquel Raynal	  Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached
377e787be1fSMiquel Raynal	  to the External Bus Unit (EBU).
378e787be1fSMiquel Raynal
379e787be1fSMiquel Raynalconfig MTD_NAND_SUNXI
380e787be1fSMiquel Raynal	tristate "Allwinner NAND controller"
381e787be1fSMiquel Raynal	depends on ARCH_SUNXI || COMPILE_TEST
382e787be1fSMiquel Raynal	depends on HAS_IOMEM
383e787be1fSMiquel Raynal	help
384e787be1fSMiquel Raynal	  Enables support for NAND Flash chips on Allwinner SoCs.
385e787be1fSMiquel Raynal
386e787be1fSMiquel Raynalconfig MTD_NAND_HISI504
387e787be1fSMiquel Raynal	tristate "Hisilicon Hip04 NAND controller"
388e787be1fSMiquel Raynal	depends on ARCH_HISI || COMPILE_TEST
389e787be1fSMiquel Raynal	depends on HAS_IOMEM
390e787be1fSMiquel Raynal	help
391e787be1fSMiquel Raynal	  Enables support for NAND controller on Hisilicon SoC Hip04.
392e787be1fSMiquel Raynal
393e787be1fSMiquel Raynalconfig MTD_NAND_QCOM
394e787be1fSMiquel Raynal	tristate "QCOM NAND controller"
395e787be1fSMiquel Raynal	depends on ARCH_QCOM || COMPILE_TEST
396e787be1fSMiquel Raynal	depends on HAS_IOMEM
397e787be1fSMiquel Raynal	help
398e787be1fSMiquel Raynal	  Enables support for NAND flash chips on SoCs containing the EBI2 NAND
399e787be1fSMiquel Raynal	  controller. This controller is found on IPQ806x SoC.
400e787be1fSMiquel Raynal
401e787be1fSMiquel Raynalconfig MTD_NAND_MTK
402e787be1fSMiquel Raynal	tristate "MTK NAND controller"
403e787be1fSMiquel Raynal	depends on ARCH_MEDIATEK || COMPILE_TEST
404e787be1fSMiquel Raynal	depends on HAS_IOMEM
405e787be1fSMiquel Raynal	help
406e787be1fSMiquel Raynal	  Enables support for NAND controller on MTK SoCs.
407e787be1fSMiquel Raynal	  This controller is found on mt27xx, mt81xx, mt65xx SoCs.
408e787be1fSMiquel Raynal
409e787be1fSMiquel Raynalconfig MTD_NAND_TEGRA
410e787be1fSMiquel Raynal	tristate "NVIDIA Tegra NAND controller"
411e787be1fSMiquel Raynal	depends on ARCH_TEGRA || COMPILE_TEST
412e787be1fSMiquel Raynal	depends on HAS_IOMEM
413e787be1fSMiquel Raynal	help
414e787be1fSMiquel Raynal	  Enables support for NAND flash controller on NVIDIA Tegra SoC.
415e787be1fSMiquel Raynal	  The driver has been developed and tested on a Tegra 2 SoC. DMA
416e787be1fSMiquel Raynal	  support, raw read/write page as well as HW ECC read/write page
417e787be1fSMiquel Raynal	  is supported. Extra OOB bytes when using HW ECC are currently
418e787be1fSMiquel Raynal	  not supported.
419e787be1fSMiquel Raynal
420e787be1fSMiquel Raynalconfig MTD_NAND_STM32_FMC2
421e787be1fSMiquel Raynal	tristate "Support for NAND controller on STM32MP SoCs"
422e787be1fSMiquel Raynal	depends on MACH_STM32MP157 || COMPILE_TEST
423e787be1fSMiquel Raynal	help
424e787be1fSMiquel Raynal	  Enables support for NAND Flash chips on SoCs containing the FMC2
425e787be1fSMiquel Raynal	  NAND controller. This controller is found on STM32MP SoCs.
426e787be1fSMiquel Raynal	  The controller supports a maximum 8k page size and supports
427e787be1fSMiquel Raynal	  a maximum 8-bit correction error per sector of 512 bytes.
428e787be1fSMiquel Raynal
429e787be1fSMiquel Raynalconfig MTD_NAND_MESON
430e787be1fSMiquel Raynal	tristate "Support for NAND controller on Amlogic's Meson SoCs"
431e787be1fSMiquel Raynal	depends on ARCH_MESON || COMPILE_TEST
432e787be1fSMiquel Raynal	select MFD_SYSCON
433e787be1fSMiquel Raynal	help
434e787be1fSMiquel Raynal	  Enables support for NAND controller on Amlogic's Meson SoCs.
435e787be1fSMiquel Raynal	  This controller is found on Meson SoCs.
436e787be1fSMiquel Raynal
437e787be1fSMiquel Raynalconfig MTD_NAND_GPIO
438e787be1fSMiquel Raynal	tristate "GPIO assisted NAND controller"
439e787be1fSMiquel Raynal	depends on GPIOLIB || COMPILE_TEST
440e787be1fSMiquel Raynal	depends on HAS_IOMEM
441e787be1fSMiquel Raynal	help
442e787be1fSMiquel Raynal	  This enables a NAND flash driver where control signals are
443e787be1fSMiquel Raynal	  connected to GPIO pins, and commands and data are communicated
444e787be1fSMiquel Raynal	  via a memory mapped interface.
445e787be1fSMiquel Raynal
446e787be1fSMiquel Raynalconfig MTD_NAND_PLATFORM
447e787be1fSMiquel Raynal	tristate "Generic NAND controller"
448e787be1fSMiquel Raynal	depends on HAS_IOMEM
449e787be1fSMiquel Raynal	help
450e787be1fSMiquel Raynal	  This implements a generic NAND driver for on-SOC platform
451e787be1fSMiquel Raynal	  devices. You will need to provide platform-specific functions
452e787be1fSMiquel Raynal	  via platform_data.
453e787be1fSMiquel Raynal
454e787be1fSMiquel Raynalcomment "Misc"
455e787be1fSMiquel Raynal
456e787be1fSMiquel Raynalconfig MTD_SM_COMMON
457e787be1fSMiquel Raynal	tristate
458e787be1fSMiquel Raynal	default n
459e787be1fSMiquel Raynal
460e787be1fSMiquel Raynalconfig MTD_NAND_NANDSIM
461e787be1fSMiquel Raynal	tristate "Support for NAND Flash Simulator"
462e787be1fSMiquel Raynal	help
463e787be1fSMiquel Raynal	  The simulator may simulate various NAND flash chips for the
464e787be1fSMiquel Raynal	  MTD nand layer.
465e787be1fSMiquel Raynal
466e787be1fSMiquel Raynalconfig MTD_NAND_RICOH
467e787be1fSMiquel Raynal	tristate "Ricoh xD card reader"
468e787be1fSMiquel Raynal	default n
469e787be1fSMiquel Raynal	depends on PCI
470e787be1fSMiquel Raynal	select MTD_SM_COMMON
471e787be1fSMiquel Raynal	help
472e787be1fSMiquel Raynal	  Enable support for Ricoh R5C852 xD card reader
473e787be1fSMiquel Raynal	  You also need to enable ether
474e787be1fSMiquel Raynal	  NAND SSFDC (SmartMedia) read only translation layer' or new
475e787be1fSMiquel Raynal	  expermental, readwrite
476e787be1fSMiquel Raynal	  'SmartMedia/xD new translation layer'
477e787be1fSMiquel Raynal
47893db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP
47993db446aSBoris Brezillon	tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)"
48093db446aSBoris Brezillon	depends on HAS_IOMEM
48193db446aSBoris Brezillon	select REED_SOLOMON
48293db446aSBoris Brezillon	select REED_SOLOMON_DEC16
48393db446aSBoris Brezillon	help
48493db446aSBoris Brezillon	  This is a reimplementation of M-Systems DiskOnChip 2000,
48593db446aSBoris Brezillon	  Millennium and Millennium Plus as a standard NAND device driver,
48693db446aSBoris Brezillon	  as opposed to the earlier self-contained MTD device drivers.
48793db446aSBoris Brezillon	  This should enable, among other things, proper JFFS2 operation on
48893db446aSBoris Brezillon	  these devices.
48993db446aSBoris Brezillon
49093db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADVANCED
49193db446aSBoris Brezillon	bool "Advanced detection options for DiskOnChip"
49293db446aSBoris Brezillon	depends on MTD_NAND_DISKONCHIP
49393db446aSBoris Brezillon	help
49493db446aSBoris Brezillon	  This option allows you to specify nonstandard address at which to
49593db446aSBoris Brezillon	  probe for a DiskOnChip, or to change the detection options.  You
49693db446aSBoris Brezillon	  are unlikely to need any of this unless you are using LinuxBIOS.
49793db446aSBoris Brezillon	  Say 'N'.
49893db446aSBoris Brezillon
49993db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADDRESS
50093db446aSBoris Brezillon	hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
50193db446aSBoris Brezillon	depends on MTD_NAND_DISKONCHIP
50293db446aSBoris Brezillon	default "0"
503d3691813SMiquel Raynal	help
50493db446aSBoris Brezillon	  By default, the probe for DiskOnChip devices will look for a
50593db446aSBoris Brezillon	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
50693db446aSBoris Brezillon	  This option allows you to specify a single address at which to probe
50793db446aSBoris Brezillon	  for the device, which is useful if you have other devices in that
50893db446aSBoris Brezillon	  range which get upset when they are probed.
50993db446aSBoris Brezillon
51093db446aSBoris Brezillon	  (Note that on PowerPC, the normal probe will only check at
51193db446aSBoris Brezillon	  0xE4000000.)
51293db446aSBoris Brezillon
51393db446aSBoris Brezillon	  Normally, you should leave this set to zero, to allow the probe at
51493db446aSBoris Brezillon	  the normal addresses.
51593db446aSBoris Brezillon
51693db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_HIGH
51793db446aSBoris Brezillon	bool "Probe high addresses"
51893db446aSBoris Brezillon	depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
51993db446aSBoris Brezillon	help
52093db446aSBoris Brezillon	  By default, the probe for DiskOnChip devices will look for a
52193db446aSBoris Brezillon	  DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
52293db446aSBoris Brezillon	  This option changes to make it probe between 0xFFFC8000 and
52393db446aSBoris Brezillon	  0xFFFEE000.  Unless you are using LinuxBIOS, this is unlikely to be
52493db446aSBoris Brezillon	  useful to you.  Say 'N'.
52593db446aSBoris Brezillon
52693db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_BBTWRITE
52793db446aSBoris Brezillon	bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
52893db446aSBoris Brezillon	depends on MTD_NAND_DISKONCHIP
52993db446aSBoris Brezillon	help
53093db446aSBoris Brezillon	  On DiskOnChip devices shipped with the INFTL filesystem (Millennium
53193db446aSBoris Brezillon	  and 2000 TSOP/Alon), Linux reserves some space at the end of the
53293db446aSBoris Brezillon	  device for the Bad Block Table (BBT).  If you have existing INFTL
53393db446aSBoris Brezillon	  data on your device (created by non-Linux tools such as M-Systems'
53493db446aSBoris Brezillon	  DOS drivers), your data might overlap the area Linux wants to use for
53593db446aSBoris Brezillon	  the BBT.  If this is a concern for you, leave this option disabled and
53693db446aSBoris Brezillon	  Linux will not write BBT data into this area.
53793db446aSBoris Brezillon	  The downside of leaving this option disabled is that if bad blocks
53893db446aSBoris Brezillon	  are detected by Linux, they will not be recorded in the BBT, which
53993db446aSBoris Brezillon	  could cause future problems.
54093db446aSBoris Brezillon	  Once you enable this option, new filesystems (INFTL or others, created
54193db446aSBoris Brezillon	  in Linux or other operating systems) will not use the reserved area.
54293db446aSBoris Brezillon	  The only reason not to enable this option is to prevent damage to
54393db446aSBoris Brezillon	  preexisting filesystems.
54493db446aSBoris Brezillon	  Even if you leave this disabled, you can enable BBT writes at module
54593db446aSBoris Brezillon	  load time (assuming you build diskonchip as a module) with the module
54693db446aSBoris Brezillon	  parameter "inftl_bbt_write=1".
54793db446aSBoris Brezillon
54872c5af00SMiquel Raynalendif # MTD_RAW_NAND
549