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