mmc: nuvoton: Add NPCM7xx mmc driver
[platform/kernel/u-boot.git] / drivers / mmc / Kconfig
1 menu "MMC Host controller Support"
2
3 config MMC
4         bool "MMC/SD/SDIO card support"
5         default ARM || PPC || SANDBOX
6         select HAVE_BLOCK_DEVICE
7         select DM_MMC if DM
8         help
9           This selects MultiMediaCard, Secure Digital and Secure
10           Digital I/O support.
11
12           If you want MMC/SD/SDIO support, you should say Y here and
13           also to your specific host controller driver.
14
15 config MMC_WRITE
16         bool "support for MMC/SD write operations"
17         depends on MMC
18         default y
19         help
20           Enable write access to MMC and SD Cards
21
22 config MMC_PWRSEQ
23         bool "HW reset support for eMMC"
24         depends on PWRSEQ
25         help
26           Ths select Hardware reset support aka pwrseq-emmc for eMMC
27           devices.
28
29 config MMC_BROKEN_CD
30         bool "Poll for broken card detection case"
31         help
32           If card  detection feature is broken, just poll to detect.
33
34 config DM_MMC
35         bool "Enable MMC controllers using Driver Model"
36         depends on DM
37         select BLK
38         help
39           This enables the MultiMediaCard (MMC) uclass which supports MMC and
40           Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
41           and non-removable (e.g. eMMC chip) devices are supported. These
42           appear as block devices in U-Boot and can support filesystems such
43           as EXT4 and FAT.
44
45 config SPL_DM_MMC
46         bool "Enable MMC controllers using Driver Model in SPL"
47         depends on SPL_DM && DM_MMC
48         default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
49         default y
50         help
51           This enables the MultiMediaCard (MMC) uclass which supports MMC and
52           Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
53           and non-removable (e.g. eMMC chip) devices are supported. These
54           appear as block devices in U-Boot and can support filesystems such
55           as EXT4 and FAT.
56
57 if MMC
58
59 config MMC_SDHCI_ADMA_HELPERS
60         bool
61
62 config MMC_SPI
63         bool "Support for SPI-based MMC controller"
64         depends on DM_MMC && DM_SPI
65         help
66           This selects SPI-based MMC controllers.
67           If you have an MMC controller on a SPI bus, say Y here.
68
69           If unsure, say N.
70
71 config MMC_SPI_CRC_ON
72         bool "Support CRC for SPI-based MMC controller"
73         depends on MMC_SPI
74         default y
75         help
76           This enables CRC for SPI-based MMC controllers.
77
78           If unsure, say N.
79
80 config ARM_PL180_MMCI
81         bool "ARM AMBA Multimedia Card Interface and compatible support"
82         help
83           This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
84           Interface (PL180, PL181 and compatible) support.
85           If you have an ARM(R) platform with a Multimedia Card slot,
86           say Y or M here.
87
88 config MMC_QUIRKS
89         bool "Enable quirks"
90         default y
91         help
92           Some cards and hosts may sometimes behave unexpectedly (quirks).
93           This option enable workarounds to handle those quirks. Some of them
94           are enabled by default, other may require additional flags or are
95           enabled by the host driver.
96
97 config MMC_HW_PARTITIONING
98         bool "Support for HW partitioning command(eMMC)"
99         default y
100         help
101           This adds a command and an API to do hardware partitioning on eMMC
102           devices.
103
104 config SUPPORT_EMMC_RPMB
105         bool "Support eMMC replay protected memory block (RPMB)"
106         imply CMD_MMC_RPMB
107         help
108           Enable support for reading, writing and programming the
109           key for the Replay Protection Memory Block partition in eMMC.
110
111 config SUPPORT_EMMC_BOOT
112         bool "Support some additional features of the eMMC boot partitions"
113         help
114           Enable support for eMMC boot partitions. This also enables
115           extensions within the mmc command.
116
117 config MMC_IO_VOLTAGE
118         bool "Support IO voltage configuration"
119         help
120           IO voltage configuration allows selecting the voltage level of the IO
121           lines (not the level of main supply). This is required for UHS
122           support. For eMMC this not mandatory, but not enabling this option may
123           prevent the driver of using the faster modes.
124
125 config SPL_MMC_IO_VOLTAGE
126         bool "Support IO voltage configuration in SPL"
127         depends on SPL_MMC
128         help
129           IO voltage configuration allows selecting the voltage level of the IO
130           lines (not the level of main supply). This is required for UHS
131           support. For eMMC this not mandatory, but not enabling this option may
132           prevent the driver of using the faster modes.
133
134 config MMC_UHS_SUPPORT
135         bool "enable UHS support"
136         depends on MMC_IO_VOLTAGE
137         help
138           The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
139           cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
140           frequency can go up to 208MHz (SDR104)
141
142 config SPL_MMC_UHS_SUPPORT
143         bool "enable UHS support in SPL"
144         depends on SPL_MMC_IO_VOLTAGE
145         help
146           The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
147           cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
148           frequency can go up to 208MHz (SDR104)
149
150 config MMC_HS400_ES_SUPPORT
151         bool "enable HS400 Enhanced Strobe support"
152         help
153           The HS400 Enhanced Strobe mode is support by some eMMC. The bus
154           frequency is up to 200MHz. This mode does not tune the IO.
155
156 config SPL_MMC_HS400_ES_SUPPORT
157         bool "enable HS400 Enhanced Strobe support in SPL"
158         depends on SPL_MMC
159         help
160           The HS400 Enhanced Strobe mode is support by some eMMC. The bus
161           frequency is up to 200MHz. This mode does not tune the IO.
162
163 config MMC_HS400_SUPPORT
164         bool "enable HS400 support"
165         select MMC_HS200_SUPPORT
166         help
167           The HS400 mode is support by some eMMC. The bus frequency is up to
168           200MHz. This mode requires tuning the IO.
169
170 config SPL_MMC_HS400_SUPPORT
171         bool "enable HS400 support in SPL"
172         depends on SPL_MMC
173         select SPL_MMC_HS200_SUPPORT
174         help
175           The HS400 mode is support by some eMMC. The bus frequency is up to
176           200MHz. This mode requires tuning the IO.
177
178 config MMC_HS200_SUPPORT
179         bool "enable HS200 support"
180         help
181           The HS200 mode is support by some eMMC. The bus frequency is up to
182           200MHz. This mode requires tuning the IO.
183
184 config SPL_MMC_HS200_SUPPORT
185         bool "enable HS200 support in SPL"
186         depends on SPL_MMC
187         help
188           The HS200 mode is support by some eMMC. The bus frequency is up to
189           200MHz. This mode requires tuning the IO.
190
191 config MMC_VERBOSE
192         bool "Output more information about the MMC"
193         default y
194         help
195           Enable the output of more information about the card such as the
196           operating mode.
197
198 config MMC_TRACE
199         bool "MMC debugging"
200         help
201           This is an option for use by developer. Enable MMC core debugging.
202
203           If you need to see the MMC core message, say Y.
204
205 config MMC_DAVINCI
206         bool "TI DAVINCI Multimedia Card Interface support"
207         depends on ARCH_DAVINCI
208         default y
209         help
210           This selects the TI DAVINCI Multimedia card Interface.
211           If you have an DAVINCI board with a Multimedia Card slot,
212           say Y here.  If unsure, say N.
213
214 config MMC_DW
215         bool "Synopsys DesignWare Memory Card Interface"
216         select BOUNCE_BUFFER
217         help
218           This selects support for the Synopsys DesignWare Mobile Storage IP
219           block, this provides host support for SD and MMC interfaces, in both
220           PIO, internal DMA mode and external DMA mode.
221
222 config MMC_DW_CORTINA
223         bool "Cortina specific extensions for Synopsys DW Memory Card Interface"
224         depends on DM_MMC
225         depends on MMC_DW
226         depends on BLK
227         help
228           This selects support for Cortina SoC specific extensions to the
229           Synopsys DesignWare Memory Card Interface driver. Select this option
230           for platforms based on Cortina CAxxxx Soc's.
231
232 config MMC_DW_EXYNOS
233         bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
234         depends on ARCH_EXYNOS
235         depends on MMC_DW
236         default y
237         help
238           This selects support for Samsung Exynos SoC specific extensions to the
239           Synopsys DesignWare Memory Card Interface driver. Select this option
240           for platforms based on Exynos4 and Exynos5 SoC's.
241
242 config MMC_DW_K3
243         bool "K3 specific extensions for Synopsys DW Memory Card Interface"
244         depends on MMC_DW
245         help
246           This selects support for Hisilicon K3 SoC specific extensions to the
247           Synopsys DesignWare Memory Card Interface driver. Select this option
248           for platforms based on Hisilicon K3 SoC's.
249
250 config MMC_DW_ROCKCHIP
251         bool "Rockchip SD/MMC controller support"
252         depends on DM_MMC && OF_CONTROL
253         depends on MMC_DW
254         help
255           This enables support for the Rockchip SD/MMM controller, which is
256           based on Designware IP. The device is compatible with at least
257           SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
258           as removeable SD and micro-SD cards.
259
260 config MMC_DW_SOCFPGA
261         bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
262         depends on ARCH_SOCFPGA
263         depends on MMC_DW
264         default y
265         help
266           This selects support for Altera SOCFPGA specific extensions to the
267           Synopsys DesignWare Memory Card Interface driver. Select this option
268           for platforms based on Altera SOCFPGA.
269
270 config MMC_DW_SNPS
271         bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
272         depends on MMC_DW
273         depends on DM_MMC
274         depends on OF_CONTROL
275         depends on CLK
276         help
277           This selects support for Synopsys DesignWare Memory Card Interface driver
278           extensions used in various Synopsys ARC devboards.
279
280 config NEXELL_DWMMC
281         bool "Nexell SD/MMC controller support"
282         depends on ARCH_NEXELL
283         depends on MMC_DW
284         depends on DM_MMC
285         depends on PINCTRL_NEXELL
286         default y
287
288 config MMC_MESON_GX
289         bool "Meson GX EMMC controller support"
290         depends on DM_MMC && BLK && ARCH_MESON
291         help
292          Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
293
294 config MMC_MXC
295         bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
296         help
297           This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
298           Multimedia Card Interface. If you have an i.MX or MPC512x platform
299           with a Multimedia Card slot, say Y here.
300
301           If unsure, say N.
302
303 config MMC_OWL
304         bool "Actions OWL Multimedia Card Interface support"
305         depends on ARCH_OWL && DM_MMC && BLK
306         help
307           This selects the OWL SD/MMC host controller found on board
308           based on Actions S700/S900 SoC.
309
310 config MMC_MXS
311         bool "Freescale MXS Multimedia Card Interface support"
312         depends on MX23 || MX28 || MX6 || MX7
313         select BOUNCE_BUFFER
314         select APBH_DMA
315         select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
316         select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
317         help
318           This selects the Freescale SSP MMC controller found on MXS based
319           platforms like mx23/28.
320
321           If unsure, say N.
322
323 config MMC_PCI
324         bool "Support for MMC controllers on PCI"
325         depends on MMC_SDHCI
326         help
327           This selects PCI-based MMC controllers.
328           If you have an MMC controller on a PCI bus, say Y here.
329
330 config MMC_OCTEONTX
331         bool "Marvell Octeon Multimedia Card Interface support"
332         depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
333         depends on DM_MMC
334         help
335           This selects the Octeon Multimedia card Interface.
336           If you have an OcteonTX/TX2 or MIPS Octeon board with a
337           Multimedia Card slot, say Y here.
338
339           If unsure, say N.
340
341 config MVEBU_MMC
342         bool "Kirkwood MMC controller support"
343         depends on DM_MMC && BLK && ARCH_KIRKWOOD
344         help
345           Support for MMC host controller on Kirkwood SoCs.
346           If you are on a Kirkwood architecture, say Y here.
347
348           If unsure, say N.
349
350 config MMC_OMAP_HS
351         bool "TI OMAP High Speed Multimedia Card Interface support"
352         select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
353         select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
354         help
355           This selects the TI OMAP High Speed Multimedia card Interface.
356           If you have an omap2plus board with a Multimedia Card slot,
357           say Y here.
358
359           If unsure, say N.
360
361 config MMC_OMAP_HS_ADMA
362         bool "ADMA support for OMAP HS MMC"
363         depends on MMC_OMAP_HS && !OMAP34XX
364         default y if !AM33XX
365         help
366           This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
367           controller). If supported by the hardware, selecting this option will
368           increase performances.
369
370 config MMC_OMAP36XX_PINS
371         bool "Enable MMC1 on OMAP36xx/37xx"
372         depends on OMAP34XX && MMC_OMAP_HS
373         help
374           This enables extended-drain in the MMC/SD/SDIO1I/O and
375           GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
376           specific to the OMAP36xx/37xx using MMC1
377
378           If you have a controller with this interface, say Y here.
379
380           If unsure, say N.
381
382 config SH_SDHI
383         bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
384         depends on ARCH_RMOBILE
385         help
386           Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
387
388 config SH_MMCIF
389         bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
390         depends on ARCH_RMOBILE || SH
391         help
392           Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
393
394 config MMC_UNIPHIER
395         bool "UniPhier SD/MMC Host Controller support"
396         depends on ARCH_UNIPHIER
397         depends on BLK && DM_MMC
398         depends on OF_CONTROL
399         help
400           This selects support for the Matsushita SD/MMC Host Controller on
401           SocioNext UniPhier SoCs.
402
403 config RENESAS_SDHI
404         bool "Renesas R-Car SD/MMC Host Controller support"
405         depends on ARCH_RMOBILE
406         depends on BLK && DM_MMC
407         depends on OF_CONTROL
408         select BOUNCE_BUFFER
409         help
410           This selects support for the Matsushita SD/MMC Host Controller on
411           Renesas R-Car SoCs.
412
413 config MMC_BCM2835
414         bool "BCM2835 family custom SD/MMC Host Controller support"
415         depends on ARCH_BCM283X
416         depends on BLK && DM_MMC
417         depends on OF_CONTROL
418         default y
419         help
420           This selects support for the custom SD host controller in the BCM2835
421           family of devices.
422
423           If you have a BCM2835 platform with SD or MMC devices, say Y here.
424
425           If unsure, say N.
426
427 config JZ47XX_MMC
428         bool "Ingenic JZ47xx SD/MMC Host Controller support"
429         depends on ARCH_JZ47XX
430         help
431           This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
432
433 config MMC_SANDBOX
434         bool "Sandbox MMC support"
435         depends on SANDBOX
436         depends on BLK && DM_MMC && OF_CONTROL
437         help
438           This select a dummy sandbox MMC driver. At present this does nothing
439           other than allow sandbox to be build with MMC support. This
440           improves build coverage for sandbox and makes it easier to detect
441           MMC build errors with sandbox.
442
443 config MMC_SDHCI
444         bool "Secure Digital Host Controller Interface support"
445         help
446           This selects the generic Secure Digital Host Controller Interface.
447           It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
448           and Toshiba(R). Most controllers found in laptops are of this type.
449
450           If you have a controller with this interface, say Y here.
451
452           If unsure, say N.
453
454 config MMC_SDHCI_IO_ACCESSORS
455         bool
456         depends on MMC_SDHCI
457         help
458           This is silent Kconfig symbol that is selected by the drivers that
459           need to overwrite SDHCI IO memory accessors.
460
461 config MMC_SDHCI_SDMA
462         bool "Support SDHCI SDMA"
463         depends on MMC_SDHCI
464         help
465           This enables support for the SDMA (Single Operation DMA) defined
466           in the SD Host Controller Standard Specification Version 1.00 .
467
468 config MMC_SDHCI_ADMA
469         bool "Support SDHCI ADMA2"
470         depends on MMC_SDHCI
471         select MMC_SDHCI_ADMA_HELPERS
472         help
473           This enables support for the ADMA (Advanced DMA) defined
474           in the SD Host Controller Standard Specification Version 3.00
475
476 config SPL_MMC_SDHCI_ADMA
477         bool "Support SDHCI ADMA2 in SPL"
478         depends on SPL_MMC && MMC_SDHCI
479         select MMC_SDHCI_ADMA_HELPERS
480         help
481           This enables support for the ADMA (Advanced DMA) defined
482           in the SD Host Controller Standard Specification Version 3.00 in SPL.
483
484 config FIXED_SDHCI_ALIGNED_BUFFER
485         hex "SDRAM address for fixed buffer"
486         depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC
487         default 0x00180000
488         help
489           On the Marvell Armada 38x when the SPL runs it located in internal
490           SRAM which is the L2 cache locked to memory. When the MMC buffers
491           are located on the stack (or bss), the SDIO controller (SDHCI) can't
492           write into this L2 cache memory.
493
494           This specifies the address of a fixed buffer located in SDRAM that
495           will be used for all SDHCI transfers in the SPL.
496
497 config MMC_SDHCI_ASPEED
498         bool "Aspeed SDHCI controller"
499         depends on ARCH_ASPEED
500         depends on DM_MMC
501         depends on MMC_SDHCI
502         select MISC
503         help
504           Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
505           SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
506           specifications. On the AST2600, the device is also compatible with
507           MMC 5.1 and eMMC 3.0.
508
509 config MMC_SDHCI_ATMEL
510         bool "Atmel SDHCI controller support"
511         depends on ARCH_AT91
512         depends on DM_MMC && BLK && ARCH_AT91
513         depends on MMC_SDHCI
514         help
515           This enables support for the Atmel SDHCI controller, which supports
516           the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
517           Memory Card Specification V3.0, and the SDIO V3.0 specification.
518           It is compliant with the SD Host Controller Standard V3.0
519           specification.
520
521 config MMC_SDHCI_BCM2835
522         tristate "SDHCI support for the BCM2835 SD/MMC Controller"
523         depends on ARCH_BCM283X
524         depends on MMC_SDHCI
525         select MMC_SDHCI_IO_ACCESSORS
526         help
527           This selects the BCM2835 SD/MMC controller.
528
529           If you have a BCM2835 platform with SD or MMC devices,
530           say Y here.
531
532           If unsure, say N.
533
534 config MMC_SDHCI_BCMSTB
535         tristate "SDHCI support for the BCMSTB SD/MMC Controller"
536         depends on MMC_SDHCI
537         help
538           This selects the Broadcom set-top box SD/MMC controller.
539
540           If you have a BCMSTB platform with SD or MMC devices,
541           say Y here.
542
543           If unsure, say N.
544
545 config MMC_SDHCI_CADENCE
546         bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
547         depends on BLK && DM_MMC
548         depends on MMC_SDHCI
549         depends on OF_CONTROL
550         help
551           This selects the Cadence SD/SDIO/eMMC driver.
552
553           If you have a controller with this interface, say Y here.
554
555           If unsure, say N.
556
557 config MMC_SDHCI_AM654
558         bool "SDHCI Controller on TI's Am654 devices"
559         depends on ARCH_K3
560         depends on MMC_SDHCI
561         depends on DM_MMC && OF_CONTROL && BLK
562         depends on REGMAP
563         select MMC_SDHCI_IO_ACCESSORS
564         help
565           Support for Secure Digital Host Controller Interface (SDHCI)
566           controllers present on TI's AM654 SOCs.
567
568 config MMC_SDHCI_IPROC
569         bool "SDHCI support for the iProc SD/MMC Controller"
570         depends on MMC_SDHCI
571         help
572           This selects the iProc SD/MMC controller.
573
574           If you have a Broadcom IPROC platform with SD or MMC devices,
575           say Y or M here.
576
577           If unsure, say N.
578
579 config MMC_SDHCI_F_SDH30
580         bool "SDHCI support for Fujitsu Semiconductor F_SDH30"
581         depends on BLK && DM_MMC
582         depends on MMC_SDHCI
583         help
584           This selects the Secure Digital Host Controller Interface (SDHCI)
585           Needed by some Fujitsu SoC for MMC / SD / SDIO support.
586           If you have a controller with this interface, say Y or M here.
587           If unsure, say N.
588
589 config MMC_SDHCI_KONA
590         bool "SDHCI support on Broadcom KONA platform"
591         depends on MMC_SDHCI
592         help
593           This selects the Broadcom Kona Secure Digital Host Controller
594           Interface(SDHCI) support.
595           This is used in Broadcom mobile SoCs.
596
597           If you have a controller with this interface, say Y here.
598
599 config MMC_SDHCI_MSM
600         bool "Qualcomm SDHCI controller"
601         depends on BLK && DM_MMC
602         depends on MMC_SDHCI
603         help
604           Enables support for SDHCI 2.0 controller present on some Qualcomm
605           Snapdragon devices. This device is compatible with eMMC v4.5 and
606           SD 3.0 specifications. Both SD and eMMC devices are supported.
607           Card-detect gpios are not supported.
608
609 config MMC_SDHCI_MV
610         bool "SDHCI support on Marvell platform"
611         depends on ARCH_MVEBU
612         depends on MMC_SDHCI
613         help
614           This selects the Secure Digital Host Controller Interface on
615           Marvell platform.
616
617           If you have a controller with this interface, say Y here.
618
619           If unsure, say N.
620
621 config MMC_SDHCI_NPCM
622         bool "SDHCI support on Nuvoton NPCM device"
623         depends on MMC_SDHCI
624         depends on DM_MMC
625         help
626           This selects the Secure Digital Host Controller Interface (SDHCI)
627           on Nuvoton NPCM device.
628
629           If you have a controller with this interface, say Y here.
630
631           If unsure, say N.
632
633 config MMC_SDHCI_PIC32
634         bool "Microchip PIC32 on-chip SDHCI support"
635         depends on DM_MMC && MACH_PIC32
636         depends on MMC_SDHCI
637         help
638           Support for Microchip PIC32 SDHCI controller.
639
640 config MMC_SDHCI_ROCKCHIP
641         bool "Arasan SDHCI controller for Rockchip support"
642         depends on ARCH_ROCKCHIP
643         depends on DM_MMC && BLK
644         depends on MMC_SDHCI
645         help
646           Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
647
648 config MMC_SDHCI_S5P
649         bool "SDHCI support on Samsung S5P SoC"
650         depends on MMC_SDHCI
651         help
652           This selects the Secure Digital Host Controller Interface (SDHCI)
653           on Samsung S5P SoCs.
654
655           If you have a controller with this interface, say Y here.
656
657           If unsure, say N.
658
659 config MMC_SDHCI_SPEAR
660         bool "SDHCI support on ST SPEAr platform"
661         depends on MMC_SDHCI
662         help
663           This selects the Secure Digital Host Controller Interface (SDHCI)
664           often referrered to as the HSMMC block in some of the ST SPEAR range
665           of SoC
666
667           If you have a controller with this interface, say Y here.
668
669           If unsure, say N.
670
671 config MMC_SDHCI_STI
672         bool "SDHCI support for STMicroelectronics SoC"
673         depends on MMC_SDHCI && OF_CONTROL
674         help
675           This selects the Secure Digital Host Controller Interface (SDHCI)
676           on STMicroelectronics STiH410 SoC.
677
678 config MMC_SDHCI_XENON
679         bool "SDHCI support for the Xenon SDHCI controller"
680         depends on MMC_SDHCI && DM_MMC && OF_CONTROL
681         help
682           Support for Xenon SDHCI host controller on Marvell Armada 3700
683           7k/8k ARM SoCs platforms
684
685           If you have a controller with this interface, say Y here.
686
687           If unsure, say N.
688
689 config MMC_SDHCI_TANGIER
690         bool "Tangier SDHCI controller support"
691         depends on DM_MMC && BLK
692         depends on MMC_SDHCI
693         help
694           This selects support for SDHCI controller on Tanginer
695           SoC. Note that this controller does not sit on PCI bus and,
696           hence, cannot be enumerated by standard PCI means.
697
698           If you're using an Intel Tangier SoC (available on Intel
699           Edison board), say Y here.
700
701           If unsure, say N.
702
703 config MMC_SDHCI_TEGRA
704         bool "SDHCI platform support for the Tegra SD/MMC Controller"
705         depends on ARCH_TEGRA
706         select BOUNCE_BUFFER
707         default y
708         help
709           This selects the Tegra SD/MMC controller. If you have a Tegra
710           platform with SD or MMC devices, say Y here.
711
712           If unsure, say N.
713
714 config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
715         bool "Disable external clock loopback"
716         depends on MMC_SDHCI_TEGRA && TEGRA124
717         help
718           Disable the external clock loopback and use the internal one on SDMMC3
719           as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
720           being set to 0xfffd according to the TRM.
721
722           TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
723           approach once proper kernel integration made it mainline.
724
725 config MMC_SDHCI_ZYNQ
726         bool "Arasan SDHCI controller support"
727         depends on DM_MMC && OF_CONTROL && BLK
728         depends on MMC_SDHCI
729         help
730           Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
731
732 config ZYNQ_SDHCI_MAX_FREQ
733         int "Set the maximum frequency of the controller"
734         depends on MMC_SDHCI_ZYNQ
735         help
736           Set the maximum frequency of the controller.
737
738 config ZYNQ_SDHCI_MIN_FREQ
739         int "Set the minimum frequency of the controller"
740         depends on MMC_SDHCI_ZYNQ
741         default 0
742         help
743           Set the minimum frequency of the controller.
744
745 config ZYNQ_HISPD_BROKEN
746         bool "High speed broken for Zynq SDHCI controller"
747         depends on MMC_SDHCI_ZYNQ
748         help
749           Set if high speed mode is broken.
750
751 config MMC_SUNXI
752         bool "Allwinner sunxi SD/MMC Host Controller support"
753         depends on ARCH_SUNXI
754         default y
755         help
756           This selects support for the SD/MMC Host Controller on
757           Allwinner sunxi SoCs.
758
759 config MMC_SUNXI_HAS_NEW_MODE
760         bool
761         depends on MMC_SUNXI
762
763 config MMC_SUNXI_HAS_MODE_SWITCH
764         bool
765         depends on MMC_SUNXI
766
767 config MMC_PITON
768         bool "MMC support for OpenPiton SoC"
769         depends on DM_MMC && BLK
770         help
771           This selects support for the SD host controller on OpenPiton SoC.
772           Note that this SD controller directly exposes the contents of the
773           SD card as memory mapped, so there is no manual configuration
774           required
775
776 config GENERIC_ATMEL_MCI
777         bool "Atmel Multimedia Card Interface support"
778         depends on DM_MMC && BLK && ARCH_AT91
779         help
780           This enables support for Atmel High Speed Multimedia Card Interface
781           (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
782           the SD Memory Card Specification V2.0, the SDIO V2.0 specification
783           and CE-ATA V1.1.
784
785 config STM32_SDMMC2
786         bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
787         depends on DM_MMC && BLK && OF_CONTROL
788         help
789           This selects support for the SD/MMC controller on STM32H7 SoCs.
790           If you have a board based on such a SoC and with a SD/MMC slot,
791           say Y or M here.
792
793 config FTSDC010
794         bool "Ftsdc010 SD/MMC controller Support"
795         help
796           This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
797
798 config FTSDC010_SDIO
799         bool "Support ftsdc010 sdio"
800         depends on FTSDC010
801         help
802                 This can enable ftsdc010 sdio function.
803
804 config MMC_MTK
805         bool "MediaTek SD/MMC Card Interface support"
806         depends on ARCH_MEDIATEK || ARCH_MTMIPS
807         depends on BLK && DM_MMC
808         depends on OF_CONTROL
809         help
810           This selects the MediaTek(R) Secure digital and Multimedia card Interface.
811           If you have a machine with a integrated SD/MMC card reader, say Y or M here.
812           This is needed if support for any SD/SDIO/MMC devices is required.
813           If unsure, say N.
814
815 endif
816
817 config FSL_ESDHC
818         bool "Freescale/NXP eSDHC controller support"
819         help
820           This selects support for the eSDHC (Enhanced Secure Digital Host
821           Controller) found on numerous Freescale/NXP SoCs.
822
823 config FSL_ESDHC_SUPPORT_ADMA2
824         bool "enable ADMA2 support"
825         depends on FSL_ESDHC
826         select MMC_SDHCI_ADMA_HELPERS
827         help
828           This enables support for the ADMA2 transfer mode. If supported by the
829           eSDHC it will allow 64bit DMA addresses.
830
831 config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
832         bool "enable eSDHC workaround for 3.3v IO reliability issue"
833         depends on FSL_ESDHC && DM_MMC
834         help
835           When eSDHC operates at 3.3v, damage can accumulate in an internal
836           level shifter at a higher than expected rate. The faster the interface
837           runs, the more damage accumulates. This issue now is found on LX2160A
838           eSDHC1 for only SD card. The hardware workaround is recommended to use
839           an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
840           side. For boards without hardware workaround, this option could be
841           enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
842           This option assumes no hotplug, and u-boot has to make all the way to
843           to linux to use 1.8v UHS-I speed mode if has card.
844
845 config FSL_ESDHC_VS33_NOT_SUPPORT
846         bool "3.3V power supply not supported"
847         depends on FSL_ESDHC
848         help
849           For eSDHC, power supply is through peripheral circuit. 3.3V support is
850           common. Select this if 3.3V power supply not supported.
851
852 config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
853         int
854         depends on FSL_ESDHC
855         default 1
856
857 config ESDHC_DETECT_QUIRK
858         bool "QIXIS-based eSDHC quirk detection"
859         depends on FSL_ESDHC && FSL_QIXIS
860
861 config FSL_ESDHC_IMX
862         bool "Freescale/NXP i.MX eSDHC controller support"
863         help
864           This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
865           Controller) found on numerous Freescale/NXP SoCs.
866
867 config FSL_USDHC
868         bool "Freescale/NXP i.MX uSDHC controller support"
869         depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT
870         select FSL_ESDHC_IMX
871         help
872           This enables the Ultra Secured Digital Host Controller enhancements
873
874 endmenu
875
876 config SYS_FSL_ERRATUM_ESDHC111
877         bool
878
879 config SYS_FSL_ERRATUM_ESDHC13
880         bool
881
882 config SYS_FSL_ERRATUM_ESDHC135
883         bool
884
885 config SYS_FSL_ERRATUM_ESDHC_A001
886         bool
887
888 config SYS_FSL_ERRATUM_A011334
889         bool
890
891 config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
892         bool