1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 272c5af00SMiquel Raynalmenuconfig MTD_RAW_NAND 3daf9a874SMiquel Raynal tristate "Raw/Parallel NAND Device Support" 4a7ab085dSBoris Brezillon select MTD_NAND_CORE 5c441bcd3SMiquel Raynal select MTD_NAND_ECC 693db446aSBoris Brezillon help 7daf9a874SMiquel Raynal This enables support for accessing all type of raw/parallel 8daf9a874SMiquel Raynal NAND flash devices. For further information see 993db446aSBoris Brezillon <http://www.linux-mtd.infradead.org/doc/nand.html>. 1093db446aSBoris Brezillon 1172c5af00SMiquel Raynalif MTD_RAW_NAND 1293db446aSBoris Brezillon 13e787be1fSMiquel Raynalcomment "Raw/parallel NAND flash controllers" 1493db446aSBoris Brezillon 1593db446aSBoris Brezillonconfig MTD_NAND_DENALI 1693db446aSBoris Brezillon tristate 1793db446aSBoris Brezillon 1893db446aSBoris Brezillonconfig MTD_NAND_DENALI_PCI 19e787be1fSMiquel Raynal tristate "Denali NAND controller on Intel Moorestown" 2093db446aSBoris Brezillon select MTD_NAND_DENALI 217db782bcSGeert Uytterhoeven depends on PCI 2293db446aSBoris Brezillon help 2393db446aSBoris Brezillon Enable the driver for NAND flash on Intel Moorestown, using the 2493db446aSBoris Brezillon Denali NAND controller core. 2593db446aSBoris Brezillon 2693db446aSBoris Brezillonconfig MTD_NAND_DENALI_DT 27e787be1fSMiquel Raynal tristate "Denali NAND controller as a DT device" 2893db446aSBoris Brezillon select MTD_NAND_DENALI 292e69e18aSCai Huoqing depends on HAS_DMA && HAVE_CLK && OF && HAS_IOMEM 3093db446aSBoris Brezillon help 3193db446aSBoris Brezillon Enable the driver for NAND flash on platforms using a Denali NAND 3293db446aSBoris Brezillon controller as a DT device. 3393db446aSBoris Brezillon 3493db446aSBoris Brezillonconfig MTD_NAND_AMS_DELTA 35e787be1fSMiquel Raynal tristate "Amstrad E3 NAND controller" 36fbb080a1SBoris Brezillon depends on MACH_AMS_DELTA || COMPILE_TEST 3793db446aSBoris Brezillon default y 3893db446aSBoris Brezillon help 3993db446aSBoris Brezillon Support for NAND flash on Amstrad E3 (Delta). 4093db446aSBoris Brezillon 4193db446aSBoris Brezillonconfig MTD_NAND_OMAP2 42e787be1fSMiquel Raynal tristate "OMAP2, OMAP3, OMAP4 and Keystone NAND controller" 4335da0c45SRoger Quadros depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST 4431ac1a53SBoris Brezillon depends on HAS_IOMEM 45dbcb124aSRoger Quadros select OMAP_GPMC if ARCH_K3 4693db446aSBoris Brezillon help 4793db446aSBoris Brezillon Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4 4893db446aSBoris Brezillon and Keystone platforms. 4993db446aSBoris Brezillon 5093db446aSBoris Brezillonconfig MTD_NAND_OMAP_BCH 5193db446aSBoris Brezillon depends on MTD_NAND_OMAP2 5293db446aSBoris Brezillon bool "Support hardware based BCH error correction" 5393db446aSBoris Brezillon default n 5493db446aSBoris Brezillon select BCH 5593db446aSBoris Brezillon help 5693db446aSBoris Brezillon This config enables the ELM hardware engine, which can be used to 5793db446aSBoris Brezillon locate and correct errors when using BCH ECC scheme. This offloads 5893db446aSBoris Brezillon the cpu from doing ECC error searching and correction. However some 5993db446aSBoris Brezillon legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine 6093db446aSBoris Brezillon so this is optional for them. 6193db446aSBoris Brezillon 6293db446aSBoris Brezillonconfig MTD_NAND_OMAP_BCH_BUILD 6393db446aSBoris Brezillon def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH 6493db446aSBoris Brezillon 6593db446aSBoris Brezillonconfig MTD_NAND_AU1550 6693db446aSBoris Brezillon tristate "Au1550/1200 NAND support" 6793db446aSBoris Brezillon depends on MIPS_ALCHEMY 6893db446aSBoris Brezillon help 6993db446aSBoris Brezillon This enables the driver for the NAND flash controller on the 7093db446aSBoris Brezillon AMD/Alchemy 1550 SOC. 7193db446aSBoris Brezillon 72e787be1fSMiquel Raynalconfig MTD_NAND_NDFC 73e787be1fSMiquel Raynal tristate "IBM/MCC 4xx NAND controller" 74e787be1fSMiquel Raynal depends on 4xx 755180a62cSMiquel Raynal select MTD_NAND_ECC_SW_HAMMING 76e787be1fSMiquel Raynal select MTD_NAND_ECC_SW_HAMMING_SMC 77e787be1fSMiquel Raynal help 78e787be1fSMiquel Raynal NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs 79e787be1fSMiquel Raynal 8093db446aSBoris Brezillonconfig MTD_NAND_S3C2410 81e787be1fSMiquel Raynal tristate "Samsung S3C NAND controller" 8293db446aSBoris Brezillon depends on ARCH_S3C24XX || ARCH_S3C64XX 8393db446aSBoris Brezillon help 8493db446aSBoris Brezillon This enables the NAND flash controller on the S3C24xx and S3C64xx 8593db446aSBoris Brezillon SoCs 8693db446aSBoris Brezillon 8793db446aSBoris Brezillon No board specific support is done by this driver, each board 8893db446aSBoris Brezillon must advertise a platform_device for the driver to attach. 8993db446aSBoris Brezillon 9093db446aSBoris Brezillonconfig MTD_NAND_S3C2410_DEBUG 91e787be1fSMiquel Raynal bool "Samsung S3C NAND controller debug" 9293db446aSBoris Brezillon depends on MTD_NAND_S3C2410 9393db446aSBoris Brezillon help 9493db446aSBoris Brezillon Enable debugging of the S3C NAND driver 9593db446aSBoris Brezillon 9693db446aSBoris Brezillonconfig MTD_NAND_S3C2410_CLKSTOP 9793db446aSBoris Brezillon bool "Samsung S3C NAND IDLE clock stop" 9893db446aSBoris Brezillon depends on MTD_NAND_S3C2410 9993db446aSBoris Brezillon default n 10093db446aSBoris Brezillon help 10193db446aSBoris Brezillon Stop the clock to the NAND controller when there is no chip 10293db446aSBoris Brezillon selected to save power. This will mean there is a small delay 10393db446aSBoris Brezillon when the is NAND chip selected or released, but will save 10493db446aSBoris Brezillon approximately 5mA of power when there is nothing happening. 10593db446aSBoris Brezillon 106e787be1fSMiquel Raynalconfig MTD_NAND_SHARPSL 107e787be1fSMiquel Raynal tristate "Sharp SL Series (C7xx + others) NAND controller" 108e787be1fSMiquel Raynal depends on ARCH_PXA || COMPILE_TEST 109e787be1fSMiquel Raynal depends on HAS_IOMEM 110e787be1fSMiquel Raynal 111e787be1fSMiquel Raynalconfig MTD_NAND_CAFE 112e787be1fSMiquel Raynal tristate "OLPC CAFÉ NAND controller" 113e787be1fSMiquel Raynal depends on PCI 114e787be1fSMiquel Raynal select REED_SOLOMON 115e787be1fSMiquel Raynal select REED_SOLOMON_DEC16 116e787be1fSMiquel Raynal help 117e787be1fSMiquel Raynal Use NAND flash attached to the CAFÉ chip designed for the OLPC 118e787be1fSMiquel Raynal laptop. 119e787be1fSMiquel Raynal 120e787be1fSMiquel Raynalconfig MTD_NAND_CS553X 121e787be1fSMiquel Raynal tristate "CS5535/CS5536 (AMD Geode companion) NAND controller" 122e787be1fSMiquel Raynal depends on X86_32 123e787be1fSMiquel Raynal depends on !UML && HAS_IOMEM 124e787be1fSMiquel Raynal help 125e787be1fSMiquel Raynal The CS553x companion chips for the AMD Geode processor 126e787be1fSMiquel Raynal include NAND flash controllers with built-in hardware ECC 127e787be1fSMiquel Raynal capabilities; enabling this option will allow you to use 128e787be1fSMiquel Raynal these. The driver will check the MSRs to verify that the 129e787be1fSMiquel Raynal controller is enabled for NAND, and currently requires that 130e787be1fSMiquel Raynal the controller be in MMIO mode. 131e787be1fSMiquel Raynal 132e787be1fSMiquel Raynal If you say "m", the module will be called cs553x_nand. 133e787be1fSMiquel Raynal 134e787be1fSMiquel Raynalconfig MTD_NAND_ATMEL 135e787be1fSMiquel Raynal tristate "Atmel AT91 NAND Flash/SmartMedia NAND controller" 136e787be1fSMiquel Raynal depends on ARCH_AT91 || COMPILE_TEST 137e787be1fSMiquel Raynal depends on HAS_IOMEM 138e787be1fSMiquel Raynal select GENERIC_ALLOCATOR 139e787be1fSMiquel Raynal select MFD_ATMEL_SMC 140e787be1fSMiquel Raynal help 141e787be1fSMiquel Raynal Enables support for NAND Flash / Smart Media Card interface 142e787be1fSMiquel Raynal on Atmel AT91 processors. 143e787be1fSMiquel Raynal 144e787be1fSMiquel Raynalconfig MTD_NAND_ORION 145e787be1fSMiquel Raynal tristate "Marvell Orion NAND controller" 146e787be1fSMiquel Raynal depends on PLAT_ORION 147e787be1fSMiquel Raynal help 148e787be1fSMiquel Raynal This enables the NAND flash controller on Orion machines. 149e787be1fSMiquel Raynal 150e787be1fSMiquel Raynal No board specific support is done by this driver, each board 151e787be1fSMiquel Raynal must advertise a platform_device for the driver to attach. 152e787be1fSMiquel Raynal 153e787be1fSMiquel Raynalconfig MTD_NAND_MARVELL 154e787be1fSMiquel Raynal tristate "Marvell EBU NAND controller" 155e787be1fSMiquel Raynal depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \ 156e787be1fSMiquel Raynal COMPILE_TEST 157e787be1fSMiquel Raynal depends on HAS_IOMEM 158e787be1fSMiquel Raynal help 159e787be1fSMiquel Raynal This enables the NAND flash controller driver for Marvell boards, 160e787be1fSMiquel Raynal including: 161e787be1fSMiquel Raynal - PXA3xx processors (NFCv1) 162e787be1fSMiquel Raynal - 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2) 163e787be1fSMiquel Raynal - 64-bit Aramda platforms (7k, 8k) (NFCv2) 164e787be1fSMiquel Raynal 165e787be1fSMiquel Raynalconfig MTD_NAND_SLC_LPC32XX 166e787be1fSMiquel Raynal tristate "NXP LPC32xx SLC NAND controller" 167e787be1fSMiquel Raynal depends on ARCH_LPC32XX || COMPILE_TEST 168e787be1fSMiquel Raynal depends on HAS_IOMEM 169e787be1fSMiquel Raynal help 170e787be1fSMiquel Raynal Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell 171e787be1fSMiquel Raynal chips) NAND controller. This is the default for the PHYTEC 3250 172e787be1fSMiquel Raynal reference board which contains a NAND256R3A2CZA6 chip. 173e787be1fSMiquel Raynal 174e787be1fSMiquel Raynal Please check the actual NAND chip connected and its support 175e787be1fSMiquel Raynal by the SLC NAND controller. 176e787be1fSMiquel Raynal 177e787be1fSMiquel Raynalconfig MTD_NAND_MLC_LPC32XX 178e787be1fSMiquel Raynal tristate "NXP LPC32xx MLC NAND controller" 179e787be1fSMiquel Raynal depends on ARCH_LPC32XX || COMPILE_TEST 180e787be1fSMiquel Raynal depends on HAS_IOMEM 181e787be1fSMiquel Raynal help 182e787be1fSMiquel Raynal Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND 183e787be1fSMiquel Raynal controller. This is the default for the WORK92105 controller 184e787be1fSMiquel Raynal board. 185e787be1fSMiquel Raynal 186e787be1fSMiquel Raynal Please check the actual NAND chip connected and its support 187e787be1fSMiquel Raynal by the MLC NAND controller. 188e787be1fSMiquel Raynal 189e787be1fSMiquel Raynalconfig MTD_NAND_PASEMI 190e787be1fSMiquel Raynal tristate "PA Semi PWRficient NAND controller" 191e787be1fSMiquel Raynal depends on PPC_PASEMI 192e787be1fSMiquel Raynal help 193e787be1fSMiquel Raynal Enables support for NAND Flash interface on PA Semi PWRficient 194e787be1fSMiquel Raynal based boards 195e787be1fSMiquel Raynal 196e787be1fSMiquel Raynalconfig MTD_NAND_TMIO 197e787be1fSMiquel Raynal tristate "Toshiba Mobile IO NAND controller" 198e787be1fSMiquel Raynal depends on MFD_TMIO 199e787be1fSMiquel Raynal help 200e787be1fSMiquel Raynal Support for NAND flash connected to a Toshiba Mobile IO 201e787be1fSMiquel Raynal Controller in some PDAs, including the Sharp SL6000x. 202e787be1fSMiquel Raynal 203e787be1fSMiquel Raynalconfig MTD_NAND_BRCMNAND 204e787be1fSMiquel Raynal tristate "Broadcom STB NAND controller" 205e787be1fSMiquel Raynal depends on ARM || ARM64 || MIPS || COMPILE_TEST 206e787be1fSMiquel Raynal depends on HAS_IOMEM 207e787be1fSMiquel Raynal help 208e787be1fSMiquel Raynal Enables the Broadcom NAND controller driver. The controller was 209e787be1fSMiquel Raynal originally designed for Set-Top Box but is used on various BCM7xxx, 210e787be1fSMiquel Raynal BCM3xxx, BCM63xxx, iProc/Cygnus and more. 211e787be1fSMiquel Raynal 212*feca4cc4SFlorian Fainelliif MTD_NAND_BRCMNAND 213*feca4cc4SFlorian Fainelli 214*feca4cc4SFlorian Fainelliconfig MTD_NAND_BRCMNAND_BCMA 215*feca4cc4SFlorian Fainelli tristate "Broadcom BCMA NAND controller" 216*feca4cc4SFlorian Fainelli depends on BCMA_NFLASH 217*feca4cc4SFlorian Fainelli depends on BCMA 218*feca4cc4SFlorian Fainelli help 219*feca4cc4SFlorian Fainelli Enables the BRCMNAND controller over BCMA on BCM47186/BCM5358 SoCs. 220*feca4cc4SFlorian Fainelli The glue driver will take care of performing the low-level I/O 221*feca4cc4SFlorian Fainelli operations to interface the BRCMNAND controller over the BCMA bus. 222*feca4cc4SFlorian Fainelli 223*feca4cc4SFlorian Fainelliendif # MTD_NAND_BRCMNAND 224*feca4cc4SFlorian Fainelli 225e787be1fSMiquel Raynalconfig MTD_NAND_BCM47XXNFLASH 226e787be1fSMiquel Raynal tristate "BCM4706 BCMA NAND controller" 227e787be1fSMiquel Raynal depends on BCMA_NFLASH 228e787be1fSMiquel Raynal depends on BCMA 229e787be1fSMiquel Raynal help 230e787be1fSMiquel Raynal BCMA bus can have various flash memories attached, they are 231e787be1fSMiquel Raynal registered by bcma as platform devices. This enables driver for 232e787be1fSMiquel Raynal NAND flash memories. For now only BCM4706 is supported. 233e787be1fSMiquel Raynal 234e787be1fSMiquel Raynalconfig MTD_NAND_OXNAS 235e787be1fSMiquel Raynal tristate "Oxford Semiconductor NAND controller" 236e787be1fSMiquel Raynal depends on ARCH_OXNAS || COMPILE_TEST 237e787be1fSMiquel Raynal depends on HAS_IOMEM 238e787be1fSMiquel Raynal help 239e787be1fSMiquel Raynal This enables the NAND flash controller on Oxford Semiconductor SoCs. 240e787be1fSMiquel Raynal 241e787be1fSMiquel Raynalconfig MTD_NAND_MPC5121_NFC 242e787be1fSMiquel Raynal tristate "MPC5121 NAND controller" 243e787be1fSMiquel Raynal depends on PPC_MPC512x 244e787be1fSMiquel Raynal help 245e787be1fSMiquel Raynal This enables the driver for the NAND flash controller on the 246e787be1fSMiquel Raynal MPC5121 SoC. 247e787be1fSMiquel Raynal 248e787be1fSMiquel Raynalconfig MTD_NAND_GPMI_NAND 249e787be1fSMiquel Raynal tristate "Freescale GPMI NAND controller" 250e787be1fSMiquel Raynal depends on MXS_DMA 251e787be1fSMiquel Raynal help 252e787be1fSMiquel Raynal Enables NAND Flash support for IMX23, IMX28 or IMX6. 253e787be1fSMiquel Raynal The GPMI controller is very powerful, with the help of BCH 254e787be1fSMiquel Raynal module, it can do the hardware ECC. The GPMI supports several 255e787be1fSMiquel Raynal NAND flashs at the same time. 256e787be1fSMiquel Raynal 257e787be1fSMiquel Raynalconfig MTD_NAND_FSL_ELBC 258e787be1fSMiquel Raynal tristate "Freescale eLBC NAND controller" 259e787be1fSMiquel Raynal depends on FSL_SOC 260e787be1fSMiquel Raynal select FSL_LBC 261e787be1fSMiquel Raynal help 262e787be1fSMiquel Raynal Various Freescale chips, including the 8313, include a NAND Flash 263e787be1fSMiquel Raynal Controller Module with built-in hardware ECC capabilities. 264e787be1fSMiquel Raynal Enabling this option will enable you to use this to control 265e787be1fSMiquel Raynal external NAND devices. 266e787be1fSMiquel Raynal 267e787be1fSMiquel Raynalconfig MTD_NAND_FSL_IFC 268e787be1fSMiquel Raynal tristate "Freescale IFC NAND controller" 269e787be1fSMiquel Raynal depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST 270e787be1fSMiquel Raynal depends on HAS_IOMEM 271e787be1fSMiquel Raynal select FSL_IFC 272e787be1fSMiquel Raynal select MEMORY 273e787be1fSMiquel Raynal help 274e787be1fSMiquel Raynal Various Freescale chips e.g P1010, include a NAND Flash machine 275e787be1fSMiquel Raynal with built-in hardware ECC capabilities. 276e787be1fSMiquel Raynal Enabling this option will enable you to use this to control 277e787be1fSMiquel Raynal external NAND devices. 278e787be1fSMiquel Raynal 279e787be1fSMiquel Raynalconfig MTD_NAND_FSL_UPM 280e787be1fSMiquel Raynal tristate "Freescale UPM NAND controller" 281e787be1fSMiquel Raynal depends on PPC_83xx || PPC_85xx 282e787be1fSMiquel Raynal select FSL_LBC 283e787be1fSMiquel Raynal help 284e787be1fSMiquel Raynal Enables support for NAND Flash chips wired onto Freescale PowerPC 285e787be1fSMiquel Raynal processor localbus with User-Programmable Machine support. 286e787be1fSMiquel Raynal 287e787be1fSMiquel Raynalconfig MTD_NAND_VF610_NFC 288e787be1fSMiquel Raynal tristate "Freescale VF610/MPC5125 NAND controller" 289e787be1fSMiquel Raynal depends on (SOC_VF610 || COMPILE_TEST) 290e787be1fSMiquel Raynal depends on HAS_IOMEM 291e787be1fSMiquel Raynal help 292e787be1fSMiquel Raynal Enables support for NAND Flash Controller on some Freescale 293e787be1fSMiquel Raynal processors like the VF610, MPC5125, MCF54418 or Kinetis K70. 294e787be1fSMiquel Raynal The driver supports a maximum 2k page size. With 2k pages and 295e787be1fSMiquel Raynal 64 bytes or more of OOB, hardware ECC with up to 32-bit error 296e787be1fSMiquel Raynal correction is supported. Hardware ECC is only enabled through 297e787be1fSMiquel Raynal device tree. 298e787be1fSMiquel Raynal 299e787be1fSMiquel Raynalconfig MTD_NAND_MXC 300e787be1fSMiquel Raynal tristate "Freescale MXC NAND controller" 301e787be1fSMiquel Raynal depends on ARCH_MXC || COMPILE_TEST 3020f6b7919SFabio Estevam depends on HAS_IOMEM && OF 303e787be1fSMiquel Raynal help 304e787be1fSMiquel Raynal This enables the driver for the NAND flash controller on the 305e787be1fSMiquel Raynal MXC processors. 306e787be1fSMiquel Raynal 307e787be1fSMiquel Raynalconfig MTD_NAND_SH_FLCTL 308e787be1fSMiquel Raynal tristate "Renesas SuperH FLCTL NAND controller" 309e787be1fSMiquel Raynal depends on SUPERH || COMPILE_TEST 310e787be1fSMiquel Raynal depends on HAS_IOMEM 311e787be1fSMiquel Raynal help 312e787be1fSMiquel Raynal Several Renesas SuperH CPU has FLCTL. This option enables support 313e787be1fSMiquel Raynal for NAND Flash using FLCTL. 314e787be1fSMiquel Raynal 315e787be1fSMiquel Raynalconfig MTD_NAND_DAVINCI 316e787be1fSMiquel Raynal tristate "DaVinci/Keystone NAND controller" 317e787be1fSMiquel Raynal depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST 318e787be1fSMiquel Raynal depends on HAS_IOMEM 319e787be1fSMiquel Raynal help 320e787be1fSMiquel Raynal Enable the driver for NAND flash chips on Texas Instruments 321e787be1fSMiquel Raynal DaVinci/Keystone processors. 322e787be1fSMiquel Raynal 323e787be1fSMiquel Raynalconfig MTD_NAND_TXX9NDFMC 324e787be1fSMiquel Raynal tristate "TXx9 NAND controller" 325fc5bb239SThomas Bogendoerfer depends on SOC_TX4938 || COMPILE_TEST 326e787be1fSMiquel Raynal depends on HAS_IOMEM 327e787be1fSMiquel Raynal help 328e787be1fSMiquel Raynal This enables the NAND flash controller on the TXx9 SoCs. 329e787be1fSMiquel Raynal 330e787be1fSMiquel Raynalconfig MTD_NAND_SOCRATES 331e787be1fSMiquel Raynal tristate "Socrates NAND controller" 332e787be1fSMiquel Raynal depends on SOCRATES 333e787be1fSMiquel Raynal help 334e787be1fSMiquel Raynal Enables support for NAND Flash chips wired onto Socrates board. 335e787be1fSMiquel Raynal 336e787be1fSMiquel Raynalsource "drivers/mtd/nand/raw/ingenic/Kconfig" 337e787be1fSMiquel Raynal 338e787be1fSMiquel Raynalconfig MTD_NAND_FSMC 339e787be1fSMiquel Raynal tristate "ST Micros FSMC NAND controller" 340e787be1fSMiquel Raynal depends on OF && HAS_IOMEM 341ce1380c9SArnd Bergmann depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || COMPILE_TEST 342e787be1fSMiquel Raynal help 343e787be1fSMiquel Raynal Enables support for NAND Flash chips on the ST Microelectronics 344e787be1fSMiquel Raynal Flexible Static Memory Controller (FSMC) 345e787be1fSMiquel Raynal 346e787be1fSMiquel Raynalconfig MTD_NAND_XWAY 347e787be1fSMiquel Raynal bool "Lantiq XWAY NAND controller" 348e787be1fSMiquel Raynal depends on LANTIQ && SOC_TYPE_XWAY 349e787be1fSMiquel Raynal help 350e787be1fSMiquel Raynal Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached 351e787be1fSMiquel Raynal to the External Bus Unit (EBU). 352e787be1fSMiquel Raynal 353e787be1fSMiquel Raynalconfig MTD_NAND_SUNXI 354e787be1fSMiquel Raynal tristate "Allwinner NAND controller" 355e787be1fSMiquel Raynal depends on ARCH_SUNXI || COMPILE_TEST 356e787be1fSMiquel Raynal depends on HAS_IOMEM 357e787be1fSMiquel Raynal help 358e787be1fSMiquel Raynal Enables support for NAND Flash chips on Allwinner SoCs. 359e787be1fSMiquel Raynal 360e787be1fSMiquel Raynalconfig MTD_NAND_HISI504 361e787be1fSMiquel Raynal tristate "Hisilicon Hip04 NAND controller" 362e787be1fSMiquel Raynal depends on ARCH_HISI || COMPILE_TEST 363e787be1fSMiquel Raynal depends on HAS_IOMEM 364e787be1fSMiquel Raynal help 365e787be1fSMiquel Raynal Enables support for NAND controller on Hisilicon SoC Hip04. 366e787be1fSMiquel Raynal 367e787be1fSMiquel Raynalconfig MTD_NAND_QCOM 368e787be1fSMiquel Raynal tristate "QCOM NAND controller" 369e787be1fSMiquel Raynal depends on ARCH_QCOM || COMPILE_TEST 370e787be1fSMiquel Raynal depends on HAS_IOMEM 371e787be1fSMiquel Raynal help 372e787be1fSMiquel Raynal Enables support for NAND flash chips on SoCs containing the EBI2 NAND 373e787be1fSMiquel Raynal controller. This controller is found on IPQ806x SoC. 374e787be1fSMiquel Raynal 375e787be1fSMiquel Raynalconfig MTD_NAND_MTK 376e787be1fSMiquel Raynal tristate "MTK NAND controller" 377e787be1fSMiquel Raynal depends on ARCH_MEDIATEK || COMPILE_TEST 378e787be1fSMiquel Raynal depends on HAS_IOMEM 379e787be1fSMiquel Raynal help 380e787be1fSMiquel Raynal Enables support for NAND controller on MTK SoCs. 381e787be1fSMiquel Raynal This controller is found on mt27xx, mt81xx, mt65xx SoCs. 382e787be1fSMiquel Raynal 383738b0ca5SMason Yangconfig MTD_NAND_MXIC 384738b0ca5SMason Yang tristate "Macronix raw NAND controller" 385738b0ca5SMason Yang depends on HAS_IOMEM || COMPILE_TEST 386738b0ca5SMason Yang help 387738b0ca5SMason Yang This selects the Macronix raw NAND controller driver. 388738b0ca5SMason Yang 389e787be1fSMiquel Raynalconfig MTD_NAND_TEGRA 390e787be1fSMiquel Raynal tristate "NVIDIA Tegra NAND controller" 391e787be1fSMiquel Raynal depends on ARCH_TEGRA || COMPILE_TEST 392e787be1fSMiquel Raynal depends on HAS_IOMEM 393e787be1fSMiquel Raynal help 394e787be1fSMiquel Raynal Enables support for NAND flash controller on NVIDIA Tegra SoC. 395e787be1fSMiquel Raynal The driver has been developed and tested on a Tegra 2 SoC. DMA 396e787be1fSMiquel Raynal support, raw read/write page as well as HW ECC read/write page 397e787be1fSMiquel Raynal is supported. Extra OOB bytes when using HW ECC are currently 398e787be1fSMiquel Raynal not supported. 399e787be1fSMiquel Raynal 400e787be1fSMiquel Raynalconfig MTD_NAND_STM32_FMC2 401e787be1fSMiquel Raynal tristate "Support for NAND controller on STM32MP SoCs" 402e787be1fSMiquel Raynal depends on MACH_STM32MP157 || COMPILE_TEST 403fbd9b543SChristophe Kerello select MFD_SYSCON 404e787be1fSMiquel Raynal help 405e787be1fSMiquel Raynal Enables support for NAND Flash chips on SoCs containing the FMC2 406e787be1fSMiquel Raynal NAND controller. This controller is found on STM32MP SoCs. 407e787be1fSMiquel Raynal The controller supports a maximum 8k page size and supports 408e787be1fSMiquel Raynal a maximum 8-bit correction error per sector of 512 bytes. 409e787be1fSMiquel Raynal 410e787be1fSMiquel Raynalconfig MTD_NAND_MESON 411e787be1fSMiquel Raynal tristate "Support for NAND controller on Amlogic's Meson SoCs" 412e787be1fSMiquel Raynal depends on ARCH_MESON || COMPILE_TEST 413e787be1fSMiquel Raynal select MFD_SYSCON 414e787be1fSMiquel Raynal help 415e787be1fSMiquel Raynal Enables support for NAND controller on Amlogic's Meson SoCs. 416e787be1fSMiquel Raynal This controller is found on Meson SoCs. 417e787be1fSMiquel Raynal 418e787be1fSMiquel Raynalconfig MTD_NAND_GPIO 419e787be1fSMiquel Raynal tristate "GPIO assisted NAND controller" 420e787be1fSMiquel Raynal depends on GPIOLIB || COMPILE_TEST 421e787be1fSMiquel Raynal depends on HAS_IOMEM 422e787be1fSMiquel Raynal help 423e787be1fSMiquel Raynal This enables a NAND flash driver where control signals are 424e787be1fSMiquel Raynal connected to GPIO pins, and commands and data are communicated 425e787be1fSMiquel Raynal via a memory mapped interface. 426e787be1fSMiquel Raynal 427e787be1fSMiquel Raynalconfig MTD_NAND_PLATFORM 428e787be1fSMiquel Raynal tristate "Generic NAND controller" 429e787be1fSMiquel Raynal depends on HAS_IOMEM 430e787be1fSMiquel Raynal help 431e787be1fSMiquel Raynal This implements a generic NAND driver for on-SOC platform 432e787be1fSMiquel Raynal devices. You will need to provide platform-specific functions 433e787be1fSMiquel Raynal via platform_data. 434e787be1fSMiquel Raynal 435ec4ba01eSPiotr Srokaconfig MTD_NAND_CADENCE 436ec4ba01eSPiotr Sroka tristate "Support Cadence NAND (HPNFC) controller" 437baebaa2bSBrendan Higgins depends on (OF || COMPILE_TEST) && HAS_IOMEM 438ec4ba01eSPiotr Sroka help 439ec4ba01eSPiotr Sroka Enable the driver for NAND flash on platforms using a Cadence NAND 440ec4ba01eSPiotr Sroka controller. 441ec4ba01eSPiotr Sroka 442197b88feSMiquel Raynalconfig MTD_NAND_ARASAN 443197b88feSMiquel Raynal tristate "Support for Arasan NAND flash controller" 444197b88feSMiquel Raynal depends on HAS_IOMEM && HAS_DMA 44588ffef1bSMiquel Raynal select BCH 446197b88feSMiquel Raynal help 447197b88feSMiquel Raynal Enables the driver for the Arasan NAND flash controller on 448197b88feSMiquel Raynal Zynq Ultrascale+ MPSoC. 449197b88feSMiquel Raynal 4500b1039f0SRamuthevar Vadivel Muruganconfig MTD_NAND_INTEL_LGM 4510b1039f0SRamuthevar Vadivel Murugan tristate "Support for NAND controller on Intel LGM SoC" 4520b1039f0SRamuthevar Vadivel Murugan depends on OF || COMPILE_TEST 4530b1039f0SRamuthevar Vadivel Murugan depends on HAS_IOMEM 4540b1039f0SRamuthevar Vadivel Murugan help 4550b1039f0SRamuthevar Vadivel Murugan Enables support for NAND Flash chips on Intel's LGM SoC. 4560b1039f0SRamuthevar Vadivel Murugan NAND flash controller interfaced through the External Bus Unit. 4570b1039f0SRamuthevar Vadivel Murugan 458058e0e84SYifeng Zhaoconfig MTD_NAND_ROCKCHIP 459058e0e84SYifeng Zhao tristate "Rockchip NAND controller" 460058e0e84SYifeng Zhao depends on ARCH_ROCKCHIP && HAS_IOMEM 461058e0e84SYifeng Zhao help 462058e0e84SYifeng Zhao Enables support for NAND controller on Rockchip SoCs. 463058e0e84SYifeng Zhao There are four different versions of NAND FLASH Controllers, 464058e0e84SYifeng Zhao including: 465058e0e84SYifeng Zhao NFC v600: RK2928, RK3066, RK3188 466058e0e84SYifeng Zhao NFC v622: RK3036, RK3128 467058e0e84SYifeng Zhao NFC v800: RK3308, RV1108 468058e0e84SYifeng Zhao NFC v900: PX30, RK3326 469058e0e84SYifeng Zhao 47008d8c621SMiquel Raynalconfig MTD_NAND_PL35X 47108d8c621SMiquel Raynal tristate "ARM PL35X NAND controller" 47208d8c621SMiquel Raynal depends on OF || COMPILE_TEST 47308d8c621SMiquel Raynal depends on PL353_SMC 47408d8c621SMiquel Raynal help 47508d8c621SMiquel Raynal Enables support for PrimeCell SMC PL351 and PL353 NAND 47608d8c621SMiquel Raynal controller found on Zynq7000. 47708d8c621SMiquel Raynal 478d8701fe8SMiquel Raynalconfig MTD_NAND_RENESAS 479d8701fe8SMiquel Raynal tristate "Renesas R-Car Gen3 & RZ/N1 NAND controller" 480d8701fe8SMiquel Raynal depends on ARCH_RENESAS || COMPILE_TEST 481d8701fe8SMiquel Raynal help 482d8701fe8SMiquel Raynal Enables support for the NAND controller found on Renesas R-Car 483d8701fe8SMiquel Raynal Gen3 and RZ/N1 SoC families. 484d8701fe8SMiquel Raynal 485e787be1fSMiquel Raynalcomment "Misc" 486e787be1fSMiquel Raynal 487e787be1fSMiquel Raynalconfig MTD_SM_COMMON 488e787be1fSMiquel Raynal tristate 489e787be1fSMiquel Raynal default n 490e787be1fSMiquel Raynal 491e787be1fSMiquel Raynalconfig MTD_NAND_NANDSIM 492e787be1fSMiquel Raynal tristate "Support for NAND Flash Simulator" 493e787be1fSMiquel Raynal help 494e787be1fSMiquel Raynal The simulator may simulate various NAND flash chips for the 495e787be1fSMiquel Raynal MTD nand layer. 496e787be1fSMiquel Raynal 497e787be1fSMiquel Raynalconfig MTD_NAND_RICOH 498e787be1fSMiquel Raynal tristate "Ricoh xD card reader" 499e787be1fSMiquel Raynal default n 500e787be1fSMiquel Raynal depends on PCI 501e787be1fSMiquel Raynal select MTD_SM_COMMON 502e787be1fSMiquel Raynal help 503e787be1fSMiquel Raynal Enable support for Ricoh R5C852 xD card reader 504c5b9ee9cSColin Ian King You also need to enable either 505e787be1fSMiquel Raynal NAND SSFDC (SmartMedia) read only translation layer' or new 506c5b9ee9cSColin Ian King experimental, readwrite 507e787be1fSMiquel Raynal 'SmartMedia/xD new translation layer' 508e787be1fSMiquel Raynal 50993db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP 51093db446aSBoris Brezillon tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)" 51193db446aSBoris Brezillon depends on HAS_IOMEM 51293db446aSBoris Brezillon select REED_SOLOMON 51393db446aSBoris Brezillon select REED_SOLOMON_DEC16 51493db446aSBoris Brezillon help 51593db446aSBoris Brezillon This is a reimplementation of M-Systems DiskOnChip 2000, 51693db446aSBoris Brezillon Millennium and Millennium Plus as a standard NAND device driver, 51793db446aSBoris Brezillon as opposed to the earlier self-contained MTD device drivers. 51893db446aSBoris Brezillon This should enable, among other things, proper JFFS2 operation on 51993db446aSBoris Brezillon these devices. 52093db446aSBoris Brezillon 52193db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADVANCED 52293db446aSBoris Brezillon bool "Advanced detection options for DiskOnChip" 52393db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 52493db446aSBoris Brezillon help 52593db446aSBoris Brezillon This option allows you to specify nonstandard address at which to 52693db446aSBoris Brezillon probe for a DiskOnChip, or to change the detection options. You 52793db446aSBoris Brezillon are unlikely to need any of this unless you are using LinuxBIOS. 52893db446aSBoris Brezillon Say 'N'. 52993db446aSBoris Brezillon 53093db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADDRESS 53193db446aSBoris Brezillon hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED 53293db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 53393db446aSBoris Brezillon default "0" 534d3691813SMiquel Raynal help 53593db446aSBoris Brezillon By default, the probe for DiskOnChip devices will look for a 53693db446aSBoris Brezillon DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000. 53793db446aSBoris Brezillon This option allows you to specify a single address at which to probe 53893db446aSBoris Brezillon for the device, which is useful if you have other devices in that 53993db446aSBoris Brezillon range which get upset when they are probed. 54093db446aSBoris Brezillon 54193db446aSBoris Brezillon (Note that on PowerPC, the normal probe will only check at 54293db446aSBoris Brezillon 0xE4000000.) 54393db446aSBoris Brezillon 54493db446aSBoris Brezillon Normally, you should leave this set to zero, to allow the probe at 54593db446aSBoris Brezillon the normal addresses. 54693db446aSBoris Brezillon 54793db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_HIGH 54893db446aSBoris Brezillon bool "Probe high addresses" 54993db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED 55093db446aSBoris Brezillon help 55193db446aSBoris Brezillon By default, the probe for DiskOnChip devices will look for a 55293db446aSBoris Brezillon DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000. 55393db446aSBoris Brezillon This option changes to make it probe between 0xFFFC8000 and 55493db446aSBoris Brezillon 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be 55593db446aSBoris Brezillon useful to you. Say 'N'. 55693db446aSBoris Brezillon 55793db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_BBTWRITE 55893db446aSBoris Brezillon bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP" 55993db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 56093db446aSBoris Brezillon help 56193db446aSBoris Brezillon On DiskOnChip devices shipped with the INFTL filesystem (Millennium 56293db446aSBoris Brezillon and 2000 TSOP/Alon), Linux reserves some space at the end of the 56393db446aSBoris Brezillon device for the Bad Block Table (BBT). If you have existing INFTL 56493db446aSBoris Brezillon data on your device (created by non-Linux tools such as M-Systems' 56593db446aSBoris Brezillon DOS drivers), your data might overlap the area Linux wants to use for 56693db446aSBoris Brezillon the BBT. If this is a concern for you, leave this option disabled and 56793db446aSBoris Brezillon Linux will not write BBT data into this area. 56893db446aSBoris Brezillon The downside of leaving this option disabled is that if bad blocks 56993db446aSBoris Brezillon are detected by Linux, they will not be recorded in the BBT, which 57093db446aSBoris Brezillon could cause future problems. 57193db446aSBoris Brezillon Once you enable this option, new filesystems (INFTL or others, created 57293db446aSBoris Brezillon in Linux or other operating systems) will not use the reserved area. 57393db446aSBoris Brezillon The only reason not to enable this option is to prevent damage to 57493db446aSBoris Brezillon preexisting filesystems. 57593db446aSBoris Brezillon Even if you leave this disabled, you can enable BBT writes at module 57693db446aSBoris Brezillon load time (assuming you build diskonchip as a module) with the module 57793db446aSBoris Brezillon parameter "inftl_bbt_write=1". 57893db446aSBoris Brezillon 57972c5af00SMiquel Raynalendif # MTD_RAW_NAND 580