1 menu "MMC Host controller Support"
4 bool "MMC/SD/SDIO card support"
5 default ARM || PPC || SANDBOX
6 select HAVE_BLOCK_DEVICE
8 This selects MultiMediaCard, Secure Digital and Secure
11 If you want MMC/SD/SDIO support, you should say Y here and
12 also to your specific host controller driver.
15 bool "support for MMC/SD write operations"
19 Enable write access to MMC and SD Cards
22 bool "Poll for broken card detection case"
24 If card detection feature is broken, just poll to detect.
27 bool "Enable MMC controllers using Driver Model"
30 This enables the MultiMediaCard (MMC) uclass which supports MMC and
31 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
32 and non-removable (e.g. eMMC chip) devices are supported. These
33 appear as block devices in U-Boot and can support filesystems such
37 bool "Enable MMC controllers using Driver Model in SPL"
38 depends on SPL_DM && DM_MMC
41 This enables the MultiMediaCard (MMC) uclass which supports MMC and
42 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
43 and non-removable (e.g. eMMC chip) devices are supported. These
44 appear as block devices in U-Boot and can support filesystems such
50 bool "Support for SPI-based MMC controller"
51 depends on DM_MMC && DM_SPI
53 This selects SPI-based MMC controllers.
54 If you have an MMC controller on a SPI bus, say Y here.
59 bool "Support CRC for SPI-based MMC controller"
63 This enables CRC for SPI-based MMC controllers.
68 bool "ARM AMBA Multimedia Card Interface and compatible support"
69 depends on DM_MMC && OF_CONTROL
71 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
72 Interface (PL180, PL181 and compatible) support.
73 If you have an ARM(R) platform with a Multimedia Card slot,
80 Some cards and hosts may sometimes behave unexpectedly (quirks).
81 This option enable workarounds to handle those quirks. Some of them
82 are enabled by default, other may require additionnal flags or are
83 enabled by the host driver.
85 config MMC_HW_PARTITIONING
86 bool "Support for HW partitioning command(eMMC)"
89 This adds a command and an API to do hardware partitioning on eMMC
92 config SUPPORT_EMMC_RPMB
93 bool "Support eMMC replay protected memory block (RPMB)"
96 Enable support for reading, writing and programming the
97 key for the Replay Protection Memory Block partition in eMMC.
99 config SUPPORT_EMMC_BOOT
100 bool "Support some additional features of the eMMC boot partitions"
102 Enable support for eMMC boot partitions. This also enables
103 extensions within the mmc command.
105 config MMC_IO_VOLTAGE
106 bool "Support IO voltage configuration"
108 IO voltage configuration allows selecting the voltage level of the IO
109 lines (not the level of main supply). This is required for UHS
110 support. For eMMC this not mandatory, but not enabling this option may
111 prevent the driver of using the faster modes.
113 config SPL_MMC_IO_VOLTAGE
114 bool "Support IO voltage configuration in SPL"
117 IO voltage configuration allows selecting the voltage level of the IO
118 lines (not the level of main supply). This is required for UHS
119 support. For eMMC this not mandatory, but not enabling this option may
120 prevent the driver of using the faster modes.
122 config MMC_UHS_SUPPORT
123 bool "enable UHS support"
124 depends on MMC_IO_VOLTAGE
126 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
127 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
128 frequency can go up to 208MHz (SDR104)
130 config SPL_MMC_UHS_SUPPORT
131 bool "enable UHS support in SPL"
132 depends on SPL_MMC_IO_VOLTAGE
134 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
135 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
136 frequency can go up to 208MHz (SDR104)
138 config MMC_HS400_SUPPORT
139 bool "enable HS400 support"
140 select MMC_HS200_SUPPORT
142 The HS400 mode is support by some eMMC. The bus frequency is up to
143 200MHz. This mode requires tuning the IO.
145 config SPL_MMC_HS400_SUPPORT
146 bool "enable HS400 support in SPL"
148 The HS400 mode is support by some eMMC. The bus frequency is up to
149 200MHz. This mode requires tuning the IO.
151 config MMC_HS200_SUPPORT
152 bool "enable HS200 support"
154 The HS200 mode is support by some eMMC. The bus frequency is up to
155 200MHz. This mode requires tuning the IO.
158 config SPL_MMC_HS200_SUPPORT
159 bool "enable HS200 support in SPL"
161 The HS200 mode is support by some eMMC. The bus frequency is up to
162 200MHz. This mode requires tuning the IO.
165 bool "Output more information about the MMC"
168 Enable the output of more information about the card such as the
175 This is an option for use by developer. Enable MMC core debugging.
177 If you need to see the MMC core message, say Y.
180 bool "TI DAVINCI Multimedia Card Interface support"
181 depends on ARCH_DAVINCI
184 This selects the TI DAVINCI Multimedia card Interface.
185 If you have an DAVINCI board with a Multimedia Card slot,
186 say Y here. If unsure, say N.
189 bool "Synopsys DesignWare Memory Card Interface"
192 This selects support for the Synopsys DesignWare Mobile Storage IP
193 block, this provides host support for SD and MMC interfaces, in both
194 PIO, internal DMA mode and external DMA mode.
197 bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
198 depends on ARCH_EXYNOS
202 This selects support for Samsung Exynos SoC specific extensions to the
203 Synopsys DesignWare Memory Card Interface driver. Select this option
204 for platforms based on Exynos4 and Exynos5 SoC's.
207 bool "K3 specific extensions for Synopsys DW Memory Card Interface"
210 This selects support for Hisilicon K3 SoC specific extensions to the
211 Synopsys DesignWare Memory Card Interface driver. Select this option
212 for platforms based on Hisilicon K3 SoC's.
214 config MMC_DW_ROCKCHIP
215 bool "Rockchip SD/MMC controller support"
216 depends on DM_MMC && OF_CONTROL
219 This enables support for the Rockchip SD/MMM controller, which is
220 based on Designware IP. The device is compatible with at least
221 SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
222 as removeable SD and micro-SD cards.
224 config MMC_DW_SOCFPGA
225 bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
226 depends on ARCH_SOCFPGA
230 This selects support for Altera SOCFPGA specific extensions to the
231 Synopsys DesignWare Memory Card Interface driver. Select this option
232 for platforms based on Altera SOCFPGA.
235 bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
238 depends on OF_CONTROL
241 This selects support for Synopsys DesignWare Memory Card Interface driver
242 extensions used in various Synopsys ARC devboards.
245 bool "Meson GX EMMC controller support"
246 depends on DM_MMC && BLK && ARCH_MESON
248 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
251 bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
253 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
254 Multimedia Card Interface. If you have an i.MX or MPC512x platform
255 with a Multimedia Card slot, say Y here.
260 bool "Freescale MXS Multimedia Card Interface support"
261 depends on MX23 || MX28 || MX6 || MX7
264 select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
265 select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
267 This selects the Freescale SSP MMC controller found on MXS based
268 platforms like mx23/28.
273 bool "Support for MMC controllers on PCI"
275 This selects PCI-based MMC controllers.
276 If you have an MMC controller on a PCI bus, say Y here.
281 bool "TI OMAP High Speed Multimedia Card Interface support"
282 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
283 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
285 This selects the TI OMAP High Speed Multimedia card Interface.
286 If you have an omap2plus board with a Multimedia Card slot,
291 config MMC_OMAP_HS_ADMA
292 bool "ADMA support for OMAP HS MMC"
293 depends on MMC_OMAP_HS && !OMAP34XX
296 This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
297 controller). If supported by the hardware, selecting this option will
298 increase performances.
300 config MMC_OMAP36XX_PINS
301 bool "Enable MMC1 on OMAP36xx/37xx"
302 depends on OMAP34XX && MMC_OMAP_HS
304 This enables extended-drain in the MMC/SD/SDIO1I/O and
305 GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
306 specific to the OMAP36xx/37xx using MMC1
308 If you have a controller with this interface, say Y here.
313 bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
314 depends on ARCH_RMOBILE
316 Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
319 bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
320 depends on ARCH_RMOBILE || SH
322 Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
325 bool "UniPhier SD/MMC Host Controller support"
326 depends on ARCH_UNIPHIER
327 depends on BLK && DM_MMC
328 depends on OF_CONTROL
330 This selects support for the Matsushita SD/MMC Host Controller on
331 SocioNext UniPhier SoCs.
334 bool "Renesas R-Car SD/MMC Host Controller support"
335 depends on ARCH_RMOBILE
336 depends on BLK && DM_MMC
337 depends on OF_CONTROL
339 This selects support for the Matsushita SD/MMC Host Controller on
343 bool "BCM2835 family custom SD/MMC Host Controller support"
344 depends on ARCH_BCM283X
345 depends on BLK && DM_MMC
346 depends on OF_CONTROL
349 This selects support for the custom SD host controller in the BCM2835
352 If you have a BCM2835 platform with SD or MMC devices, say Y here.
357 bool "Ingenic JZ47xx SD/MMC Host Controller support"
358 depends on ARCH_JZ47XX
360 This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
363 bool "Sandbox MMC support"
365 depends on BLK && DM_MMC && OF_CONTROL
367 This select a dummy sandbox MMC driver. At present this does nothing
368 other than allow sandbox to be build with MMC support. This
369 improves build coverage for sandbox and makes it easier to detect
370 MMC build errors with sandbox.
373 bool "Secure Digital Host Controller Interface support"
375 This selects the generic Secure Digital Host Controller Interface.
376 It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
377 and Toshiba(R). Most controllers found in laptops are of this type.
379 If you have a controller with this interface, say Y here.
383 config MMC_SDHCI_IO_ACCESSORS
387 This is silent Kconfig symbol that is selected by the drivers that
388 need to overwrite SDHCI IO memory accessors.
390 config MMC_SDHCI_SDMA
391 bool "Support SDHCI SDMA"
394 This enables support for the SDMA (Single Operation DMA) defined
395 in the SD Host Controller Standard Specification Version 1.00 .
397 config MMC_SDHCI_ADMA
398 bool "Support SDHCI ADMA2"
401 This enables support for the ADMA (Advanced DMA) defined
402 in the SD Host Controller Standard Specification Version 3.00
404 config SPL_MMC_SDHCI_ADMA
405 bool "Support SDHCI ADMA2 in SPL"
408 This enables support for the ADMA (Advanced DMA) defined
409 in the SD Host Controller Standard Specification Version 3.00 in SPL.
411 config MMC_SDHCI_ATMEL
412 bool "Atmel SDHCI controller support"
414 depends on DM_MMC && BLK && ARCH_AT91
417 This enables support for the Atmel SDHCI controller, which supports
418 the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
419 Memory Card Specification V3.0, and the SDIO V3.0 specification.
420 It is compliant with the SD Host Controller Standard V3.0
423 config MMC_SDHCI_BCM2835
424 tristate "SDHCI support for the BCM2835 SD/MMC Controller"
425 depends on ARCH_BCM283X
427 select MMC_SDHCI_IO_ACCESSORS
429 This selects the BCM2835 SD/MMC controller.
431 If you have a BCM2835 platform with SD or MMC devices,
436 config MMC_SDHCI_BCMSTB
437 tristate "SDHCI support for the BCMSTB SD/MMC Controller"
440 This selects the Broadcom set-top box SD/MMC controller.
442 If you have a BCMSTB platform with SD or MMC devices,
447 config MMC_SDHCI_CADENCE
448 bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
449 depends on BLK && DM_MMC
451 depends on OF_CONTROL
453 This selects the Cadence SD/SDIO/eMMC driver.
455 If you have a controller with this interface, say Y here.
459 config MMC_SDHCI_K3_ARASAN
460 bool "Arasan SDHCI controller for TI's K3 based SoCs"
463 depends on DM_MMC && OF_CONTROL && BLK
465 Support for Arasan SDHCI host controller on Texas Instruments'
466 K3 family based SoC platforms
468 config MMC_SDHCI_KONA
469 bool "SDHCI support on Broadcom KONA platform"
472 This selects the Broadcom Kona Secure Digital Host Controller
473 Interface(SDHCI) support.
474 This is used in Broadcom mobile SoCs.
476 If you have a controller with this interface, say Y here.
479 bool "Qualcomm SDHCI controller"
480 depends on BLK && DM_MMC
483 Enables support for SDHCI 2.0 controller present on some Qualcomm
484 Snapdragon devices. This device is compatible with eMMC v4.5 and
485 SD 3.0 specifications. Both SD and eMMC devices are supported.
486 Card-detect gpios are not supported.
489 bool "SDHCI support on Marvell platform"
490 depends on ARCH_MVEBU
493 This selects the Secure Digital Host Controller Interface on
496 If you have a controller with this interface, say Y here.
500 config MMC_SDHCI_PIC32
501 bool "Microchip PIC32 on-chip SDHCI support"
502 depends on DM_MMC && MACH_PIC32
505 Support for Microchip PIC32 SDHCI controller.
507 config MMC_SDHCI_ROCKCHIP
508 bool "Arasan SDHCI controller for Rockchip support"
509 depends on ARCH_ROCKCHIP
510 depends on DM_MMC && BLK
513 Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
516 bool "SDHCI support on Samsung S5P SoC"
519 This selects the Secure Digital Host Controller Interface (SDHCI)
522 If you have a controller with this interface, say Y here.
526 config MMC_SDHCI_SPEAR
527 bool "SDHCI support on ST SPEAr platform"
530 This selects the Secure Digital Host Controller Interface (SDHCI)
531 often referrered to as the HSMMC block in some of the ST SPEAR range
534 If you have a controller with this interface, say Y here.
539 bool "SDHCI support for STMicroelectronics SoC"
540 depends on MMC_SDHCI && OF_CONTROL
542 This selects the Secure Digital Host Controller Interface (SDHCI)
543 on STMicroelectronics STiH410 SoC.
545 config MMC_SDHCI_XENON
546 bool "SDHCI support for the Xenon SDHCI controller"
547 depends on MMC_SDHCI && DM_MMC && OF_CONTROL
549 Support for Xenon SDHCI host controller on Marvell Armada 3700
550 7k/8k ARM SoCs platforms
552 If you have a controller with this interface, say Y here.
556 config MMC_SDHCI_TANGIER
557 bool "Tangier SDHCI controller support"
558 depends on DM_MMC && BLK
561 This selects support for SDHCI controller on Tanginer
562 SoC. Note that this controller does not sit on PCI bus and,
563 hence, cannot be enumerated by standard PCI means.
565 If you're using an Intel Tangier SoC (available on Intel
566 Edison board), say Y here.
570 config MMC_SDHCI_TEGRA
571 bool "SDHCI platform support for the Tegra SD/MMC Controller"
576 This selects the Tegra SD/MMC controller. If you have a Tegra
577 platform with SD or MMC devices, say Y here.
581 config MMC_SDHCI_ZYNQ
582 bool "Arasan SDHCI controller support"
583 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
584 depends on DM_MMC && OF_CONTROL && BLK
587 Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
589 config ZYNQ_SDHCI_MAX_FREQ
590 int "Set the maximum frequency of the controller"
591 depends on MMC_SDHCI_ZYNQ
593 Set the maximum frequency of the controller.
595 config ZYNQ_SDHCI_MIN_FREQ
596 int "Set the minimum frequency of the controller"
597 depends on MMC_SDHCI_ZYNQ
600 Set the minimum frequency of the controller.
603 bool "Allwinner sunxi SD/MMC Host Controller support"
604 depends on ARCH_SUNXI && !UART0_PORT_F
607 This selects support for the SD/MMC Host Controller on
608 Allwinner sunxi SoCs.
610 config MMC_SUNXI_HAS_NEW_MODE
614 config MMC_SUNXI_HAS_MODE_SWITCH
618 config GENERIC_ATMEL_MCI
619 bool "Atmel Multimedia Card Interface support"
620 depends on DM_MMC && BLK && ARCH_AT91
622 This enables support for Atmel High Speed Multimedia Card Interface
623 (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
624 the SD Memory Card Specification V2.0, the SDIO V2.0 specification
628 bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
629 depends on DM_MMC && BLK && OF_CONTROL
631 This selects support for the SD/MMC controller on STM32H7 SoCs.
632 If you have a board based on such a SoC and with a SD/MMC slot,
636 bool "Ftsdc010 SD/MMC controller Support"
638 This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
641 bool "Support ftsdc010 sdio"
645 This can enable ftsdc010 sdio function.
648 bool "MediaTek SD/MMC Card Interface support"
649 depends on ARCH_MEDIATEK
650 depends on BLK && DM_MMC
651 depends on OF_CONTROL
653 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
654 If you have a machine with a integrated SD/MMC card reader, say Y or M here.
655 This is needed if support for any SD/SDIO/MMC devices is required.
660 config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
661 bool "Disable external clock loopback"
662 depends on MMC_SDHCI_TEGRA && TEGRA124
664 Disable the external clock loopback and use the internal one on SDMMC3
665 as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
666 being set to 0xfffd according to the TRM.
668 TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
669 approach once proper kernel integration made it mainline.
672 bool "Freescale/NXP eSDHC controller support"
674 This selects support for the eSDHC (Enhanced Secure Digital Host
675 Controller) found on numerous Freescale/NXP SoCs.
678 bool "Freescale/NXP i.MX eSDHC controller support"
680 This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
681 Controller) found on numerous Freescale/NXP SoCs.
685 config SYS_FSL_ERRATUM_ESDHC111
688 config SYS_FSL_ERRATUM_ESDHC13
691 config SYS_FSL_ERRATUM_ESDHC135
694 config SYS_FSL_ERRATUM_ESDHC_A001