1# SPDX-License-Identifier: GPL-2.0-only 2# 3# MMC/SD host controller drivers 4# 5 6comment "MMC/SD/SDIO Host Controller Drivers" 7 8config MMC_DEBUG 9 bool "MMC host drivers debugging" 10 depends on MMC != n 11 help 12 This is an option for use by developers; most people should 13 say N here. This enables MMC host driver debugging. And further 14 added host drivers please don't invent their private macro for 15 debugging. 16 17config MMC_ARMMMCI 18 tristate "ARM AMBA Multimedia Card Interface support" 19 depends on ARM_AMBA 20 help 21 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card 22 Interface (PL180 and PL181) support. If you have an ARM(R) 23 platform with a Multimedia Card slot, say Y or M here. 24 25 If unsure, say N. 26 27config MMC_QCOM_DML 28 bool "Qualcomm Data Mover for SD Card Controller" 29 depends on MMC_ARMMMCI && QCOM_BAM_DMA 30 default y 31 help 32 This selects the Qualcomm Data Mover lite/local on SD Card controller. 33 This option will enable the dma to work correctly, if you are using 34 Qcom SOCs and MMC, you would probably need this option to get DMA working. 35 36 if unsure, say N. 37 38config MMC_STM32_SDMMC 39 bool "STMicroelectronics STM32 SDMMC Controller" 40 depends on MMC_ARMMMCI 41 default y 42 help 43 This selects the STMicroelectronics STM32 SDMMC host controller. 44 If you have a STM32 sdmmc host with internal DMA say Y here. 45 46 If unsure, say N. 47 48config MMC_PXA 49 tristate "Intel PXA25x/26x/27x Multimedia Card Interface support" 50 depends on ARCH_PXA 51 help 52 This selects the Intel(R) PXA(R) Multimedia card Interface. 53 If you have a PXA(R) platform with a Multimedia Card slot, 54 say Y or M here. 55 56 If unsure, say N. 57 58config MMC_SDHCI 59 tristate "Secure Digital Host Controller Interface support" 60 depends on HAS_DMA 61 help 62 This selects the generic Secure Digital Host Controller Interface. 63 It is used by manufacturers such as Texas Instruments(R), Ricoh(R) 64 and Toshiba(R). Most controllers found in laptops are of this type. 65 66 If you have a controller with this interface, say Y or M here. You 67 also need to enable an appropriate bus interface. 68 69 If unsure, say N. 70 71config MMC_SDHCI_IO_ACCESSORS 72 bool 73 depends on MMC_SDHCI 74 help 75 This is silent Kconfig symbol that is selected by the drivers that 76 need to overwrite SDHCI IO memory accessors. 77 78config MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER 79 bool 80 depends on MMC_SDHCI 81 select MMC_SDHCI_IO_ACCESSORS 82 help 83 This option is selected by drivers running on big endian hosts 84 and performing I/O to a SDHCI controller through a bus that 85 implements a hardware byte swapper using a 32-bit datum. 86 This endian mapping mode is called "data invariance" and 87 has the effect of scrambling the addresses and formats of data 88 accessed in sizes other than the datum size. 89 90 This is the case for the Nintendo Wii SDHCI. 91 92config MMC_SDHCI_PCI 93 tristate "SDHCI support on PCI bus" 94 depends on MMC_SDHCI && PCI 95 select MMC_CQHCI 96 select IOSF_MBI if X86 97 select MMC_SDHCI_IO_ACCESSORS 98 help 99 This selects the PCI Secure Digital Host Controller Interface. 100 Most controllers found today are PCI devices. 101 102 If you have a controller with this interface, say Y or M here. 103 104 If unsure, say N. 105 106config MMC_RICOH_MMC 107 bool "Ricoh MMC Controller Disabler" 108 depends on MMC_SDHCI_PCI 109 default y 110 help 111 This adds a pci quirk to disable Ricoh MMC Controller. This 112 proprietary controller is unnecessary because the SDHCI driver 113 supports MMC cards on the SD controller, but if it is not 114 disabled, it will steal the MMC cards away - rendering them 115 useless. It is safe to select this even if you don't 116 have a Ricoh based card reader. 117 118 If unsure, say Y. 119 120config MMC_SDHCI_ACPI 121 tristate "SDHCI support for ACPI enumerated SDHCI controllers" 122 depends on MMC_SDHCI && ACPI && PCI 123 select IOSF_MBI if X86 124 help 125 This selects support for ACPI enumerated SDHCI controllers, 126 identified by ACPI Compatibility ID PNP0D40 or specific 127 ACPI Hardware IDs. 128 129 If you have a controller with this interface, say Y or M here. 130 131 If unsure, say N. 132 133config MMC_SDHCI_PLTFM 134 tristate "SDHCI platform and OF driver helper" 135 depends on MMC_SDHCI 136 help 137 This selects the common helper functions support for Secure Digital 138 Host Controller Interface based platform and OF drivers. 139 140 If you have a controller with this interface, say Y or M here. 141 142 If unsure, say N. 143 144config MMC_SDHCI_OF_ARASAN 145 tristate "SDHCI OF support for the Arasan SDHCI controllers" 146 depends on MMC_SDHCI_PLTFM 147 depends on OF 148 depends on COMMON_CLK 149 select MMC_CQHCI 150 help 151 This selects the Arasan Secure Digital Host Controller Interface 152 (SDHCI). This hardware is found e.g. in Xilinx' Zynq SoC. 153 154 If you have a controller with this interface, say Y or M here. 155 156 If unsure, say N. 157 158config MMC_SDHCI_OF_ASPEED 159 tristate "SDHCI OF support for the ASPEED SDHCI controller" 160 depends on ARCH_ASPEED || COMPILE_TEST 161 depends on MMC_SDHCI_PLTFM 162 depends on OF && OF_ADDRESS 163 select MMC_SDHCI_IO_ACCESSORS 164 help 165 This selects the ASPEED Secure Digital Host Controller Interface. 166 167 If you have a controller with this interface, say Y or M here. You 168 also need to enable an appropriate bus interface. 169 170 If unsure, say N. 171 172config MMC_SDHCI_OF_ASPEED_TEST 173 bool "Tests for the ASPEED SDHCI driver" if !KUNIT_ALL_TESTS 174 depends on MMC_SDHCI_OF_ASPEED && KUNIT 175 depends on (MMC_SDHCI_OF_ASPEED=m || KUNIT=y) 176 default KUNIT_ALL_TESTS 177 help 178 Enable KUnit tests for the ASPEED SDHCI driver. Select this 179 option only if you will boot the kernel for the purpose of running 180 unit tests (e.g. under UML or qemu). 181 182 The KUnit tests generally exercise parts of the driver that do not 183 directly touch the hardware, for example, the phase correction 184 calculations. 185 186 If unsure, say N. 187 188config MMC_SDHCI_OF_AT91 189 tristate "SDHCI OF support for the Atmel SDMMC controller" 190 depends on MMC_SDHCI_PLTFM 191 depends on OF && HAVE_CLK 192 help 193 This selects the Atmel SDMMC driver 194 195config MMC_SDHCI_OF_ESDHC 196 tristate "SDHCI OF support for the Freescale eSDHC controller" 197 depends on MMC_SDHCI_PLTFM 198 depends on PPC || ARCH_MXC || ARCH_LAYERSCAPE || COMPILE_TEST 199 select MMC_SDHCI_IO_ACCESSORS 200 select FSL_GUTS 201 help 202 This selects the Freescale eSDHC controller support. 203 204 If you have a controller with this interface, say Y or M here. 205 206 If unsure, say N. 207 208config MMC_SDHCI_OF_HLWD 209 tristate "SDHCI OF support for the Nintendo Wii SDHCI controllers" 210 depends on MMC_SDHCI_PLTFM 211 depends on PPC 212 select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER 213 help 214 This selects the Secure Digital Host Controller Interface (SDHCI) 215 found in the "Hollywood" chipset of the Nintendo Wii video game 216 console. 217 218 If you have a controller with this interface, say Y or M here. 219 220 If unsure, say N. 221 222config MMC_SDHCI_OF_DWCMSHC 223 tristate "SDHCI OF support for the Synopsys DWC MSHC" 224 depends on MMC_SDHCI_PLTFM 225 depends on OF 226 depends on COMMON_CLK 227 help 228 This selects Synopsys DesignWare Cores Mobile Storage Controller 229 support. 230 If you have a controller with this interface, say Y or M here. 231 If unsure, say N. 232 233config MMC_SDHCI_OF_SPARX5 234 tristate "SDHCI OF support for the MCHP Sparx5 SoC" 235 depends on MMC_SDHCI_PLTFM 236 depends on ARCH_SPARX5 || COMPILE_TEST 237 help 238 This selects the Secure Digital Host Controller Interface (SDHCI) 239 found in the MCHP Sparx5 SoC. 240 241 If you have a Sparx5 SoC with this interface, say Y or M here. 242 243 If unsure, say N. 244 245config MMC_SDHCI_CADENCE 246 tristate "SDHCI support for the Cadence SD/SDIO/eMMC controller" 247 depends on MMC_SDHCI_PLTFM 248 depends on OF 249 help 250 This selects the Cadence SD/SDIO/eMMC driver. 251 252 If you have a controller with this interface, say Y or M here. 253 254 If unsure, say N. 255 256config MMC_SDHCI_CNS3XXX 257 tristate "SDHCI support on the Cavium Networks CNS3xxx SoC" 258 depends on ARCH_CNS3XXX || COMPILE_TEST 259 depends on MMC_SDHCI_PLTFM 260 help 261 This selects the SDHCI support for CNS3xxx System-on-Chip devices. 262 263 If you have a controller with this interface, say Y or M here. 264 265 If unsure, say N. 266 267config MMC_SDHCI_ESDHC_MCF 268 tristate "SDHCI support for the Freescale eSDHC ColdFire controller" 269 depends on M5441x 270 depends on MMC_SDHCI_PLTFM 271 select MMC_SDHCI_IO_ACCESSORS 272 help 273 This selects the Freescale eSDHC controller support for 274 ColdFire mcf5441x devices. 275 276 If you have a controller with this interface, say Y or M here. 277 278 If unsure, say N. 279 280config MMC_SDHCI_ESDHC_IMX 281 tristate "SDHCI support for the Freescale eSDHC/uSDHC i.MX controller" 282 depends on ARCH_MXC || COMPILE_TEST 283 depends on MMC_SDHCI_PLTFM 284 depends on OF 285 select MMC_SDHCI_IO_ACCESSORS 286 select MMC_CQHCI 287 help 288 This selects the Freescale eSDHC/uSDHC controller support 289 found on i.MX25, i.MX35 i.MX5x and i.MX6x. 290 291 If you have a controller with this interface, say Y or M here. 292 293 If unsure, say N. 294 295config MMC_SDHCI_DOVE 296 tristate "SDHCI support on Marvell's Dove SoC" 297 depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST 298 depends on MMC_SDHCI_PLTFM 299 select MMC_SDHCI_IO_ACCESSORS 300 help 301 This selects the Secure Digital Host Controller Interface in 302 Marvell's Dove SoC. 303 304 If you have a controller with this interface, say Y or M here. 305 306 If unsure, say N. 307 308config MMC_SDHCI_TEGRA 309 tristate "SDHCI platform support for the Tegra SD/MMC Controller" 310 depends on ARCH_TEGRA || COMPILE_TEST 311 depends on MMC_SDHCI_PLTFM 312 select MMC_SDHCI_IO_ACCESSORS 313 select MMC_CQHCI 314 help 315 This selects the Tegra SD/MMC controller. If you have a Tegra 316 platform with SD or MMC devices, say Y or M here. 317 318 If unsure, say N. 319 320config MMC_SDHCI_S3C 321 tristate "SDHCI support on Samsung S3C/S5P/Exynos SoC" 322 depends on MMC_SDHCI 323 depends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST 324 help 325 This selects the Secure Digital Host Controller Interface (SDHCI) 326 often referrered to as the HSMMC block in some of the Samsung S3C 327 (S3C2416, S3C2443, S3C6410), S5Pv210 and Exynos (Exynso4210, 328 Exynos4412) SoCs. 329 330 If you have a controller with this interface (thereforeyou build for 331 such Samsung SoC), say Y or M here. 332 333 If unsure, say N. 334 335config MMC_SDHCI_PXAV3 336 tristate "Marvell MMP2 SD Host Controller support (PXAV3)" 337 depends on HAVE_CLK 338 depends on MMC_SDHCI_PLTFM 339 depends on ARCH_BERLIN || ARCH_MMP || ARCH_MVEBU || COMPILE_TEST 340 default CPU_MMP2 341 help 342 This selects the Marvell(R) PXAV3 SD Host Controller. 343 If you have a MMP2 platform with SD Host Controller 344 and a card slot, say Y or M here. 345 346 If unsure, say N. 347 348config MMC_SDHCI_PXAV2 349 tristate "Marvell PXA9XX SD Host Controller support (PXAV2)" 350 depends on HAVE_CLK 351 depends on MMC_SDHCI_PLTFM 352 depends on ARCH_MMP || COMPILE_TEST 353 default CPU_PXA910 354 help 355 This selects the Marvell(R) PXAV2 SD Host Controller. 356 If you have a PXA9XX platform with SD Host Controller 357 and a card slot, say Y or M here. 358 359 If unsure, say N. 360 361config MMC_SDHCI_SPEAR 362 tristate "SDHCI support on ST SPEAr platform" 363 depends on MMC_SDHCI 364 depends on PLAT_SPEAR || COMPILE_TEST 365 depends on OF 366 help 367 This selects the Secure Digital Host Controller Interface (SDHCI) 368 often referrered to as the HSMMC block in some of the ST SPEAR range 369 of SoC 370 371 If you have a controller with this interface, say Y or M here. 372 373 If unsure, say N. 374 375config MMC_SDHCI_S3C_DMA 376 bool "DMA support on S3C SDHCI" 377 depends on MMC_SDHCI_S3C 378 help 379 Enable DMA support on the Samsung S3C SDHCI glue. The DMA 380 has proved to be problematic if the controller encounters 381 certain errors, and thus should be treated with care. 382 383 YMMV. 384 385config MMC_SDHCI_BCM_KONA 386 tristate "SDHCI support on Broadcom KONA platform" 387 depends on ARCH_BCM_MOBILE || COMPILE_TEST 388 depends on MMC_SDHCI_PLTFM 389 help 390 This selects the Broadcom Kona Secure Digital Host Controller 391 Interface(SDHCI) support. 392 This is used in Broadcom mobile SoCs. 393 394 If you have a controller with this interface, say Y or M here. 395 396config MMC_SDHCI_F_SDH30 397 tristate "SDHCI support for Fujitsu Semiconductor F_SDH30" 398 depends on MMC_SDHCI_PLTFM 399 depends on OF || ACPI 400 help 401 This selects the Secure Digital Host Controller Interface (SDHCI) 402 Needed by some Fujitsu SoC for MMC / SD / SDIO support. 403 If you have a controller with this interface, say Y or M here. 404 405 If unsure, say N. 406 407config MMC_SDHCI_MILBEAUT 408 tristate "SDHCI support for Socionext Milbeaut Serieas using F_SDH30" 409 depends on MMC_SDHCI_PLTFM 410 depends on OF 411 help 412 This selects the Secure Digital Host Controller Interface (SDHCI) 413 Needed by Milbeaut SoC for MMC / SD / SDIO support. 414 If you have a controller with this interface, say Y or M here. 415 416 If unsure, say N. 417 418config MMC_SDHCI_IPROC 419 tristate "SDHCI support for the BCM2835 & iProc SD/MMC Controller" 420 depends on ARCH_BCM2835 || ARCH_BCM_IPROC || ARCH_BRCMSTB || COMPILE_TEST 421 depends on MMC_SDHCI_PLTFM 422 depends on OF || ACPI 423 default ARCH_BCM_IPROC 424 select MMC_SDHCI_IO_ACCESSORS 425 help 426 This selects the iProc SD/MMC controller. 427 428 If you have a BCM2835 or IPROC platform with SD or MMC devices, 429 say Y or M here. 430 431 If unsure, say N. 432 433config MMC_MESON_GX 434 tristate "Amlogic S905/GX*/AXG SD/MMC Host Controller support" 435 depends on ARCH_MESON|| COMPILE_TEST 436 depends on COMMON_CLK 437 help 438 This selects support for the Amlogic SD/MMC Host Controller 439 found on the S905/GX*/AXG family of SoCs. This controller is 440 MMC 5.1 compliant and supports SD, eMMC and SDIO interfaces. 441 442 If you have a controller with this interface, say Y here. 443 444config MMC_MESON_MX_SDHC 445 tristate "Amlogic Meson SDHC Host Controller support" 446 depends on (ARM && ARCH_MESON) || COMPILE_TEST 447 depends on COMMON_CLK 448 depends on OF 449 help 450 This selects support for the SDHC Host Controller on 451 Amlogic Meson6, Meson8, Meson8b and Meson8m2 SoCs. 452 The controller supports the SD/SDIO Spec 3.x and eMMC Spec 4.5x 453 with 1, 4, and 8 bit bus widths. 454 455 If you have a controller with this interface, say Y or M here. 456 If unsure, say N. 457 458config MMC_MESON_MX_SDIO 459 tristate "Amlogic Meson6/Meson8/Meson8b SD/MMC Host Controller support" 460 depends on ARCH_MESON || COMPILE_TEST 461 depends on COMMON_CLK 462 depends on OF_ADDRESS 463 help 464 This selects support for the SD/MMC Host Controller on 465 Amlogic Meson6, Meson8 and Meson8b SoCs. 466 467 If you have a controller with this interface, say Y or M here. 468 If unsure, say N. 469 470config MMC_MOXART 471 tristate "MOXART SD/MMC Host Controller support" 472 depends on ARCH_MOXART || COMPILE_TEST 473 help 474 This selects support for the MOXART SD/MMC Host Controller. 475 MOXA provides one multi-functional card reader which can 476 be found on some embedded hardware such as UC-7112-LX. 477 If you have a controller with this interface, say Y here. 478 479config MMC_SDHCI_ST 480 tristate "SDHCI support on STMicroelectronics SoC" 481 depends on ARCH_STI || FSP2 || COMPILE_TEST 482 depends on MMC_SDHCI_PLTFM 483 select MMC_SDHCI_IO_ACCESSORS 484 help 485 This selects the Secure Digital Host Controller Interface in 486 STMicroelectronics SoCs. 487 488 If you have a controller with this interface, say Y or M here. 489 If unsure, say N. 490 491config MMC_OMAP 492 tristate "TI OMAP Multimedia Card Interface support" 493 depends on ARCH_OMAP 494 depends on TPS65010 || !MACH_OMAP_H2 495 help 496 This selects the TI OMAP Multimedia card Interface. 497 If you have an OMAP board with a Multimedia Card slot, 498 say Y or M here. 499 500 If unsure, say N. 501 502config MMC_OMAP_HS 503 tristate "TI OMAP High Speed Multimedia Card Interface support" 504 depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST 505 help 506 This selects the TI OMAP High Speed Multimedia card Interface. 507 If you have an omap2plus board with a Multimedia Card slot, 508 say Y or M here. 509 510 If unsure, say N. 511 512config MMC_WBSD 513 tristate "Winbond W83L51xD SD/MMC Card Interface support" 514 depends on ISA_DMA_API 515 help 516 This selects the Winbond(R) W83L51xD Secure digital and 517 Multimedia card Interface. 518 If you have a machine with a integrated W83L518D or W83L519D 519 SD/MMC card reader, say Y or M here. 520 521 If unsure, say N. 522 523config MMC_ALCOR 524 tristate "Alcor Micro/Alcor Link SD/MMC controller" 525 depends on MISC_ALCOR_PCI 526 help 527 Say Y here to include driver code to support SD/MMC card interface 528 of Alcor Micro PCI-E card reader 529 530config MMC_AU1X 531 bool "Alchemy AU1XX0 MMC Card Interface support" 532 depends on MIPS_ALCHEMY 533 depends on MMC=y 534 help 535 This selects the AMD Alchemy(R) Multimedia card interface. 536 If you have a Alchemy platform with a MMC slot, say Y here. 537 538 If unsure, say N. 539 540config MMC_ATMELMCI 541 tristate "Atmel SD/MMC Driver (Multimedia Card Interface)" 542 depends on ARCH_AT91 543 help 544 This selects the Atmel Multimedia Card Interface driver. 545 If you have an AT91 platform with a Multimedia Card slot, 546 say Y or M here. 547 548 If unsure, say N. 549 550config MMC_SDHCI_MSM 551 tristate "Qualcomm SDHCI Controller Support" 552 depends on ARCH_QCOM || COMPILE_TEST 553 depends on MMC_SDHCI_PLTFM 554 select MMC_SDHCI_IO_ACCESSORS 555 select MMC_CQHCI 556 select QCOM_SCM if MMC_CRYPTO 557 help 558 This selects the Secure Digital Host Controller Interface (SDHCI) 559 support present in Qualcomm SOCs. The controller supports 560 SD/MMC/SDIO devices. 561 562 If you have a controller with this interface, say Y or M here. 563 564 If unsure, say N. 565 566config MMC_MXC 567 tristate "Freescale i.MX21/27/31 or MPC512x Multimedia Card support" 568 depends on ARCH_MXC || PPC_MPC512x 569 help 570 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x 571 Multimedia Card Interface. If you have an i.MX or MPC512x platform 572 with a Multimedia Card slot, say Y or M here. 573 574 If unsure, say N. 575 576config MMC_MXS 577 tristate "Freescale MXS Multimedia Card Interface support" 578 depends on ARCH_MXS && MXS_DMA 579 help 580 This selects the Freescale SSP MMC controller found on MXS based 581 platforms like mx23/28. 582 583 If unsure, say N. 584 585config MMC_TIFM_SD 586 tristate "TI Flash Media MMC/SD Interface support" 587 depends on PCI 588 select TIFM_CORE 589 help 590 Say Y here if you want to be able to access MMC/SD cards with 591 the Texas Instruments(R) Flash Media card reader, found in many 592 laptops. 593 This option 'selects' (turns on, enables) 'TIFM_CORE', but you 594 probably also need appropriate card reader host adapter, such as 595 'Misc devices: TI Flash Media PCI74xx/PCI76xx host adapter support 596 (TIFM_7XX1)'. 597 598 To compile this driver as a module, choose M here: the 599 module will be called tifm_sd. 600 601config MMC_MVSDIO 602 tristate "Marvell MMC/SD/SDIO host driver" 603 depends on PLAT_ORION || (COMPILE_TEST && ARM) 604 depends on OF 605 help 606 This selects the Marvell SDIO host driver. 607 SDIO may currently be found on the Kirkwood 88F6281 and 88F6192 608 SoC controllers. 609 610 To compile this driver as a module, choose M here: the 611 module will be called mvsdio. 612 613config MMC_DAVINCI 614 tristate "TI DAVINCI Multimedia Card Interface support" 615 depends on ARCH_DAVINCI || COMPILE_TEST 616 help 617 This selects the TI DAVINCI Multimedia card Interface. 618 If you have an DAVINCI board with a Multimedia Card slot, 619 say Y or M here. If unsure, say N. 620 621config MMC_SPI 622 tristate "MMC/SD/SDIO over SPI" 623 depends on SPI_MASTER 624 select CRC7 625 select CRC_ITU_T 626 help 627 Some systems access MMC/SD/SDIO cards using a SPI controller 628 instead of using a "native" MMC/SD/SDIO controller. This has a 629 disadvantage of being relatively high overhead, but a compensating 630 advantage of working on many systems without dedicated MMC/SD/SDIO 631 controllers. 632 633 If unsure, or if your system has no SPI master driver, say N. 634 635config MMC_S3C 636 tristate "Samsung S3C SD/MMC Card Interface support" 637 depends on ARCH_S3C24XX || COMPILE_TEST 638 depends on S3C24XX_DMAC || COMPILE_TEST 639 help 640 This selects a driver for the MCI interface found in 641 Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs. 642 If you have a board based on one of those and a MMC/SD 643 slot, say Y or M here. 644 645 If unsure, say N. 646 647config MMC_S3C_HW_SDIO_IRQ 648 bool "Hardware support for SDIO IRQ" 649 depends on MMC_S3C 650 help 651 Enable the hardware support for SDIO interrupts instead of using 652 the generic polling code. 653 654choice 655 prompt "Samsung S3C SD/MMC transfer code" 656 depends on MMC_S3C 657 658config MMC_S3C_PIO 659 bool "Use PIO transfers only" 660 help 661 Use PIO to transfer data between memory and the hardware. 662 663 PIO is slower than DMA as it requires CPU instructions to 664 move the data. This has been the traditional default for 665 the S3C MCI driver. 666 667config MMC_S3C_DMA 668 bool "Use DMA transfers only" 669 help 670 Use DMA to transfer data between memory and the hardware. 671 672 Currently, the DMA support in this driver seems to not be 673 working properly and needs to be debugged before this 674 option is useful. 675 676endchoice 677 678config MMC_SDRICOH_CS 679 tristate "MMC/SD driver for Ricoh Bay1Controllers" 680 depends on PCI && PCMCIA 681 help 682 Say Y here if your Notebook reports a Ricoh Bay1Controller PCMCIA 683 card whenever you insert a MMC or SD card into the card slot. 684 685 To compile this driver as a module, choose M here: the 686 module will be called sdricoh_cs. 687 688config MMC_SDHCI_SPRD 689 tristate "Spreadtrum SDIO host Controller" 690 depends on ARCH_SPRD || COMPILE_TEST 691 depends on MMC_SDHCI_PLTFM 692 select MMC_SDHCI_IO_ACCESSORS 693 select MMC_HSQ 694 help 695 This selects the SDIO Host Controller in Spreadtrum 696 SoCs, this driver supports R11(IP version: R11P0). 697 698 If you have a controller with this interface, say Y or M here. 699 700 If unsure, say N. 701 702config MMC_TMIO_CORE 703 tristate 704 705config MMC_TMIO 706 tristate "Toshiba Mobile IO Controller (TMIO) MMC/SD function support" 707 depends on MFD_TMIO || MFD_ASIC3 || COMPILE_TEST 708 select MMC_TMIO_CORE 709 help 710 This provides support for the SD/MMC cell found in TC6393XB, 711 T7L66XB and also HTC ASIC3 712 713config MMC_SDHI 714 tristate "Renesas SDHI SD/SDIO controller support" 715 depends on SUPERH || ARCH_RENESAS || COMPILE_TEST 716 select MMC_TMIO_CORE 717 select RESET_CONTROLLER if ARCH_RENESAS 718 help 719 This provides support for the SDHI SD/SDIO controller found in 720 Renesas SuperH, ARM and ARM64 based SoCs 721 722config MMC_SDHI_SYS_DMAC 723 tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC" 724 depends on MMC_SDHI 725 default MMC_SDHI if (SUPERH || ARM) 726 help 727 This provides DMA support for SDHI SD/SDIO controllers 728 using SYS-DMAC via DMA Engine. This supports the controllers 729 found in SuperH and Renesas ARM based SoCs. 730 731config MMC_SDHI_INTERNAL_DMAC 732 tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering" 733 depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST 734 depends on MMC_SDHI 735 default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470) 736 help 737 This provides DMA support for SDHI SD/SDIO controllers 738 using on-chip bus mastering. This supports the controllers 739 found in arm64 based SoCs. This controller is also found in 740 some RZ family SoCs. 741 742config MMC_UNIPHIER 743 tristate "UniPhier SD/eMMC Host Controller support" 744 depends on ARCH_UNIPHIER || COMPILE_TEST 745 depends on OF 746 select MMC_TMIO_CORE 747 help 748 This provides support for the SD/eMMC controller found in 749 UniPhier SoCs. The eMMC variant of this controller is used 750 only for 32-bit SoCs. 751 752config MMC_CB710 753 tristate "ENE CB710 MMC/SD Interface support" 754 depends on PCI 755 select CB710_CORE 756 help 757 This option enables support for MMC/SD part of ENE CB710/720 Flash 758 memory card reader found in some laptops (ie. some versions of 759 HP Compaq nx9500). 760 761 This driver can also be built as a module. If so, the module 762 will be called cb710-mmc. 763 764config MMC_VIA_SDMMC 765 tristate "VIA SD/MMC Card Reader Driver" 766 depends on PCI 767 help 768 This selects the VIA SD/MMC Card Reader driver, say Y or M here. 769 VIA provides one multi-functional card reader which integrated into 770 some motherboards manufactured by VIA. This card reader supports 771 SD/MMC/SDHC. 772 If you have a controller with this interface, say Y or M here. 773 774 If unsure, say N. 775 776config MMC_CAVIUM_OCTEON 777 tristate "Cavium OCTEON SD/MMC Card Interface support" 778 depends on CAVIUM_OCTEON_SOC 779 help 780 This selects Cavium OCTEON SD/MMC card Interface. 781 If you have an OCTEON board with a Multimedia Card slot, 782 say Y or M here. 783 784 If unsure, say N. 785 786config MMC_CAVIUM_THUNDERX 787 tristate "Cavium ThunderX SD/MMC Card Interface support" 788 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST) 789 depends on GPIO_THUNDERX 790 depends on OF_ADDRESS 791 help 792 This selects Cavium ThunderX SD/MMC Card Interface. 793 If you have an Cavium ARM64 board with a Multimedia Card slot 794 or builtin eMMC chip say Y or M here. If built as a module 795 the module will be called thunderx_mmc.ko. 796 797config MMC_DW 798 tristate "Synopsys DesignWare Memory Card Interface" 799 depends on ARC || ARM || ARM64 || MIPS || RISCV || CSKY || COMPILE_TEST 800 help 801 This selects support for the Synopsys DesignWare Mobile Storage IP 802 block, this provides host support for SD and MMC interfaces, in both 803 PIO, internal DMA mode and external DMA mode. 804 805config MMC_DW_PLTFM 806 tristate "Synopsys Designware MCI Support as platform device" 807 depends on MMC_DW 808 default y 809 help 810 This selects the common helper functions support for Host Controller 811 Interface based platform driver. Please select this option if the IP 812 is present as a platform device. This is the common interface for the 813 Synopsys Designware IP. 814 815 If you have a controller with this interface, say Y or M here. 816 817 If unsure, say Y. 818 819config MMC_DW_BLUEFIELD 820 tristate "BlueField specific extensions for Synopsys DW Memory Card Interface" 821 depends on MMC_DW 822 select MMC_DW_PLTFM 823 help 824 This selects support for Mellanox BlueField SoC specific extensions to 825 the Synopsys DesignWare Memory Card Interface driver. Select this 826 option for platforms based on Mellanox BlueField SoC's. 827 828config MMC_DW_EXYNOS 829 tristate "Exynos specific extensions for Synopsys DW Memory Card Interface" 830 depends on MMC_DW 831 select MMC_DW_PLTFM 832 help 833 This selects support for Samsung Exynos SoC specific extensions to the 834 Synopsys DesignWare Memory Card Interface driver. Select this option 835 for platforms based on Exynos4 and Exynos5 SoC's. 836 837config MMC_DW_HI3798CV200 838 tristate "Hi3798CV200 specific extensions for Synopsys DW Memory Card Interface" 839 depends on MMC_DW 840 select MMC_DW_PLTFM 841 help 842 This selects support for HiSilicon Hi3798CV200 SoC specific extensions to the 843 Synopsys DesignWare Memory Card Interface driver. Select this option 844 for platforms based on HiSilicon Hi3798CV200 SoC. 845 846config MMC_DW_K3 847 tristate "K3 specific extensions for Synopsys DW Memory Card Interface" 848 depends on MMC_DW 849 select MMC_DW_PLTFM 850 help 851 This selects support for Hisilicon K3 SoC specific extensions to the 852 Synopsys DesignWare Memory Card Interface driver. Select this option 853 for platforms based on Hisilicon K3 SoC's. 854 855config MMC_DW_PCI 856 tristate "Synopsys Designware MCI support on PCI bus" 857 depends on MMC_DW && PCI 858 help 859 This selects the PCI bus for the Synopsys Designware Mobile Storage IP. 860 Select this option if the IP is present on PCI platform. 861 862 If you have a controller with this interface, say Y or M here. 863 864 If unsure, say N. 865 866config MMC_DW_ROCKCHIP 867 tristate "Rockchip specific extensions for Synopsys DW Memory Card Interface" 868 depends on MMC_DW && ARCH_ROCKCHIP 869 select MMC_DW_PLTFM 870 help 871 This selects support for Rockchip SoC specific extensions to the 872 Synopsys DesignWare Memory Card Interface driver. Select this option 873 for platforms based on RK3066, RK3188 and RK3288 SoC's. 874 875config MMC_SH_MMCIF 876 tristate "SuperH Internal MMCIF support" 877 depends on SUPERH || ARCH_RENESAS || COMPILE_TEST 878 help 879 This selects the MMC Host Interface controller (MMCIF) found in various 880 Renesas SoCs for SH and ARM architectures. 881 882 883config MMC_JZ4740 884 tristate "Ingenic JZ47xx SD/Multimedia Card Interface support" 885 depends on MIPS 886 help 887 This selects support for the SD/MMC controller on Ingenic 888 JZ4740, JZ4750, JZ4770 and JZ4780 SoCs. 889 890 If you have a board based on such a SoC and with a SD/MMC slot, 891 say Y or M here. 892 893config MMC_VUB300 894 tristate "VUB300 USB to SDIO/SD/MMC Host Controller support" 895 depends on USB 896 help 897 This selects support for Elan Digital Systems' VUB300 chip. 898 899 The VUB300 is a USB-SDIO Host Controller Interface chip 900 that enables the host computer to use SDIO/SD/MMC cards 901 via a USB 2.0 or USB 1.1 host. 902 903 The VUB300 chip will be found in both physically separate 904 USB to SDIO/SD/MMC adapters and embedded on some motherboards. 905 906 The VUB300 chip supports SD and MMC memory cards in addition 907 to single and multifunction SDIO cards. 908 909 Some SDIO cards will need a firmware file to be loaded and 910 sent to VUB300 chip in order to achieve better data throughput. 911 Download these "Offload Pseudocode" from Elan Digital Systems' 912 web-site http://www.elandigitalsystems.com/support/downloads.php 913 and put them in /lib/firmware. Note that without these additional 914 firmware files the VUB300 chip will still function, but not at 915 the best obtainable data rate. 916 917 To compile this mmc host controller driver as a module, 918 choose M here: the module will be called vub300. 919 920 If you have a computer with an embedded VUB300 chip 921 or if you intend connecting a USB adapter based on a 922 VUB300 chip say Y or M here. 923 924config MMC_USHC 925 tristate "USB SD Host Controller (USHC) support" 926 depends on USB 927 help 928 This selects support for USB SD Host Controllers based on 929 the Cypress Astoria chip with firmware compliant with CSR's 930 USB SD Host Controller specification (CS-118793-SP). 931 932 CSR boards with this device include: USB<>SDIO (M1985v2), 933 and Ultrasira. 934 935 Note: These controllers only support SDIO cards and do not 936 support MMC or SD memory cards. 937 938config MMC_WMT 939 tristate "Wondermedia SD/MMC Host Controller support" 940 depends on ARCH_VT8500 941 default y 942 help 943 This selects support for the SD/MMC Host Controller on 944 Wondermedia WM8505/WM8650 based SoCs. 945 946 To compile this driver as a module, choose M here: the 947 module will be called wmt-sdmmc. 948 949config MMC_USDHI6ROL0 950 tristate "Renesas USDHI6ROL0 SD/SDIO Host Controller support" 951 depends on HAS_DMA 952 help 953 This selects support for the Renesas USDHI6ROL0 SD/SDIO 954 Host Controller 955 956config MMC_REALTEK_PCI 957 tristate "Realtek PCI-E SD/MMC Card Interface Driver" 958 depends on MISC_RTSX_PCI 959 help 960 Say Y here to include driver code to support SD/MMC card interface 961 of Realtek PCI-E card reader 962 963config MMC_REALTEK_USB 964 tristate "Realtek USB SD/MMC Card Interface Driver" 965 depends on MISC_RTSX_USB 966 help 967 Say Y here to include driver code to support SD/MMC card interface 968 of Realtek RTS5129/39 series card reader 969 970config MMC_SUNXI 971 tristate "Allwinner sunxi SD/MMC Host Controller support" 972 depends on ARCH_SUNXI || COMPILE_TEST 973 depends on SUNXI_CCU 974 help 975 This selects support for the SD/MMC Host Controller on 976 Allwinner sunxi SoCs. 977 978config MMC_CQHCI 979 tristate "Command Queue Host Controller Interface support" 980 depends on HAS_DMA 981 help 982 This selects the Command Queue Host Controller Interface (CQHCI) 983 support present in host controllers of Qualcomm Technologies, Inc 984 amongst others. 985 This controller supports eMMC devices with command queue support. 986 987 If you have a controller with this interface, say Y or M here. 988 989 If unsure, say N. 990 991config MMC_HSQ 992 tristate "MMC Host Software Queue support" 993 help 994 This selects the MMC Host Software Queue support. This may increase 995 performance, if the host controller and its driver supports it. 996 997 If you have a controller/driver supporting this interface, say Y or M 998 here. 999 1000 If unsure, say N. 1001 1002config MMC_TOSHIBA_PCI 1003 tristate "Toshiba Type A SD/MMC Card Interface Driver" 1004 depends on PCI 1005 1006config MMC_BCM2835 1007 tristate "Broadcom BCM2835 SDHOST MMC Controller support" 1008 depends on ARCH_BCM2835 || COMPILE_TEST 1009 help 1010 This selects the BCM2835 SDHOST MMC controller. If you have 1011 a BCM2835 platform with SD or MMC devices, say Y or M here. 1012 1013 Note that the BCM2835 has two SD controllers: The Arasan 1014 sdhci controller (supported by MMC_SDHCI_IPROC) and a custom 1015 sdhost controller (supported by this driver). 1016 1017 If unsure, say N. 1018 1019config MMC_MTK 1020 tristate "MediaTek SD/MMC Card Interface support" 1021 depends on HAS_DMA 1022 depends on COMMON_CLK 1023 select REGULATOR 1024 select MMC_CQHCI 1025 help 1026 This selects the MediaTek(R) Secure digital and Multimedia card Interface. 1027 If you have a machine with a integrated SD/MMC card reader, say Y or M here. 1028 This is needed if support for any SD/SDIO/MMC devices is required. 1029 If unsure, say N. 1030 1031config MMC_SDHCI_MICROCHIP_PIC32 1032 tristate "Microchip PIC32MZDA SDHCI support" 1033 depends on MMC_SDHCI && PIC32MZDA && MMC_SDHCI_PLTFM 1034 help 1035 This selects the Secure Digital Host Controller Interface (SDHCI) 1036 for PIC32MZDA platform. 1037 1038 If you have a controller with this interface, say Y or M here. 1039 1040 If unsure, say N. 1041 1042config MMC_SDHCI_BRCMSTB 1043 tristate "Broadcom SDIO/SD/MMC support" 1044 depends on ARCH_BRCMSTB || BMIPS_GENERIC 1045 depends on MMC_SDHCI_PLTFM 1046 select MMC_CQHCI 1047 default y 1048 help 1049 This selects support for the SDIO/SD/MMC Host Controller on 1050 Broadcom STB SoCs. 1051 1052 If unsure, say Y. 1053 1054config MMC_SDHCI_XENON 1055 tristate "Marvell Xenon eMMC/SD/SDIO SDHCI driver" 1056 depends on MMC_SDHCI_PLTFM 1057 help 1058 This selects Marvell Xenon eMMC/SD/SDIO SDHCI. 1059 If you have a controller with this interface, say Y or M here. 1060 If unsure, say N. 1061 1062config MMC_SDHCI_OMAP 1063 tristate "TI SDHCI Controller Support" 1064 depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST 1065 depends on MMC_SDHCI_PLTFM && OF 1066 select THERMAL 1067 imply TI_SOC_THERMAL 1068 select MMC_SDHCI_EXTERNAL_DMA if DMA_ENGINE 1069 help 1070 This selects the Secure Digital Host Controller Interface (SDHCI) 1071 support present in TI's Keystone/OMAP2+/DRA7 SOCs. The controller 1072 supports SD/MMC/SDIO devices. 1073 1074 If you have a controller with this interface, say Y or M here. 1075 1076 If unsure, say N. 1077 1078config MMC_SDHCI_AM654 1079 tristate "Support for the SDHCI Controller in TI's AM654 SOCs" 1080 depends on ARCH_K3 || COMPILE_TEST 1081 depends on MMC_SDHCI_PLTFM && OF 1082 select MMC_SDHCI_IO_ACCESSORS 1083 select MMC_CQHCI 1084 select REGMAP_MMIO 1085 help 1086 This selects the Secure Digital Host Controller Interface (SDHCI) 1087 support present in TI's AM65x/AM64x/AM62x/J721E SOCs. The controller 1088 supports SD/MMC/SDIO devices. 1089 1090 If you have a controller with this interface, say Y or M here. 1091 1092 If unsure, say N. 1093 1094config MMC_OWL 1095 tristate "Actions Semi Owl SD/MMC Host Controller support" 1096 depends on HAS_DMA 1097 depends on ARCH_ACTIONS || COMPILE_TEST 1098 help 1099 This selects support for the SD/MMC Host Controller on 1100 Actions Semi Owl SoCs. 1101 1102config MMC_SDHCI_EXTERNAL_DMA 1103 bool 1104 1105config MMC_LITEX 1106 tristate "LiteX MMC Host Controller support" 1107 depends on ((PPC_MICROWATT || LITEX) && OF && HAVE_CLK) || COMPILE_TEST 1108 select REGULATOR 1109 select REGULATOR_FIXED_VOLTAGE 1110 help 1111 This selects support for the MMC Host Controller found in LiteX SoCs. 1112 1113 To compile this driver as a module, choose M here: the 1114 module will be called litex_mmc. 1115 1116 If unsure, say N. 1117