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 3791b7163bSKrzysztof Kozlowski default MACH_AMS_DELTA 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 4542da5a4bSRoger Quadros depends on OMAP_GPMC 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 80e787be1fSMiquel Raynalconfig MTD_NAND_SHARPSL 81e787be1fSMiquel Raynal tristate "Sharp SL Series (C7xx + others) NAND controller" 82e787be1fSMiquel Raynal depends on ARCH_PXA || COMPILE_TEST 83e787be1fSMiquel Raynal depends on HAS_IOMEM 84e787be1fSMiquel Raynal 85e787be1fSMiquel Raynalconfig MTD_NAND_CAFE 86e787be1fSMiquel Raynal tristate "OLPC CAFÉ NAND controller" 87e787be1fSMiquel Raynal depends on PCI 88e787be1fSMiquel Raynal select REED_SOLOMON 89e787be1fSMiquel Raynal select REED_SOLOMON_DEC16 90e787be1fSMiquel Raynal help 91e787be1fSMiquel Raynal Use NAND flash attached to the CAFÉ chip designed for the OLPC 92e787be1fSMiquel Raynal laptop. 93e787be1fSMiquel Raynal 94e787be1fSMiquel Raynalconfig MTD_NAND_CS553X 95e787be1fSMiquel Raynal tristate "CS5535/CS5536 (AMD Geode companion) NAND controller" 96e787be1fSMiquel Raynal depends on X86_32 97e787be1fSMiquel Raynal depends on !UML && HAS_IOMEM 98e787be1fSMiquel Raynal help 99e787be1fSMiquel Raynal The CS553x companion chips for the AMD Geode processor 100e787be1fSMiquel Raynal include NAND flash controllers with built-in hardware ECC 101e787be1fSMiquel Raynal capabilities; enabling this option will allow you to use 102e787be1fSMiquel Raynal these. The driver will check the MSRs to verify that the 103e787be1fSMiquel Raynal controller is enabled for NAND, and currently requires that 104e787be1fSMiquel Raynal the controller be in MMIO mode. 105e787be1fSMiquel Raynal 106e787be1fSMiquel Raynal If you say "m", the module will be called cs553x_nand. 107e787be1fSMiquel Raynal 108e787be1fSMiquel Raynalconfig MTD_NAND_ATMEL 109e787be1fSMiquel Raynal tristate "Atmel AT91 NAND Flash/SmartMedia NAND controller" 110e787be1fSMiquel Raynal depends on ARCH_AT91 || COMPILE_TEST 111e787be1fSMiquel Raynal depends on HAS_IOMEM 112e787be1fSMiquel Raynal select GENERIC_ALLOCATOR 113e787be1fSMiquel Raynal select MFD_ATMEL_SMC 114e787be1fSMiquel Raynal help 115e787be1fSMiquel Raynal Enables support for NAND Flash / Smart Media Card interface 116e787be1fSMiquel Raynal on Atmel AT91 processors. 117e787be1fSMiquel Raynal 118e787be1fSMiquel Raynalconfig MTD_NAND_ORION 119e787be1fSMiquel Raynal tristate "Marvell Orion NAND controller" 120e787be1fSMiquel Raynal depends on PLAT_ORION 121e787be1fSMiquel Raynal help 122e787be1fSMiquel Raynal This enables the NAND flash controller on Orion machines. 123e787be1fSMiquel Raynal 124e787be1fSMiquel Raynal No board specific support is done by this driver, each board 125e787be1fSMiquel Raynal must advertise a platform_device for the driver to attach. 126e787be1fSMiquel Raynal 127e787be1fSMiquel Raynalconfig MTD_NAND_MARVELL 128e787be1fSMiquel Raynal tristate "Marvell EBU NAND controller" 129e787be1fSMiquel Raynal depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \ 130e787be1fSMiquel Raynal COMPILE_TEST 131e787be1fSMiquel Raynal depends on HAS_IOMEM 132e787be1fSMiquel Raynal help 133e787be1fSMiquel Raynal This enables the NAND flash controller driver for Marvell boards, 134e787be1fSMiquel Raynal including: 135e787be1fSMiquel Raynal - PXA3xx processors (NFCv1) 136e787be1fSMiquel Raynal - 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2) 13772b9a3fcSChris Packham - 64-bit Aramda platforms (7k, 8k, ac5) (NFCv2) 138e787be1fSMiquel Raynal 139e787be1fSMiquel Raynalconfig MTD_NAND_SLC_LPC32XX 140e787be1fSMiquel Raynal tristate "NXP LPC32xx SLC NAND controller" 141e787be1fSMiquel Raynal depends on ARCH_LPC32XX || COMPILE_TEST 142e787be1fSMiquel Raynal depends on HAS_IOMEM 143e787be1fSMiquel Raynal help 144e787be1fSMiquel Raynal Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell 145e787be1fSMiquel Raynal chips) NAND controller. This is the default for the PHYTEC 3250 146e787be1fSMiquel Raynal reference board which contains a NAND256R3A2CZA6 chip. 147e787be1fSMiquel Raynal 148e787be1fSMiquel Raynal Please check the actual NAND chip connected and its support 149e787be1fSMiquel Raynal by the SLC NAND controller. 150e787be1fSMiquel Raynal 151e787be1fSMiquel Raynalconfig MTD_NAND_MLC_LPC32XX 152e787be1fSMiquel Raynal tristate "NXP LPC32xx MLC NAND controller" 153e787be1fSMiquel Raynal depends on ARCH_LPC32XX || COMPILE_TEST 154e787be1fSMiquel Raynal depends on HAS_IOMEM 155e787be1fSMiquel Raynal help 156e787be1fSMiquel Raynal Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND 157e787be1fSMiquel Raynal controller. This is the default for the WORK92105 controller 158e787be1fSMiquel Raynal board. 159e787be1fSMiquel Raynal 160e787be1fSMiquel Raynal Please check the actual NAND chip connected and its support 161e787be1fSMiquel Raynal by the MLC NAND controller. 162e787be1fSMiquel Raynal 163e787be1fSMiquel Raynalconfig MTD_NAND_PASEMI 164e787be1fSMiquel Raynal tristate "PA Semi PWRficient NAND controller" 165e787be1fSMiquel Raynal depends on PPC_PASEMI 166e787be1fSMiquel Raynal help 167e787be1fSMiquel Raynal Enables support for NAND Flash interface on PA Semi PWRficient 168e787be1fSMiquel Raynal based boards 169e787be1fSMiquel Raynal 1701dd4fd87SFlorian Fainellisource "drivers/mtd/nand/raw/brcmnand/Kconfig" 171feca4cc4SFlorian Fainelli 172e787be1fSMiquel Raynalconfig MTD_NAND_BCM47XXNFLASH 173e787be1fSMiquel Raynal tristate "BCM4706 BCMA NAND controller" 174e787be1fSMiquel Raynal depends on BCMA_NFLASH 175e787be1fSMiquel Raynal depends on BCMA 176e787be1fSMiquel Raynal help 177e787be1fSMiquel Raynal BCMA bus can have various flash memories attached, they are 178e787be1fSMiquel Raynal registered by bcma as platform devices. This enables driver for 179e787be1fSMiquel Raynal NAND flash memories. For now only BCM4706 is supported. 180e787be1fSMiquel Raynal 181e787be1fSMiquel Raynalconfig MTD_NAND_MPC5121_NFC 182e787be1fSMiquel Raynal tristate "MPC5121 NAND controller" 183e787be1fSMiquel Raynal depends on PPC_MPC512x 184e787be1fSMiquel Raynal help 185e787be1fSMiquel Raynal This enables the driver for the NAND flash controller on the 186e787be1fSMiquel Raynal MPC5121 SoC. 187e787be1fSMiquel Raynal 188e787be1fSMiquel Raynalconfig MTD_NAND_GPMI_NAND 189e787be1fSMiquel Raynal tristate "Freescale GPMI NAND controller" 190e787be1fSMiquel Raynal depends on MXS_DMA 191e787be1fSMiquel Raynal help 192e787be1fSMiquel Raynal Enables NAND Flash support for IMX23, IMX28 or IMX6. 193e787be1fSMiquel Raynal The GPMI controller is very powerful, with the help of BCH 194e787be1fSMiquel Raynal module, it can do the hardware ECC. The GPMI supports several 195e787be1fSMiquel Raynal NAND flashs at the same time. 196e787be1fSMiquel Raynal 197e787be1fSMiquel Raynalconfig MTD_NAND_FSL_ELBC 198e787be1fSMiquel Raynal tristate "Freescale eLBC NAND controller" 199e787be1fSMiquel Raynal depends on FSL_SOC 200e787be1fSMiquel Raynal select FSL_LBC 201e787be1fSMiquel Raynal help 202e787be1fSMiquel Raynal Various Freescale chips, including the 8313, include a NAND Flash 203e787be1fSMiquel Raynal Controller Module with built-in hardware ECC capabilities. 204e787be1fSMiquel Raynal Enabling this option will enable you to use this to control 205e787be1fSMiquel Raynal external NAND devices. 206e787be1fSMiquel Raynal 207e787be1fSMiquel Raynalconfig MTD_NAND_FSL_IFC 208e787be1fSMiquel Raynal tristate "Freescale IFC NAND controller" 209e787be1fSMiquel Raynal depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST 210e787be1fSMiquel Raynal depends on HAS_IOMEM 2119ba0cae3SEsben Haabendal depends on FSL_IFC 212e787be1fSMiquel Raynal help 213e787be1fSMiquel Raynal Various Freescale chips e.g P1010, include a NAND Flash machine 214e787be1fSMiquel Raynal with built-in hardware ECC capabilities. 215e787be1fSMiquel Raynal Enabling this option will enable you to use this to control 216e787be1fSMiquel Raynal external NAND devices. 217e787be1fSMiquel Raynal 218e787be1fSMiquel Raynalconfig MTD_NAND_FSL_UPM 219e787be1fSMiquel Raynal tristate "Freescale UPM NAND controller" 220e787be1fSMiquel Raynal depends on PPC_83xx || PPC_85xx 221e787be1fSMiquel Raynal select FSL_LBC 222e787be1fSMiquel Raynal help 223e787be1fSMiquel Raynal Enables support for NAND Flash chips wired onto Freescale PowerPC 224e787be1fSMiquel Raynal processor localbus with User-Programmable Machine support. 225e787be1fSMiquel Raynal 226e787be1fSMiquel Raynalconfig MTD_NAND_VF610_NFC 227e787be1fSMiquel Raynal tristate "Freescale VF610/MPC5125 NAND controller" 228e787be1fSMiquel Raynal depends on (SOC_VF610 || COMPILE_TEST) 229e787be1fSMiquel Raynal depends on HAS_IOMEM 230e787be1fSMiquel Raynal help 231e787be1fSMiquel Raynal Enables support for NAND Flash Controller on some Freescale 232e787be1fSMiquel Raynal processors like the VF610, MPC5125, MCF54418 or Kinetis K70. 233e787be1fSMiquel Raynal The driver supports a maximum 2k page size. With 2k pages and 234e787be1fSMiquel Raynal 64 bytes or more of OOB, hardware ECC with up to 32-bit error 235e787be1fSMiquel Raynal correction is supported. Hardware ECC is only enabled through 236e787be1fSMiquel Raynal device tree. 237e787be1fSMiquel Raynal 238e787be1fSMiquel Raynalconfig MTD_NAND_MXC 239e787be1fSMiquel Raynal tristate "Freescale MXC NAND controller" 240e787be1fSMiquel Raynal depends on ARCH_MXC || COMPILE_TEST 2410f6b7919SFabio Estevam depends on HAS_IOMEM && OF 242e787be1fSMiquel Raynal help 243e787be1fSMiquel Raynal This enables the driver for the NAND flash controller on the 244e787be1fSMiquel Raynal MXC processors. 245e787be1fSMiquel Raynal 246e787be1fSMiquel Raynalconfig MTD_NAND_SH_FLCTL 247e787be1fSMiquel Raynal tristate "Renesas SuperH FLCTL NAND controller" 248e787be1fSMiquel Raynal depends on SUPERH || COMPILE_TEST 249e787be1fSMiquel Raynal depends on HAS_IOMEM 250e787be1fSMiquel Raynal help 251e787be1fSMiquel Raynal Several Renesas SuperH CPU has FLCTL. This option enables support 252e787be1fSMiquel Raynal for NAND Flash using FLCTL. 253e787be1fSMiquel Raynal 254e787be1fSMiquel Raynalconfig MTD_NAND_DAVINCI 255e787be1fSMiquel Raynal tristate "DaVinci/Keystone NAND controller" 256ea11788dSBastien Curutchet depends on COMPILE_TEST || ARCH_DAVINCI || ARCH_KEYSTONE 257ea11788dSBastien Curutchet depends on HAS_IOMEM && TI_AEMIF 258e787be1fSMiquel Raynal help 259e787be1fSMiquel Raynal Enable the driver for NAND flash chips on Texas Instruments 260e787be1fSMiquel Raynal DaVinci/Keystone processors. 261e787be1fSMiquel Raynal 262e787be1fSMiquel Raynalconfig MTD_NAND_TXX9NDFMC 263e787be1fSMiquel Raynal tristate "TXx9 NAND controller" 264fc5bb239SThomas Bogendoerfer depends on SOC_TX4938 || COMPILE_TEST 265e787be1fSMiquel Raynal depends on HAS_IOMEM 266e787be1fSMiquel Raynal help 267e787be1fSMiquel Raynal This enables the NAND flash controller on the TXx9 SoCs. 268e787be1fSMiquel Raynal 269e787be1fSMiquel Raynalconfig MTD_NAND_SOCRATES 270e787be1fSMiquel Raynal tristate "Socrates NAND controller" 271e787be1fSMiquel Raynal depends on SOCRATES 272e787be1fSMiquel Raynal help 273e787be1fSMiquel Raynal Enables support for NAND Flash chips wired onto Socrates board. 274e787be1fSMiquel Raynal 275e787be1fSMiquel Raynalsource "drivers/mtd/nand/raw/ingenic/Kconfig" 276e787be1fSMiquel Raynal 277e787be1fSMiquel Raynalconfig MTD_NAND_FSMC 278e787be1fSMiquel Raynal tristate "ST Micros FSMC NAND controller" 279e787be1fSMiquel Raynal depends on OF && HAS_IOMEM 280ce1380c9SArnd Bergmann depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || COMPILE_TEST 281e787be1fSMiquel Raynal help 282e787be1fSMiquel Raynal Enables support for NAND Flash chips on the ST Microelectronics 283e787be1fSMiquel Raynal Flexible Static Memory Controller (FSMC) 284e787be1fSMiquel Raynal 285e787be1fSMiquel Raynalconfig MTD_NAND_XWAY 286e787be1fSMiquel Raynal bool "Lantiq XWAY NAND controller" 287e787be1fSMiquel Raynal depends on LANTIQ && SOC_TYPE_XWAY 288e787be1fSMiquel Raynal help 289e787be1fSMiquel Raynal Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached 290e787be1fSMiquel Raynal to the External Bus Unit (EBU). 291e787be1fSMiquel Raynal 292e787be1fSMiquel Raynalconfig MTD_NAND_SUNXI 293e787be1fSMiquel Raynal tristate "Allwinner NAND controller" 294e787be1fSMiquel Raynal depends on ARCH_SUNXI || COMPILE_TEST 295e787be1fSMiquel Raynal depends on HAS_IOMEM 296e787be1fSMiquel Raynal help 297e787be1fSMiquel Raynal Enables support for NAND Flash chips on Allwinner SoCs. 298e787be1fSMiquel Raynal 299e787be1fSMiquel Raynalconfig MTD_NAND_HISI504 300e787be1fSMiquel Raynal tristate "Hisilicon Hip04 NAND controller" 301e787be1fSMiquel Raynal depends on ARCH_HISI || COMPILE_TEST 302e787be1fSMiquel Raynal depends on HAS_IOMEM 303e787be1fSMiquel Raynal help 304e787be1fSMiquel Raynal Enables support for NAND controller on Hisilicon SoC Hip04. 305e787be1fSMiquel Raynal 306e787be1fSMiquel Raynalconfig MTD_NAND_QCOM 307e787be1fSMiquel Raynal tristate "QCOM NAND controller" 308e787be1fSMiquel Raynal depends on ARCH_QCOM || COMPILE_TEST 309e787be1fSMiquel Raynal depends on HAS_IOMEM 310e787be1fSMiquel Raynal help 311e787be1fSMiquel Raynal Enables support for NAND flash chips on SoCs containing the EBI2 NAND 312e787be1fSMiquel Raynal controller. This controller is found on IPQ806x SoC. 313e787be1fSMiquel Raynal 314e787be1fSMiquel Raynalconfig MTD_NAND_MTK 315e787be1fSMiquel Raynal tristate "MTK NAND controller" 3164fd62f15SChuanhong Guo depends on MTD_NAND_ECC_MEDIATEK 317e787be1fSMiquel Raynal depends on ARCH_MEDIATEK || COMPILE_TEST 318e787be1fSMiquel Raynal depends on HAS_IOMEM 319e787be1fSMiquel Raynal help 320e787be1fSMiquel Raynal Enables support for NAND controller on MTK SoCs. 321e787be1fSMiquel Raynal This controller is found on mt27xx, mt81xx, mt65xx SoCs. 322e787be1fSMiquel Raynal 323738b0ca5SMason Yangconfig MTD_NAND_MXIC 324738b0ca5SMason Yang tristate "Macronix raw NAND controller" 325738b0ca5SMason Yang depends on HAS_IOMEM || COMPILE_TEST 326738b0ca5SMason Yang help 327738b0ca5SMason Yang This selects the Macronix raw NAND controller driver. 328738b0ca5SMason Yang 329e787be1fSMiquel Raynalconfig MTD_NAND_TEGRA 330e787be1fSMiquel Raynal tristate "NVIDIA Tegra NAND controller" 331e787be1fSMiquel Raynal depends on ARCH_TEGRA || COMPILE_TEST 332e787be1fSMiquel Raynal depends on HAS_IOMEM 333e787be1fSMiquel Raynal help 334e787be1fSMiquel Raynal Enables support for NAND flash controller on NVIDIA Tegra SoC. 335e787be1fSMiquel Raynal The driver has been developed and tested on a Tegra 2 SoC. DMA 336e787be1fSMiquel Raynal support, raw read/write page as well as HW ECC read/write page 337e787be1fSMiquel Raynal is supported. Extra OOB bytes when using HW ECC are currently 338e787be1fSMiquel Raynal not supported. 339e787be1fSMiquel Raynal 340e787be1fSMiquel Raynalconfig MTD_NAND_STM32_FMC2 341e787be1fSMiquel Raynal tristate "Support for NAND controller on STM32MP SoCs" 342bb685c1fSChristophe Kerello depends on ARCH_STM32 || COMPILE_TEST 343fbd9b543SChristophe Kerello select MFD_SYSCON 344e787be1fSMiquel Raynal help 345e787be1fSMiquel Raynal Enables support for NAND Flash chips on SoCs containing the FMC2 346e787be1fSMiquel Raynal NAND controller. This controller is found on STM32MP SoCs. 347e787be1fSMiquel Raynal The controller supports a maximum 8k page size and supports 348e787be1fSMiquel Raynal a maximum 8-bit correction error per sector of 512 bytes. 349e787be1fSMiquel Raynal 350e787be1fSMiquel Raynalconfig MTD_NAND_MESON 351e787be1fSMiquel Raynal tristate "Support for NAND controller on Amlogic's Meson SoCs" 352ba47a6acSLiang Yang depends on COMMON_CLK && (ARCH_MESON || COMPILE_TEST) 353e787be1fSMiquel Raynal select MFD_SYSCON 354e787be1fSMiquel Raynal help 355e787be1fSMiquel Raynal Enables support for NAND controller on Amlogic's Meson SoCs. 356e787be1fSMiquel Raynal This controller is found on Meson SoCs. 357e787be1fSMiquel Raynal 358e787be1fSMiquel Raynalconfig MTD_NAND_GPIO 359e787be1fSMiquel Raynal tristate "GPIO assisted NAND controller" 360e787be1fSMiquel Raynal depends on GPIOLIB || COMPILE_TEST 361e787be1fSMiquel Raynal depends on HAS_IOMEM 362e787be1fSMiquel Raynal help 363e787be1fSMiquel Raynal This enables a NAND flash driver where control signals are 364e787be1fSMiquel Raynal connected to GPIO pins, and commands and data are communicated 365e787be1fSMiquel Raynal via a memory mapped interface. 366e787be1fSMiquel Raynal 367e787be1fSMiquel Raynalconfig MTD_NAND_PLATFORM 368e787be1fSMiquel Raynal tristate "Generic NAND controller" 369e787be1fSMiquel Raynal depends on HAS_IOMEM 370e787be1fSMiquel Raynal help 371e787be1fSMiquel Raynal This implements a generic NAND driver for on-SOC platform 372e787be1fSMiquel Raynal devices. You will need to provide platform-specific functions 373e787be1fSMiquel Raynal via platform_data. 374e787be1fSMiquel Raynal 375ec4ba01eSPiotr Srokaconfig MTD_NAND_CADENCE 376ec4ba01eSPiotr Sroka tristate "Support Cadence NAND (HPNFC) controller" 3776408cc05SJean Delvare depends on OF && HAS_IOMEM 378ec4ba01eSPiotr Sroka help 379ec4ba01eSPiotr Sroka Enable the driver for NAND flash on platforms using a Cadence NAND 380ec4ba01eSPiotr Sroka controller. 381ec4ba01eSPiotr Sroka 382197b88feSMiquel Raynalconfig MTD_NAND_ARASAN 383197b88feSMiquel Raynal tristate "Support for Arasan NAND flash controller" 384197b88feSMiquel Raynal depends on HAS_IOMEM && HAS_DMA 38588ffef1bSMiquel Raynal select BCH 386197b88feSMiquel Raynal help 387197b88feSMiquel Raynal Enables the driver for the Arasan NAND flash controller on 388197b88feSMiquel Raynal Zynq Ultrascale+ MPSoC. 389197b88feSMiquel Raynal 3900b1039f0SRamuthevar Vadivel Muruganconfig MTD_NAND_INTEL_LGM 3910b1039f0SRamuthevar Vadivel Murugan tristate "Support for NAND controller on Intel LGM SoC" 3926408cc05SJean Delvare depends on OF 3930b1039f0SRamuthevar Vadivel Murugan depends on HAS_IOMEM 3940b1039f0SRamuthevar Vadivel Murugan help 3950b1039f0SRamuthevar Vadivel Murugan Enables support for NAND Flash chips on Intel's LGM SoC. 3960b1039f0SRamuthevar Vadivel Murugan NAND flash controller interfaced through the External Bus Unit. 3970b1039f0SRamuthevar Vadivel Murugan 398058e0e84SYifeng Zhaoconfig MTD_NAND_ROCKCHIP 399058e0e84SYifeng Zhao tristate "Rockchip NAND controller" 400058e0e84SYifeng Zhao depends on ARCH_ROCKCHIP && HAS_IOMEM 401058e0e84SYifeng Zhao help 402058e0e84SYifeng Zhao Enables support for NAND controller on Rockchip SoCs. 403058e0e84SYifeng Zhao There are four different versions of NAND FLASH Controllers, 404058e0e84SYifeng Zhao including: 405058e0e84SYifeng Zhao NFC v600: RK2928, RK3066, RK3188 406058e0e84SYifeng Zhao NFC v622: RK3036, RK3128 407058e0e84SYifeng Zhao NFC v800: RK3308, RV1108 408058e0e84SYifeng Zhao NFC v900: PX30, RK3326 409058e0e84SYifeng Zhao 41008d8c621SMiquel Raynalconfig MTD_NAND_PL35X 41108d8c621SMiquel Raynal tristate "ARM PL35X NAND controller" 4126408cc05SJean Delvare depends on OF 41308d8c621SMiquel Raynal depends on PL353_SMC 41408d8c621SMiquel Raynal help 41508d8c621SMiquel Raynal Enables support for PrimeCell SMC PL351 and PL353 NAND 41608d8c621SMiquel Raynal controller found on Zynq7000. 41708d8c621SMiquel Raynal 418d8701fe8SMiquel Raynalconfig MTD_NAND_RENESAS 419d8701fe8SMiquel Raynal tristate "Renesas R-Car Gen3 & RZ/N1 NAND controller" 420d8701fe8SMiquel Raynal depends on ARCH_RENESAS || COMPILE_TEST 421d8701fe8SMiquel Raynal help 422d8701fe8SMiquel Raynal Enables support for the NAND controller found on Renesas R-Car 423d8701fe8SMiquel Raynal Gen3 and RZ/N1 SoC families. 424d8701fe8SMiquel Raynal 425853034c7SNikita Shubinconfig MTD_NAND_TS72XX 426853034c7SNikita Shubin tristate "ts72xx NAND controller" 427853034c7SNikita Shubin depends on ARCH_EP93XX && HAS_IOMEM 428853034c7SNikita Shubin help 429853034c7SNikita Shubin Enables support for NAND controller on ts72xx SBCs. 430853034c7SNikita Shubin 4315abb5d41SHui-Ping Chenconfig MTD_NAND_NUVOTON_MA35 4325abb5d41SHui-Ping Chen tristate "Nuvoton MA35 SoC NAND controller" 4335abb5d41SHui-Ping Chen depends on ARCH_MA35 || COMPILE_TEST 4345abb5d41SHui-Ping Chen depends on OF 4355abb5d41SHui-Ping Chen help 4365abb5d41SHui-Ping Chen Enables support for the NAND controller found on 4375abb5d41SHui-Ping Chen the Nuvoton MA35 series SoCs. 4385abb5d41SHui-Ping Chen 4397a1e3a45SBinbin Zhouconfig MTD_NAND_LOONGSON 4407a1e3a45SBinbin Zhou tristate "Loongson NAND controller" 441*e55bbdd4SBinbin Zhou depends on LOONGSON1_APB_DMA || LOONGSON2_APB_DMA || COMPILE_TEST 442d2d10edeSKeguang Zhang select REGMAP_MMIO 443d2d10edeSKeguang Zhang help 4447a1e3a45SBinbin Zhou Enables support for NAND controller on Loongson family chips. 445d2d10edeSKeguang Zhang 446e787be1fSMiquel Raynalcomment "Misc" 447e787be1fSMiquel Raynal 448e787be1fSMiquel Raynalconfig MTD_SM_COMMON 449e787be1fSMiquel Raynal tristate 450e787be1fSMiquel Raynal default n 451e787be1fSMiquel Raynal 452e787be1fSMiquel Raynalconfig MTD_NAND_NANDSIM 453e787be1fSMiquel Raynal tristate "Support for NAND Flash Simulator" 454e787be1fSMiquel Raynal help 455e787be1fSMiquel Raynal The simulator may simulate various NAND flash chips for the 456e787be1fSMiquel Raynal MTD nand layer. 457e787be1fSMiquel Raynal 458e787be1fSMiquel Raynalconfig MTD_NAND_RICOH 459e787be1fSMiquel Raynal tristate "Ricoh xD card reader" 460e787be1fSMiquel Raynal default n 461e787be1fSMiquel Raynal depends on PCI 462e787be1fSMiquel Raynal select MTD_SM_COMMON 463e787be1fSMiquel Raynal help 464e787be1fSMiquel Raynal Enable support for Ricoh R5C852 xD card reader 465c5b9ee9cSColin Ian King You also need to enable either 466e787be1fSMiquel Raynal NAND SSFDC (SmartMedia) read only translation layer' or new 467c5b9ee9cSColin Ian King experimental, readwrite 468e787be1fSMiquel Raynal 'SmartMedia/xD new translation layer' 469e787be1fSMiquel Raynal 47093db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP 47193db446aSBoris Brezillon tristate "DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplementation)" 47293db446aSBoris Brezillon depends on HAS_IOMEM 47393db446aSBoris Brezillon select REED_SOLOMON 47493db446aSBoris Brezillon select REED_SOLOMON_DEC16 47593db446aSBoris Brezillon help 47693db446aSBoris Brezillon This is a reimplementation of M-Systems DiskOnChip 2000, 47793db446aSBoris Brezillon Millennium and Millennium Plus as a standard NAND device driver, 47893db446aSBoris Brezillon as opposed to the earlier self-contained MTD device drivers. 47993db446aSBoris Brezillon This should enable, among other things, proper JFFS2 operation on 48093db446aSBoris Brezillon these devices. 48193db446aSBoris Brezillon 48293db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADVANCED 48393db446aSBoris Brezillon bool "Advanced detection options for DiskOnChip" 48493db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 48593db446aSBoris Brezillon help 48693db446aSBoris Brezillon This option allows you to specify nonstandard address at which to 48793db446aSBoris Brezillon probe for a DiskOnChip, or to change the detection options. You 48893db446aSBoris Brezillon are unlikely to need any of this unless you are using LinuxBIOS. 48993db446aSBoris Brezillon Say 'N'. 49093db446aSBoris Brezillon 49193db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_ADDRESS 49293db446aSBoris Brezillon hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED 49393db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 49493db446aSBoris Brezillon default "0" 495d3691813SMiquel Raynal help 49693db446aSBoris Brezillon By default, the probe for DiskOnChip devices will look for a 49793db446aSBoris Brezillon DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000. 49893db446aSBoris Brezillon This option allows you to specify a single address at which to probe 49993db446aSBoris Brezillon for the device, which is useful if you have other devices in that 50093db446aSBoris Brezillon range which get upset when they are probed. 50193db446aSBoris Brezillon 50293db446aSBoris Brezillon (Note that on PowerPC, the normal probe will only check at 50393db446aSBoris Brezillon 0xE4000000.) 50493db446aSBoris Brezillon 50593db446aSBoris Brezillon Normally, you should leave this set to zero, to allow the probe at 50693db446aSBoris Brezillon the normal addresses. 50793db446aSBoris Brezillon 50893db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_PROBE_HIGH 50993db446aSBoris Brezillon bool "Probe high addresses" 51093db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED 51193db446aSBoris Brezillon help 51293db446aSBoris Brezillon By default, the probe for DiskOnChip devices will look for a 51393db446aSBoris Brezillon DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000. 51493db446aSBoris Brezillon This option changes to make it probe between 0xFFFC8000 and 51593db446aSBoris Brezillon 0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be 51693db446aSBoris Brezillon useful to you. Say 'N'. 51793db446aSBoris Brezillon 51893db446aSBoris Brezillonconfig MTD_NAND_DISKONCHIP_BBTWRITE 51993db446aSBoris Brezillon bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP" 52093db446aSBoris Brezillon depends on MTD_NAND_DISKONCHIP 52193db446aSBoris Brezillon help 52293db446aSBoris Brezillon On DiskOnChip devices shipped with the INFTL filesystem (Millennium 52393db446aSBoris Brezillon and 2000 TSOP/Alon), Linux reserves some space at the end of the 52493db446aSBoris Brezillon device for the Bad Block Table (BBT). If you have existing INFTL 52593db446aSBoris Brezillon data on your device (created by non-Linux tools such as M-Systems' 52693db446aSBoris Brezillon DOS drivers), your data might overlap the area Linux wants to use for 52793db446aSBoris Brezillon the BBT. If this is a concern for you, leave this option disabled and 52893db446aSBoris Brezillon Linux will not write BBT data into this area. 52993db446aSBoris Brezillon The downside of leaving this option disabled is that if bad blocks 53093db446aSBoris Brezillon are detected by Linux, they will not be recorded in the BBT, which 53193db446aSBoris Brezillon could cause future problems. 53293db446aSBoris Brezillon Once you enable this option, new filesystems (INFTL or others, created 53393db446aSBoris Brezillon in Linux or other operating systems) will not use the reserved area. 53493db446aSBoris Brezillon The only reason not to enable this option is to prevent damage to 53593db446aSBoris Brezillon preexisting filesystems. 53693db446aSBoris Brezillon Even if you leave this disabled, you can enable BBT writes at module 53793db446aSBoris Brezillon load time (assuming you build diskonchip as a module) with the module 53893db446aSBoris Brezillon parameter "inftl_bbt_write=1". 53993db446aSBoris Brezillon 54072c5af00SMiquel Raynalendif # MTD_RAW_NAND 541