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 tristate "Alchemy AU1XX0 MMC Card Interface support" 532 depends on MIPS_ALCHEMY 533 help 534 This selects the AMD Alchemy(R) Multimedia card interface. 535 If you have a Alchemy platform with a MMC slot, say Y or M here. 536 537 If unsure, say N. 538 539config MMC_ATMELMCI 540 tristate "Atmel SD/MMC Driver (Multimedia Card Interface)" 541 depends on ARCH_AT91 542 help 543 This selects the Atmel Multimedia Card Interface driver. 544 If you have an AT91 platform with a Multimedia Card slot, 545 say Y or M here. 546 547 If unsure, say N. 548 549config MMC_SDHCI_MSM 550 tristate "Qualcomm SDHCI Controller Support" 551 depends on ARCH_QCOM || COMPILE_TEST 552 depends on MMC_SDHCI_PLTFM 553 select MMC_SDHCI_IO_ACCESSORS 554 select MMC_CQHCI 555 select QCOM_SCM if MMC_CRYPTO 556 help 557 This selects the Secure Digital Host Controller Interface (SDHCI) 558 support present in Qualcomm SOCs. The controller supports 559 SD/MMC/SDIO devices. 560 561 If you have a controller with this interface, say Y or M here. 562 563 If unsure, say N. 564 565config MMC_MXC 566 tristate "Freescale i.MX21/27/31 or MPC512x Multimedia Card support" 567 depends on ARCH_MXC || PPC_MPC512x 568 help 569 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x 570 Multimedia Card Interface. If you have an i.MX or MPC512x platform 571 with a Multimedia Card slot, say Y or M here. 572 573 If unsure, say N. 574 575config MMC_MXS 576 tristate "Freescale MXS Multimedia Card Interface support" 577 depends on ARCH_MXS && MXS_DMA 578 help 579 This selects the Freescale SSP MMC controller found on MXS based 580 platforms like mx23/28. 581 582 If unsure, say N. 583 584config MMC_TIFM_SD 585 tristate "TI Flash Media MMC/SD Interface support" 586 depends on PCI 587 select TIFM_CORE 588 help 589 Say Y here if you want to be able to access MMC/SD cards with 590 the Texas Instruments(R) Flash Media card reader, found in many 591 laptops. 592 This option 'selects' (turns on, enables) 'TIFM_CORE', but you 593 probably also need appropriate card reader host adapter, such as 594 'Misc devices: TI Flash Media PCI74xx/PCI76xx host adapter support 595 (TIFM_7XX1)'. 596 597 To compile this driver as a module, choose M here: the 598 module will be called tifm_sd. 599 600config MMC_MVSDIO 601 tristate "Marvell MMC/SD/SDIO host driver" 602 depends on PLAT_ORION || (COMPILE_TEST && ARM) 603 depends on OF 604 help 605 This selects the Marvell SDIO host driver. 606 SDIO may currently be found on the Kirkwood 88F6281 and 88F6192 607 SoC controllers. 608 609 To compile this driver as a module, choose M here: the 610 module will be called mvsdio. 611 612config MMC_DAVINCI 613 tristate "TI DAVINCI Multimedia Card Interface support" 614 depends on ARCH_DAVINCI || COMPILE_TEST 615 help 616 This selects the TI DAVINCI Multimedia card Interface. 617 If you have an DAVINCI board with a Multimedia Card slot, 618 say Y or M here. If unsure, say N. 619 620config MMC_SPI 621 tristate "MMC/SD/SDIO over SPI" 622 depends on SPI_MASTER 623 select CRC7 624 select CRC_ITU_T 625 help 626 Some systems access MMC/SD/SDIO cards using a SPI controller 627 instead of using a "native" MMC/SD/SDIO controller. This has a 628 disadvantage of being relatively high overhead, but a compensating 629 advantage of working on many systems without dedicated MMC/SD/SDIO 630 controllers. 631 632 If unsure, or if your system has no SPI master driver, say N. 633 634config MMC_S3C 635 tristate "Samsung S3C SD/MMC Card Interface support" 636 depends on ARCH_S3C24XX || COMPILE_TEST 637 depends on S3C24XX_DMAC || COMPILE_TEST 638 help 639 This selects a driver for the MCI interface found in 640 Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs. 641 If you have a board based on one of those and a MMC/SD 642 slot, say Y or M here. 643 644 If unsure, say N. 645 646config MMC_S3C_HW_SDIO_IRQ 647 bool "Hardware support for SDIO IRQ" 648 depends on MMC_S3C 649 help 650 Enable the hardware support for SDIO interrupts instead of using 651 the generic polling code. 652 653choice 654 prompt "Samsung S3C SD/MMC transfer code" 655 depends on MMC_S3C 656 657config MMC_S3C_PIO 658 bool "Use PIO transfers only" 659 help 660 Use PIO to transfer data between memory and the hardware. 661 662 PIO is slower than DMA as it requires CPU instructions to 663 move the data. This has been the traditional default for 664 the S3C MCI driver. 665 666config MMC_S3C_DMA 667 bool "Use DMA transfers only" 668 help 669 Use DMA to transfer data between memory and the hardware. 670 671 Currently, the DMA support in this driver seems to not be 672 working properly and needs to be debugged before this 673 option is useful. 674 675endchoice 676 677config MMC_SDRICOH_CS 678 tristate "MMC/SD driver for Ricoh Bay1Controllers" 679 depends on PCI && PCMCIA 680 help 681 Say Y here if your Notebook reports a Ricoh Bay1Controller PCMCIA 682 card whenever you insert a MMC or SD card into the card slot. 683 684 To compile this driver as a module, choose M here: the 685 module will be called sdricoh_cs. 686 687config MMC_SDHCI_SPRD 688 tristate "Spreadtrum SDIO host Controller" 689 depends on ARCH_SPRD || COMPILE_TEST 690 depends on MMC_SDHCI_PLTFM 691 select MMC_SDHCI_IO_ACCESSORS 692 select MMC_HSQ 693 help 694 This selects the SDIO Host Controller in Spreadtrum 695 SoCs, this driver supports R11(IP version: R11P0). 696 697 If you have a controller with this interface, say Y or M here. 698 699 If unsure, say N. 700 701config MMC_TMIO_CORE 702 tristate 703 704config MMC_TMIO 705 tristate "Toshiba Mobile IO Controller (TMIO) MMC/SD function support" 706 depends on MFD_TMIO || MFD_ASIC3 || COMPILE_TEST 707 select MMC_TMIO_CORE 708 help 709 This provides support for the SD/MMC cell found in TC6393XB, 710 T7L66XB and also HTC ASIC3 711 712config MMC_SDHI 713 tristate "Renesas SDHI SD/SDIO controller support" 714 depends on SUPERH || ARCH_RENESAS || COMPILE_TEST 715 select MMC_TMIO_CORE 716 select RESET_CONTROLLER if ARCH_RENESAS 717 help 718 This provides support for the SDHI SD/SDIO controller found in 719 Renesas SuperH, ARM and ARM64 based SoCs 720 721config MMC_SDHI_SYS_DMAC 722 tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC" 723 depends on MMC_SDHI 724 default MMC_SDHI if (SUPERH || ARM) 725 help 726 This provides DMA support for SDHI SD/SDIO controllers 727 using SYS-DMAC via DMA Engine. This supports the controllers 728 found in SuperH and Renesas ARM based SoCs. 729 730config MMC_SDHI_INTERNAL_DMAC 731 tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering" 732 depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST 733 depends on MMC_SDHI 734 default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470) 735 help 736 This provides DMA support for SDHI SD/SDIO controllers 737 using on-chip bus mastering. This supports the controllers 738 found in arm64 based SoCs. This controller is also found in 739 some RZ family SoCs. 740 741config MMC_UNIPHIER 742 tristate "UniPhier SD/eMMC Host Controller support" 743 depends on ARCH_UNIPHIER || COMPILE_TEST 744 depends on OF 745 select MMC_TMIO_CORE 746 help 747 This provides support for the SD/eMMC controller found in 748 UniPhier SoCs. The eMMC variant of this controller is used 749 only for 32-bit SoCs. 750 751config MMC_CB710 752 tristate "ENE CB710 MMC/SD Interface support" 753 depends on PCI 754 select CB710_CORE 755 help 756 This option enables support for MMC/SD part of ENE CB710/720 Flash 757 memory card reader found in some laptops (ie. some versions of 758 HP Compaq nx9500). 759 760 This driver can also be built as a module. If so, the module 761 will be called cb710-mmc. 762 763config MMC_VIA_SDMMC 764 tristate "VIA SD/MMC Card Reader Driver" 765 depends on PCI 766 help 767 This selects the VIA SD/MMC Card Reader driver, say Y or M here. 768 VIA provides one multi-functional card reader which integrated into 769 some motherboards manufactured by VIA. This card reader supports 770 SD/MMC/SDHC. 771 If you have a controller with this interface, say Y or M here. 772 773 If unsure, say N. 774 775config MMC_CAVIUM_OCTEON 776 tristate "Cavium OCTEON SD/MMC Card Interface support" 777 depends on CAVIUM_OCTEON_SOC 778 help 779 This selects Cavium OCTEON SD/MMC card Interface. 780 If you have an OCTEON board with a Multimedia Card slot, 781 say Y or M here. 782 783 If unsure, say N. 784 785config MMC_CAVIUM_THUNDERX 786 tristate "Cavium ThunderX SD/MMC Card Interface support" 787 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST) 788 depends on GPIO_THUNDERX 789 depends on OF_ADDRESS 790 help 791 This selects Cavium ThunderX SD/MMC Card Interface. 792 If you have an Cavium ARM64 board with a Multimedia Card slot 793 or builtin eMMC chip say Y or M here. If built as a module 794 the module will be called thunderx_mmc.ko. 795 796config MMC_DW 797 tristate "Synopsys DesignWare Memory Card Interface" 798 depends on ARC || ARM || ARM64 || MIPS || RISCV || CSKY || COMPILE_TEST 799 help 800 This selects support for the Synopsys DesignWare Mobile Storage IP 801 block, this provides host support for SD and MMC interfaces, in both 802 PIO, internal DMA mode and external DMA mode. 803 804config MMC_DW_PLTFM 805 tristate "Synopsys Designware MCI Support as platform device" 806 depends on MMC_DW 807 default y 808 help 809 This selects the common helper functions support for Host Controller 810 Interface based platform driver. Please select this option if the IP 811 is present as a platform device. This is the common interface for the 812 Synopsys Designware IP. 813 814 If you have a controller with this interface, say Y or M here. 815 816 If unsure, say Y. 817 818config MMC_DW_BLUEFIELD 819 tristate "BlueField specific extensions for Synopsys DW Memory Card Interface" 820 depends on MMC_DW 821 select MMC_DW_PLTFM 822 help 823 This selects support for Mellanox BlueField SoC specific extensions to 824 the Synopsys DesignWare Memory Card Interface driver. Select this 825 option for platforms based on Mellanox BlueField SoC's. 826 827config MMC_DW_EXYNOS 828 tristate "Exynos specific extensions for Synopsys DW Memory Card Interface" 829 depends on MMC_DW 830 select MMC_DW_PLTFM 831 help 832 This selects support for Samsung Exynos SoC specific extensions to the 833 Synopsys DesignWare Memory Card Interface driver. Select this option 834 for platforms based on Exynos4 and Exynos5 SoC's. 835 836config MMC_DW_HI3798CV200 837 tristate "Hi3798CV200 specific extensions for Synopsys DW Memory Card Interface" 838 depends on MMC_DW 839 select MMC_DW_PLTFM 840 help 841 This selects support for HiSilicon Hi3798CV200 SoC specific extensions to the 842 Synopsys DesignWare Memory Card Interface driver. Select this option 843 for platforms based on HiSilicon Hi3798CV200 SoC. 844 845config MMC_DW_K3 846 tristate "K3 specific extensions for Synopsys DW Memory Card Interface" 847 depends on MMC_DW 848 select MMC_DW_PLTFM 849 help 850 This selects support for Hisilicon K3 SoC specific extensions to the 851 Synopsys DesignWare Memory Card Interface driver. Select this option 852 for platforms based on Hisilicon K3 SoC's. 853 854config MMC_DW_PCI 855 tristate "Synopsys Designware MCI support on PCI bus" 856 depends on MMC_DW && PCI 857 help 858 This selects the PCI bus for the Synopsys Designware Mobile Storage IP. 859 Select this option if the IP is present on PCI platform. 860 861 If you have a controller with this interface, say Y or M here. 862 863 If unsure, say N. 864 865config MMC_DW_ROCKCHIP 866 tristate "Rockchip specific extensions for Synopsys DW Memory Card Interface" 867 depends on MMC_DW && ARCH_ROCKCHIP 868 select MMC_DW_PLTFM 869 help 870 This selects support for Rockchip SoC specific extensions to the 871 Synopsys DesignWare Memory Card Interface driver. Select this option 872 for platforms based on RK3066, RK3188 and RK3288 SoC's. 873 874config MMC_SH_MMCIF 875 tristate "SuperH Internal MMCIF support" 876 depends on SUPERH || ARCH_RENESAS || COMPILE_TEST 877 help 878 This selects the MMC Host Interface controller (MMCIF) found in various 879 Renesas SoCs for SH and ARM architectures. 880 881 882config MMC_JZ4740 883 tristate "Ingenic JZ47xx SD/Multimedia Card Interface support" 884 depends on MIPS 885 help 886 This selects support for the SD/MMC controller on Ingenic 887 JZ4740, JZ4750, JZ4770 and JZ4780 SoCs. 888 889 If you have a board based on such a SoC and with a SD/MMC slot, 890 say Y or M here. 891 892config MMC_VUB300 893 tristate "VUB300 USB to SDIO/SD/MMC Host Controller support" 894 depends on USB 895 help 896 This selects support for Elan Digital Systems' VUB300 chip. 897 898 The VUB300 is a USB-SDIO Host Controller Interface chip 899 that enables the host computer to use SDIO/SD/MMC cards 900 via a USB 2.0 or USB 1.1 host. 901 902 The VUB300 chip will be found in both physically separate 903 USB to SDIO/SD/MMC adapters and embedded on some motherboards. 904 905 The VUB300 chip supports SD and MMC memory cards in addition 906 to single and multifunction SDIO cards. 907 908 Some SDIO cards will need a firmware file to be loaded and 909 sent to VUB300 chip in order to achieve better data throughput. 910 Download these "Offload Pseudocode" from Elan Digital Systems' 911 web-site http://www.elandigitalsystems.com/support/downloads.php 912 and put them in /lib/firmware. Note that without these additional 913 firmware files the VUB300 chip will still function, but not at 914 the best obtainable data rate. 915 916 To compile this mmc host controller driver as a module, 917 choose M here: the module will be called vub300. 918 919 If you have a computer with an embedded VUB300 chip 920 or if you intend connecting a USB adapter based on a 921 VUB300 chip say Y or M here. 922 923config MMC_USHC 924 tristate "USB SD Host Controller (USHC) support" 925 depends on USB 926 help 927 This selects support for USB SD Host Controllers based on 928 the Cypress Astoria chip with firmware compliant with CSR's 929 USB SD Host Controller specification (CS-118793-SP). 930 931 CSR boards with this device include: USB<>SDIO (M1985v2), 932 and Ultrasira. 933 934 Note: These controllers only support SDIO cards and do not 935 support MMC or SD memory cards. 936 937config MMC_WMT 938 tristate "Wondermedia SD/MMC Host Controller support" 939 depends on ARCH_VT8500 940 default y 941 help 942 This selects support for the SD/MMC Host Controller on 943 Wondermedia WM8505/WM8650 based SoCs. 944 945 To compile this driver as a module, choose M here: the 946 module will be called wmt-sdmmc. 947 948config MMC_USDHI6ROL0 949 tristate "Renesas USDHI6ROL0 SD/SDIO Host Controller support" 950 depends on HAS_DMA 951 help 952 This selects support for the Renesas USDHI6ROL0 SD/SDIO 953 Host Controller 954 955config MMC_REALTEK_PCI 956 tristate "Realtek PCI-E SD/MMC Card Interface Driver" 957 depends on MISC_RTSX_PCI 958 help 959 Say Y here to include driver code to support SD/MMC card interface 960 of Realtek PCI-E card reader 961 962config MMC_REALTEK_USB 963 tristate "Realtek USB SD/MMC Card Interface Driver" 964 depends on MISC_RTSX_USB 965 help 966 Say Y here to include driver code to support SD/MMC card interface 967 of Realtek RTS5129/39 series card reader 968 969config MMC_SUNXI 970 tristate "Allwinner sunxi SD/MMC Host Controller support" 971 depends on ARCH_SUNXI || COMPILE_TEST 972 depends on SUNXI_CCU 973 help 974 This selects support for the SD/MMC Host Controller on 975 Allwinner sunxi SoCs. 976 977config MMC_CQHCI 978 tristate "Command Queue Host Controller Interface support" 979 depends on HAS_DMA 980 help 981 This selects the Command Queue Host Controller Interface (CQHCI) 982 support present in host controllers of Qualcomm Technologies, Inc 983 amongst others. 984 This controller supports eMMC devices with command queue support. 985 986 If you have a controller with this interface, say Y or M here. 987 988 If unsure, say N. 989 990config MMC_HSQ 991 tristate "MMC Host Software Queue support" 992 help 993 This selects the MMC Host Software Queue support. This may increase 994 performance, if the host controller and its driver supports it. 995 996 If you have a controller/driver supporting this interface, say Y or M 997 here. 998 999 If unsure, say N. 1000 1001config MMC_TOSHIBA_PCI 1002 tristate "Toshiba Type A SD/MMC Card Interface Driver" 1003 depends on PCI 1004 1005config MMC_BCM2835 1006 tristate "Broadcom BCM2835 SDHOST MMC Controller support" 1007 depends on ARCH_BCM2835 || COMPILE_TEST 1008 help 1009 This selects the BCM2835 SDHOST MMC controller. If you have 1010 a BCM2835 platform with SD or MMC devices, say Y or M here. 1011 1012 Note that the BCM2835 has two SD controllers: The Arasan 1013 sdhci controller (supported by MMC_SDHCI_IPROC) and a custom 1014 sdhost controller (supported by this driver). 1015 1016 If unsure, say N. 1017 1018config MMC_MTK 1019 tristate "MediaTek SD/MMC Card Interface support" 1020 depends on HAS_DMA 1021 depends on COMMON_CLK 1022 select REGULATOR 1023 select MMC_CQHCI 1024 help 1025 This selects the MediaTek(R) Secure digital and Multimedia card Interface. 1026 If you have a machine with a integrated SD/MMC card reader, say Y or M here. 1027 This is needed if support for any SD/SDIO/MMC devices is required. 1028 If unsure, say N. 1029 1030config MMC_SDHCI_MICROCHIP_PIC32 1031 tristate "Microchip PIC32MZDA SDHCI support" 1032 depends on MMC_SDHCI && PIC32MZDA && MMC_SDHCI_PLTFM 1033 help 1034 This selects the Secure Digital Host Controller Interface (SDHCI) 1035 for PIC32MZDA platform. 1036 1037 If you have a controller with this interface, say Y or M here. 1038 1039 If unsure, say N. 1040 1041config MMC_SDHCI_BRCMSTB 1042 tristate "Broadcom SDIO/SD/MMC support" 1043 depends on ARCH_BRCMSTB || BMIPS_GENERIC 1044 depends on MMC_SDHCI_PLTFM 1045 select MMC_CQHCI 1046 default y 1047 help 1048 This selects support for the SDIO/SD/MMC Host Controller on 1049 Broadcom STB SoCs. 1050 1051 If unsure, say Y. 1052 1053config MMC_SDHCI_XENON 1054 tristate "Marvell Xenon eMMC/SD/SDIO SDHCI driver" 1055 depends on MMC_SDHCI_PLTFM 1056 help 1057 This selects Marvell Xenon eMMC/SD/SDIO SDHCI. 1058 If you have a controller with this interface, say Y or M here. 1059 If unsure, say N. 1060 1061config MMC_SDHCI_OMAP 1062 tristate "TI SDHCI Controller Support" 1063 depends on MMC_SDHCI_PLTFM && OF 1064 select THERMAL 1065 imply TI_SOC_THERMAL 1066 select MMC_SDHCI_EXTERNAL_DMA if DMA_ENGINE 1067 help 1068 This selects the Secure Digital Host Controller Interface (SDHCI) 1069 support present in TI's DRA7 SOCs. The controller supports 1070 SD/MMC/SDIO devices. 1071 1072 If you have a controller with this interface, say Y or M here. 1073 1074 If unsure, say N. 1075 1076config MMC_SDHCI_AM654 1077 tristate "Support for the SDHCI Controller in TI's AM654 SOCs" 1078 depends on MMC_SDHCI_PLTFM && OF && REGMAP_MMIO 1079 select MMC_SDHCI_IO_ACCESSORS 1080 select MMC_CQHCI 1081 help 1082 This selects the Secure Digital Host Controller Interface (SDHCI) 1083 support present in TI's AM654 SOCs. The controller supports 1084 SD/MMC/SDIO devices. 1085 1086 If you have a controller with this interface, say Y or M here. 1087 1088 If unsure, say N. 1089 1090config MMC_OWL 1091 tristate "Actions Semi Owl SD/MMC Host Controller support" 1092 depends on HAS_DMA 1093 depends on ARCH_ACTIONS || COMPILE_TEST 1094 help 1095 This selects support for the SD/MMC Host Controller on 1096 Actions Semi Owl SoCs. 1097 1098config MMC_SDHCI_EXTERNAL_DMA 1099 bool 1100 1101config MMC_LITEX 1102 tristate "LiteX MMC Host Controller support" 1103 depends on ((PPC_MICROWATT || LITEX) && OF && HAVE_CLK) || COMPILE_TEST 1104 select REGULATOR 1105 select REGULATOR_FIXED_VOLTAGE 1106 help 1107 This selects support for the MMC Host Controller found in LiteX SoCs. 1108 1109 To compile this driver as a module, choose M here: the 1110 module will be called litex_mmc. 1111 1112 If unsure, say N. 1113