xref: /openbmc/u-boot/drivers/mmc/Kconfig (revision cf17789e)
172d42badSNobuhiro Iwamatsumenu "MMC Host controller Support"
272d42badSNobuhiro Iwamatsu
37a777f6dSMaxime Ripardconfig MMC
4c2726995SMasahiro Yamada	bool "MMC/SD/SDIO card support"
5c2726995SMasahiro Yamada	default ARM || PPC || SANDBOX
67a777f6dSMaxime Ripard	help
7c2726995SMasahiro Yamada	  This selects MultiMediaCard, Secure Digital and Secure
8c2726995SMasahiro Yamada	  Digital I/O support.
9c2726995SMasahiro Yamada
10c2726995SMasahiro Yamada	  If you want MMC/SD/SDIO support, you should say Y here and
11c2726995SMasahiro Yamada	  also to your specific host controller driver.
127a777f6dSMaxime Ripard
13e7ecf7cbSSimon Glassconfig DM_MMC
14e7ecf7cbSSimon Glass	bool "Enable MMC controllers using Driver Model"
15e7ecf7cbSSimon Glass	depends on DM
16e7ecf7cbSSimon Glass	help
1762a3b7ddSRobert P. J. Day	  This enables the MultiMediaCard (MMC) uclass which supports MMC and
18e7ecf7cbSSimon Glass	  Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
19e7ecf7cbSSimon Glass	  and non-removable (e.g. eMMC chip) devices are supported. These
20e7ecf7cbSSimon Glass	  appear as block devices in U-Boot and can support filesystems such
21e7ecf7cbSSimon Glass	  as EXT4 and FAT.
22e7ecf7cbSSimon Glass
23c4d660d4SSimon Glassconfig SPL_DM_MMC
24c4d660d4SSimon Glass	bool "Enable MMC controllers using Driver Model in SPL"
25c4d660d4SSimon Glass	depends on SPL_DM && DM_MMC
26c4d660d4SSimon Glass	default y
27c4d660d4SSimon Glass	help
28c4d660d4SSimon Glass	  This enables the MultiMediaCard (MMC) uclass which supports MMC and
29c4d660d4SSimon Glass	  Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
30c4d660d4SSimon Glass	  and non-removable (e.g. eMMC chip) devices are supported. These
31c4d660d4SSimon Glass	  appear as block devices in U-Boot and can support filesystems such
32c4d660d4SSimon Glass	  as EXT4 and FAT.
33c4d660d4SSimon Glass
34e298c46aSMasahiro Yamadaif MMC
35e298c46aSMasahiro Yamada
363c0dbed2SPatrice Chotardconfig ARM_PL180_MMCI
373c0dbed2SPatrice Chotard	bool "ARM AMBA Multimedia Card Interface and compatible support"
383c0dbed2SPatrice Chotard	depends on DM_MMC && OF_CONTROL
393c0dbed2SPatrice Chotard	help
403c0dbed2SPatrice Chotard	  This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
413c0dbed2SPatrice Chotard	  Interface (PL180, PL181 and compatible) support.
423c0dbed2SPatrice Chotard	  If you have an ARM(R) platform with a Multimedia Card slot,
433c0dbed2SPatrice Chotard	  say Y or M here.
443c0dbed2SPatrice Chotard
4583dc4227SKishon Vijay Abraham Iconfig MMC_QUIRKS
4683dc4227SKishon Vijay Abraham I	bool "Enable quirks"
4783dc4227SKishon Vijay Abraham I	default y
4883dc4227SKishon Vijay Abraham I	help
4983dc4227SKishon Vijay Abraham I	  Some cards and hosts may sometimes behave unexpectedly (quirks).
5083dc4227SKishon Vijay Abraham I	  This option enable workarounds to handle those quirks. Some of them
5183dc4227SKishon Vijay Abraham I	  are enabled by default, other may require additionnal flags or are
5283dc4227SKishon Vijay Abraham I	  enabled by the host driver.
5383dc4227SKishon Vijay Abraham I
54*cf17789eSJean-Jacques Hiblotconfig MMC_HW_PARTITIONING
55*cf17789eSJean-Jacques Hiblot	bool "Support for HW partitioning command(eMMC)"
56*cf17789eSJean-Jacques Hiblot	default y
57*cf17789eSJean-Jacques Hiblot	help
58*cf17789eSJean-Jacques Hiblot	  This adds a command and an API to do hardware partitioning on eMMC
59*cf17789eSJean-Jacques Hiblot	  devices.
60*cf17789eSJean-Jacques Hiblot
61f99c2efeSJean-Jacques Hiblotconfig MMC_IO_VOLTAGE
62f99c2efeSJean-Jacques Hiblot	bool "Support IO voltage configuration"
63f99c2efeSJean-Jacques Hiblot	help
64f99c2efeSJean-Jacques Hiblot	  IO voltage configuration allows selecting the voltage level of the IO
65f99c2efeSJean-Jacques Hiblot	  lines (not the level of main supply). This is required for UHS
66f99c2efeSJean-Jacques Hiblot	  support. For eMMC this not mandatory, but not enabling this option may
67f99c2efeSJean-Jacques Hiblot	  prevent the driver of using the faster modes.
68f99c2efeSJean-Jacques Hiblot
69f99c2efeSJean-Jacques Hiblotconfig SPL_MMC_IO_VOLTAGE
70f99c2efeSJean-Jacques Hiblot	bool "Support IO voltage configuration in SPL"
71f99c2efeSJean-Jacques Hiblot	default n
72f99c2efeSJean-Jacques Hiblot	help
73f99c2efeSJean-Jacques Hiblot	  IO voltage configuration allows selecting the voltage level of the IO
74f99c2efeSJean-Jacques Hiblot	  lines (not the level of main supply). This is required for UHS
75f99c2efeSJean-Jacques Hiblot	  support. For eMMC this not mandatory, but not enabling this option may
76f99c2efeSJean-Jacques Hiblot	  prevent the driver of using the faster modes.
77f99c2efeSJean-Jacques Hiblot
78f99c2efeSJean-Jacques Hiblotconfig MMC_UHS_SUPPORT
79f99c2efeSJean-Jacques Hiblot	bool "enable UHS support"
80f99c2efeSJean-Jacques Hiblot	depends on MMC_IO_VOLTAGE
81f99c2efeSJean-Jacques Hiblot	help
82f99c2efeSJean-Jacques Hiblot	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
83f99c2efeSJean-Jacques Hiblot	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
84f99c2efeSJean-Jacques Hiblot	  frequency can go up to 208MHz (SDR104)
85f99c2efeSJean-Jacques Hiblot
86f99c2efeSJean-Jacques Hiblotconfig SPL_MMC_UHS_SUPPORT
87f99c2efeSJean-Jacques Hiblot	bool "enable UHS support in SPL"
88f99c2efeSJean-Jacques Hiblot	depends on SPL_MMC_IO_VOLTAGE
89f99c2efeSJean-Jacques Hiblot	help
90f99c2efeSJean-Jacques Hiblot	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
91f99c2efeSJean-Jacques Hiblot	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
92f99c2efeSJean-Jacques Hiblot	  frequency can go up to 208MHz (SDR104)
93f99c2efeSJean-Jacques Hiblot
94f99c2efeSJean-Jacques Hiblotconfig MMC_HS200_SUPPORT
95f99c2efeSJean-Jacques Hiblot	bool "enable HS200 support"
96f99c2efeSJean-Jacques Hiblot	help
97f99c2efeSJean-Jacques Hiblot	  The HS200 mode is support by some eMMC. The bus frequency is up to
98f99c2efeSJean-Jacques Hiblot	  200MHz. This mode requires tuning the IO.
99f99c2efeSJean-Jacques Hiblot
100f99c2efeSJean-Jacques Hiblot
101f99c2efeSJean-Jacques Hiblotconfig SPL_MMC_HS200_SUPPORT
102f99c2efeSJean-Jacques Hiblot	bool "enable HS200 support in SPL"
103f99c2efeSJean-Jacques Hiblot	help
104f99c2efeSJean-Jacques Hiblot	  The HS200 mode is support by some eMMC. The bus frequency is up to
105f99c2efeSJean-Jacques Hiblot	  200MHz. This mode requires tuning the IO.
106f99c2efeSJean-Jacques Hiblot
10735f9e196SJean-Jacques Hiblotconfig MMC_VERBOSE
10835f9e196SJean-Jacques Hiblot	bool "Output more information about the MMC"
10935f9e196SJean-Jacques Hiblot	default y
11035f9e196SJean-Jacques Hiblot	help
11135f9e196SJean-Jacques Hiblot	  Enable the output of more information about the card such as the
11235f9e196SJean-Jacques Hiblot	  operating mode.
11335f9e196SJean-Jacques Hiblot
114b5b838f1SMarek Vasutconfig SPL_MMC_TINY
115b5b838f1SMarek Vasut	bool "Tiny MMC framework in SPL"
116b5b838f1SMarek Vasut	help
117b5b838f1SMarek Vasut	  Enable MMC framework tinification support. This option is useful if
118b5b838f1SMarek Vasut	  if your SPL is extremely size constrained. Heed the warning, enable
119b5b838f1SMarek Vasut	  this option if and only if you know exactly what you are doing, if
120b5b838f1SMarek Vasut	  you are reading this help text, you most likely have no idea :-)
121b5b838f1SMarek Vasut
122b5b838f1SMarek Vasut	  The MMC framework is reduced to bare minimum to be useful. No malloc
123b5b838f1SMarek Vasut	  support is needed for the MMC framework operation with this option
124b5b838f1SMarek Vasut	  enabled. The framework supports exactly one MMC device and exactly
125b5b838f1SMarek Vasut	  one MMC driver. The MMC driver can be adjusted to avoid any malloc
126b5b838f1SMarek Vasut	  operations too, which can remove the need for malloc support in SPL
127b5b838f1SMarek Vasut	  and thus further reduce footprint.
128b5b838f1SMarek Vasut
1291d2c0506SMasahiro Yamadaconfig MMC_DAVINCI
1301d2c0506SMasahiro Yamada	bool "TI DAVINCI Multimedia Card Interface support"
1311d2c0506SMasahiro Yamada	depends on ARCH_DAVINCI
1321d2c0506SMasahiro Yamada	default y
1331d2c0506SMasahiro Yamada	help
1341d2c0506SMasahiro Yamada	  This selects the TI DAVINCI Multimedia card Interface.
1351d2c0506SMasahiro Yamada	  If you have an DAVINCI board with a Multimedia Card slot,
1361d2c0506SMasahiro Yamada	  say Y here.  If unsure, say N.
1371d2c0506SMasahiro Yamada
13855ed3b46SMasahiro Yamadaconfig MMC_DW
13955ed3b46SMasahiro Yamada	bool "Synopsys DesignWare Memory Card Interface"
14055ed3b46SMasahiro Yamada	help
14155ed3b46SMasahiro Yamada	  This selects support for the Synopsys DesignWare Mobile Storage IP
14255ed3b46SMasahiro Yamada	  block, this provides host support for SD and MMC interfaces, in both
14355ed3b46SMasahiro Yamada	  PIO, internal DMA mode and external DMA mode.
14455ed3b46SMasahiro Yamada
145ae4c81e9SMasahiro Yamadaconfig MMC_DW_EXYNOS
146ae4c81e9SMasahiro Yamada	bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
147ae4c81e9SMasahiro Yamada	depends on ARCH_EXYNOS
148ae4c81e9SMasahiro Yamada	depends on MMC_DW
149ae4c81e9SMasahiro Yamada	default y
150ae4c81e9SMasahiro Yamada	help
151ae4c81e9SMasahiro Yamada	  This selects support for Samsung Exynos SoC specific extensions to the
152ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
153ae4c81e9SMasahiro Yamada	  for platforms based on Exynos4 and Exynos5 SoC's.
154ae4c81e9SMasahiro Yamada
155ae4c81e9SMasahiro Yamadaconfig MMC_DW_K3
156ae4c81e9SMasahiro Yamada	bool "K3 specific extensions for Synopsys DW Memory Card Interface"
157ae4c81e9SMasahiro Yamada	depends on MMC_DW
158ae4c81e9SMasahiro Yamada	help
159ae4c81e9SMasahiro Yamada	  This selects support for Hisilicon K3 SoC specific extensions to the
160ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
161ae4c81e9SMasahiro Yamada	  for platforms based on Hisilicon K3 SoC's.
162ae4c81e9SMasahiro Yamada
163fed44087SMasahiro Yamadaconfig MMC_DW_ROCKCHIP
164a8cb4fb5SSimon Glass	bool "Rockchip SD/MMC controller support"
165a8cb4fb5SSimon Glass	depends on DM_MMC && OF_CONTROL
16655ed3b46SMasahiro Yamada	depends on MMC_DW
167a8cb4fb5SSimon Glass	help
168a8cb4fb5SSimon Glass	  This enables support for the Rockchip SD/MMM controller, which is
169a8cb4fb5SSimon Glass	  based on Designware IP. The device is compatible with at least
170a8cb4fb5SSimon Glass	  SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
171a8cb4fb5SSimon Glass	  as removeable SD and micro-SD cards.
172a8cb4fb5SSimon Glass
173ae4c81e9SMasahiro Yamadaconfig MMC_DW_SOCFPGA
174ae4c81e9SMasahiro Yamada	bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
175ae4c81e9SMasahiro Yamada	depends on ARCH_SOCFPGA
176ae4c81e9SMasahiro Yamada	depends on MMC_DW
177ae4c81e9SMasahiro Yamada	default y
178ae4c81e9SMasahiro Yamada	help
179ae4c81e9SMasahiro Yamada	  This selects support for Altera SOCFPGA specific extensions to the
180ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
181ae4c81e9SMasahiro Yamada	  for platforms based on Altera SOCFPGA.
182ae4c81e9SMasahiro Yamada
18393738620SCarlo Caioneconfig MMC_MESON_GX
18493738620SCarlo Caione	bool "Meson GX EMMC controller support"
185e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_MESON
18693738620SCarlo Caione	help
18793738620SCarlo Caione	 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
18893738620SCarlo Caione
1891d2c0506SMasahiro Yamadaconfig MMC_MXC
1901d2c0506SMasahiro Yamada	bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
1911d2c0506SMasahiro Yamada	help
1921d2c0506SMasahiro Yamada	  This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
1931d2c0506SMasahiro Yamada	  Multimedia Card Interface. If you have an i.MX or MPC512x platform
1941d2c0506SMasahiro Yamada	  with a Multimedia Card slot, say Y here.
1951d2c0506SMasahiro Yamada
1961d2c0506SMasahiro Yamada	  If unsure, say N.
1971d2c0506SMasahiro Yamada
1981d2c0506SMasahiro Yamadaconfig MMC_MXS
1991d2c0506SMasahiro Yamada	bool "Freescale MXS Multimedia Card Interface support"
2001d2c0506SMasahiro Yamada	help
2011d2c0506SMasahiro Yamada	  This selects the Freescale SSP MMC controller found on MXS based
2021d2c0506SMasahiro Yamada	  platforms like mx23/28.
2031d2c0506SMasahiro Yamada
2041d2c0506SMasahiro Yamada	  If unsure, say N.
2051d2c0506SMasahiro Yamada
206b706b1c2SFelipe Balbiconfig MMC_PCI
207b706b1c2SFelipe Balbi	bool "Support for MMC controllers on PCI"
208b706b1c2SFelipe Balbi	help
209b706b1c2SFelipe Balbi	  This selects PCI-based MMC controllers.
210b706b1c2SFelipe Balbi	  If you have an MMC controller on a PCI bus, say Y here.
211b706b1c2SFelipe Balbi
212b706b1c2SFelipe Balbi	  If unsure, say N.
213b706b1c2SFelipe Balbi
2141d2c0506SMasahiro Yamadaconfig MMC_OMAP_HS
2151d2c0506SMasahiro Yamada	bool "TI OMAP High Speed Multimedia Card Interface support"
216e7881d85SSimon Glass	select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
2178ff7763dSJean-Jacques Hiblot	select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
2181d2c0506SMasahiro Yamada	help
2191d2c0506SMasahiro Yamada	  This selects the TI OMAP High Speed Multimedia card Interface.
2201d2c0506SMasahiro Yamada	  If you have an omap2plus board with a Multimedia Card slot,
2211d2c0506SMasahiro Yamada	  say Y here.
2221d2c0506SMasahiro Yamada
2231d2c0506SMasahiro Yamada	  If unsure, say N.
2241d2c0506SMasahiro Yamada
2256aca17c9SAdam Fordconfig MMC_OMAP36XX_PINS
2266aca17c9SAdam Ford	bool "Enable MMC1 on OMAP36xx/37xx"
2276aca17c9SAdam Ford	depends on OMAP34XX && MMC_OMAP_HS
2286aca17c9SAdam Ford	help
2296aca17c9SAdam Ford	  This enables extended-drain in the MMC/SD/SDIO1I/O and
2306aca17c9SAdam Ford	  GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
2316aca17c9SAdam Ford	  specific to the OMAP36xx/37xx using MMC1
2326aca17c9SAdam Ford
2336aca17c9SAdam Ford	  If you have a controller with this interface, say Y here.
2346aca17c9SAdam Ford
2356aca17c9SAdam Ford	  If unsure, say N.
2366aca17c9SAdam Ford
23772d42badSNobuhiro Iwamatsuconfig SH_SDHI
23872d42badSNobuhiro Iwamatsu	bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
2390f531185SMarek Vasut	depends on ARCH_RMOBILE
24072d42badSNobuhiro Iwamatsu	help
24172d42badSNobuhiro Iwamatsu	  Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
24272d42badSNobuhiro Iwamatsu
243a111bfbfSMasahiro Yamadaconfig MMC_UNIPHIER
244b24633dfSMarek Vasut	bool "UniPhier/RCar SD/MMC Host Controller support"
245b24633dfSMarek Vasut	depends on ARCH_UNIPHIER || ARCH_RMOBILE
246e7881d85SSimon Glass	depends on BLK && DM_MMC
2479c720c81SMasahiro Yamada	depends on OF_CONTROL
248a111bfbfSMasahiro Yamada	help
249b24633dfSMarek Vasut	  This selects support for the Matsushita SD/MMC Host Controller on
250b24633dfSMarek Vasut	  SocioNext UniPhier and Renesas RCar SoCs.
251a111bfbfSMasahiro Yamada
252a5995a5dSMasahiro Yamadaconfig MMC_SANDBOX
253f376a3cbSSimon Glass	bool "Sandbox MMC support"
254a5995a5dSMasahiro Yamada	depends on SANDBOX
255e7881d85SSimon Glass	depends on BLK && DM_MMC && OF_CONTROL
256f376a3cbSSimon Glass	help
257f376a3cbSSimon Glass	  This select a dummy sandbox MMC driver. At present this does nothing
258f376a3cbSSimon Glass	  other than allow sandbox to be build with MMC support. This
259f376a3cbSSimon Glass	  improves build coverage for sandbox and makes it easier to detect
260f376a3cbSSimon Glass	  MMC build errors with sandbox.
261f376a3cbSSimon Glass
262e1ce61fbSMasahiro Yamadaconfig MMC_SDHCI
263e1ce61fbSMasahiro Yamada	bool "Secure Digital Host Controller Interface support"
264e1ce61fbSMasahiro Yamada	help
265e1ce61fbSMasahiro Yamada	  This selects the generic Secure Digital Host Controller Interface.
266e1ce61fbSMasahiro Yamada	  It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
267e1ce61fbSMasahiro Yamada	  and Toshiba(R). Most controllers found in laptops are of this type.
268e1ce61fbSMasahiro Yamada
269e1ce61fbSMasahiro Yamada	  If you have a controller with this interface, say Y here.
270e1ce61fbSMasahiro Yamada
271e1ce61fbSMasahiro Yamada	  If unsure, say N.
272e1ce61fbSMasahiro Yamada
2733d3a74ccSMasahiro Yamadaconfig MMC_SDHCI_IO_ACCESSORS
2743d3a74ccSMasahiro Yamada	bool
2753d3a74ccSMasahiro Yamada	depends on MMC_SDHCI
2763d3a74ccSMasahiro Yamada	help
2773d3a74ccSMasahiro Yamada	  This is silent Kconfig symbol that is selected by the drivers that
2783d3a74ccSMasahiro Yamada	  need to overwrite SDHCI IO memory accessors.
2793d3a74ccSMasahiro Yamada
28045a68fe2SMasahiro Yamadaconfig MMC_SDHCI_SDMA
28145a68fe2SMasahiro Yamada	bool "Support SDHCI SDMA"
28245a68fe2SMasahiro Yamada	depends on MMC_SDHCI
28345a68fe2SMasahiro Yamada	help
28445a68fe2SMasahiro Yamada	  This enables support for the SDMA (Single Operation DMA) defined
28545a68fe2SMasahiro Yamada	  in the SD Host Controller Standard Specification Version 1.00 .
28645a68fe2SMasahiro Yamada
287dd3b64ebSMasahiro Yamadaconfig MMC_SDHCI_ATMEL
288dd3b64ebSMasahiro Yamada	bool "Atmel SDHCI controller support"
289dd3b64ebSMasahiro Yamada	depends on ARCH_AT91
290e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_AT91
291dd3b64ebSMasahiro Yamada	depends on MMC_SDHCI
292dd3b64ebSMasahiro Yamada	help
293dd3b64ebSMasahiro Yamada	  This enables support for the Atmel SDHCI controller, which supports
294dd3b64ebSMasahiro Yamada	  the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
295dd3b64ebSMasahiro Yamada	  Memory Card Specification V3.0, and the SDIO V3.0 specification.
296dd3b64ebSMasahiro Yamada	  It is compliant with the SD Host Controller Standard V3.0
297dd3b64ebSMasahiro Yamada	  specification.
298dd3b64ebSMasahiro Yamada
29945a68fe2SMasahiro Yamadaconfig MMC_SDHCI_BCM2835
30045a68fe2SMasahiro Yamada	tristate "SDHCI support for the BCM2835 SD/MMC Controller"
30145a68fe2SMasahiro Yamada	depends on ARCH_BCM283X
30245a68fe2SMasahiro Yamada	depends on MMC_SDHCI
3033d3a74ccSMasahiro Yamada	select MMC_SDHCI_IO_ACCESSORS
30445a68fe2SMasahiro Yamada	help
30545a68fe2SMasahiro Yamada	  This selects the BCM2835 SD/MMC controller.
30645a68fe2SMasahiro Yamada
30745a68fe2SMasahiro Yamada	  If you have a BCM2835 platform with SD or MMC devices,
30845a68fe2SMasahiro Yamada	  say Y here.
30945a68fe2SMasahiro Yamada
31045a68fe2SMasahiro Yamada	  If unsure, say N.
31145a68fe2SMasahiro Yamada
312e5e7a7c2SMasahiro Yamadaconfig MMC_SDHCI_CADENCE
313e5e7a7c2SMasahiro Yamada	bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
314e7881d85SSimon Glass	depends on BLK && DM_MMC
315e5e7a7c2SMasahiro Yamada	depends on MMC_SDHCI
316e5e7a7c2SMasahiro Yamada	depends on OF_CONTROL
317e5e7a7c2SMasahiro Yamada	help
318e5e7a7c2SMasahiro Yamada	  This selects the Cadence SD/SDIO/eMMC driver.
319e5e7a7c2SMasahiro Yamada
320e5e7a7c2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
321e5e7a7c2SMasahiro Yamada
322e5e7a7c2SMasahiro Yamada	  If unsure, say N.
323e5e7a7c2SMasahiro Yamada
32445a68fe2SMasahiro Yamadaconfig MMC_SDHCI_KONA
32545a68fe2SMasahiro Yamada	bool "SDHCI support on Broadcom KONA platform"
32645a68fe2SMasahiro Yamada	depends on MMC_SDHCI
32745a68fe2SMasahiro Yamada	help
32845a68fe2SMasahiro Yamada	  This selects the Broadcom Kona Secure Digital Host Controller
32945a68fe2SMasahiro Yamada	  Interface(SDHCI) support.
33045a68fe2SMasahiro Yamada	  This is used in Broadcom mobile SoCs.
33145a68fe2SMasahiro Yamada
33245a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
33345a68fe2SMasahiro Yamada
334360c67d5SMasahiro Yamadaconfig MMC_SDHCI_MSM
335360c67d5SMasahiro Yamada	bool "Qualcomm SDHCI controller"
336e7881d85SSimon Glass	depends on BLK && DM_MMC
337360c67d5SMasahiro Yamada	depends on MMC_SDHCI
338360c67d5SMasahiro Yamada	help
339360c67d5SMasahiro Yamada	  Enables support for SDHCI 2.0 controller present on some Qualcomm
340360c67d5SMasahiro Yamada          Snapdragon devices. This device is compatible with eMMC v4.5 and
341360c67d5SMasahiro Yamada          SD 3.0 specifications. Both SD and eMMC devices are supported.
342360c67d5SMasahiro Yamada	  Card-detect gpios are not supported.
343360c67d5SMasahiro Yamada
34445a68fe2SMasahiro Yamadaconfig MMC_SDHCI_MV
34545a68fe2SMasahiro Yamada	bool "SDHCI support on Marvell platform"
34645a68fe2SMasahiro Yamada	depends on ARCH_MVEBU
34745a68fe2SMasahiro Yamada	depends on MMC_SDHCI
34845a68fe2SMasahiro Yamada	help
34945a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface on
35045a68fe2SMasahiro Yamada	  Marvell platform.
35145a68fe2SMasahiro Yamada
35245a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
35345a68fe2SMasahiro Yamada
35445a68fe2SMasahiro Yamada	  If unsure, say N.
35545a68fe2SMasahiro Yamada
3561b858770SMasahiro Yamadaconfig MMC_SDHCI_PIC32
3571b858770SMasahiro Yamada	bool "Microchip PIC32 on-chip SDHCI support"
3581b858770SMasahiro Yamada	depends on DM_MMC && MACH_PIC32
3591b858770SMasahiro Yamada	depends on MMC_SDHCI
3601b858770SMasahiro Yamada	help
3611b858770SMasahiro Yamada	  Support for Microchip PIC32 SDHCI controller.
3621b858770SMasahiro Yamada
363facc8058SMasahiro Yamadaconfig MMC_SDHCI_ROCKCHIP
364facc8058SMasahiro Yamada	bool "Arasan SDHCI controller for Rockchip support"
365facc8058SMasahiro Yamada	depends on ARCH_ROCKCHIP
366e7881d85SSimon Glass	depends on DM_MMC && BLK
367facc8058SMasahiro Yamada	depends on MMC_SDHCI
368facc8058SMasahiro Yamada	help
369facc8058SMasahiro Yamada	  Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
370facc8058SMasahiro Yamada
37145a68fe2SMasahiro Yamadaconfig MMC_SDHCI_S5P
37245a68fe2SMasahiro Yamada	bool "SDHCI support on Samsung S5P SoC"
37345a68fe2SMasahiro Yamada	depends on MMC_SDHCI
37445a68fe2SMasahiro Yamada	help
37545a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface (SDHCI)
37645a68fe2SMasahiro Yamada	  on Samsung S5P SoCs.
37745a68fe2SMasahiro Yamada
37845a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
37945a68fe2SMasahiro Yamada
38045a68fe2SMasahiro Yamada	  If unsure, say N.
38145a68fe2SMasahiro Yamada
38245a68fe2SMasahiro Yamadaconfig MMC_SDHCI_SPEAR
38345a68fe2SMasahiro Yamada	bool "SDHCI support on ST SPEAr platform"
38445a68fe2SMasahiro Yamada	depends on MMC_SDHCI
38545a68fe2SMasahiro Yamada	help
38645a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface (SDHCI)
38745a68fe2SMasahiro Yamada	  often referrered to as the HSMMC block in some of the ST SPEAR range
38845a68fe2SMasahiro Yamada	  of SoC
38945a68fe2SMasahiro Yamada
39045a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
39145a68fe2SMasahiro Yamada
39245a68fe2SMasahiro Yamada	  If unsure, say N.
39345a68fe2SMasahiro Yamada
394eee20f81SPatrice Chotardconfig MMC_SDHCI_STI
395eee20f81SPatrice Chotard	bool "SDHCI support for STMicroelectronics SoC"
39651cb23d4SPatrice Chotard	depends on MMC_SDHCI && OF_CONTROL
397eee20f81SPatrice Chotard	help
398eee20f81SPatrice Chotard	  This selects the Secure Digital Host Controller Interface (SDHCI)
399eee20f81SPatrice Chotard	  on STMicroelectronics STiH410 SoC.
400eee20f81SPatrice Chotard
401b6acb5f1SStefan Roeseconfig MMC_SDHCI_XENON
402b6acb5f1SStefan Roese	bool "SDHCI support for the Xenon SDHCI controller"
403b6acb5f1SStefan Roese	depends on MMC_SDHCI && DM_MMC && OF_CONTROL
404b6acb5f1SStefan Roese	help
405b6acb5f1SStefan Roese	  Support for Xenon SDHCI host controller on Marvell Armada 3700
406b6acb5f1SStefan Roese	  7k/8k ARM SoCs platforms
407b6acb5f1SStefan Roese
408b6acb5f1SStefan Roese	  If you have a controller with this interface, say Y here.
409b6acb5f1SStefan Roese
410b6acb5f1SStefan Roese	  If unsure, say N.
411b6acb5f1SStefan Roese
41283b3248eSFelipe Balbiconfig MMC_SDHCI_TANGIER
41383b3248eSFelipe Balbi	bool "Tangier SDHCI controller support"
41483b3248eSFelipe Balbi	depends on DM_MMC && BLK
41583b3248eSFelipe Balbi	depends on MMC_SDHCI
41683b3248eSFelipe Balbi	help
41783b3248eSFelipe Balbi	  This selects support for SDHCI controller on Tanginer
41883b3248eSFelipe Balbi	  SoC. Note that this controller does not sit on PCI bus and,
41983b3248eSFelipe Balbi	  hence, cannot be enumerated by standard PCI means.
42083b3248eSFelipe Balbi
42183b3248eSFelipe Balbi	  If you're using an Intel Tangier SoC (available on Intel
42283b3248eSFelipe Balbi	  Edison board), say Y here.
42383b3248eSFelipe Balbi
42483b3248eSFelipe Balbi	  If unsure, say N.
42583b3248eSFelipe Balbi
4261d2c0506SMasahiro Yamadaconfig MMC_SDHCI_TEGRA
4271d2c0506SMasahiro Yamada	bool "SDHCI platform support for the Tegra SD/MMC Controller"
4281d2c0506SMasahiro Yamada	depends on TEGRA
4291d2c0506SMasahiro Yamada	default y
4301d2c0506SMasahiro Yamada	help
4311d2c0506SMasahiro Yamada	  This selects the Tegra SD/MMC controller. If you have a Tegra
4321d2c0506SMasahiro Yamada	  platform with SD or MMC devices, say Y here.
4331d2c0506SMasahiro Yamada
4341d2c0506SMasahiro Yamada	  If unsure, say N.
4351d2c0506SMasahiro Yamada
43608aa0334SMasahiro Yamadaconfig MMC_SDHCI_ZYNQ
43708aa0334SMasahiro Yamada	bool "Arasan SDHCI controller support"
43808aa0334SMasahiro Yamada	depends on ARCH_ZYNQ || ARCH_ZYNQMP
439e7881d85SSimon Glass	depends on DM_MMC && OF_CONTROL && BLK
44008aa0334SMasahiro Yamada	depends on MMC_SDHCI
44108aa0334SMasahiro Yamada	help
44208aa0334SMasahiro Yamada	  Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
44308aa0334SMasahiro Yamada
4441d2c0506SMasahiro Yamadaconfig MMC_SUNXI
4451d2c0506SMasahiro Yamada	bool "Allwinner sunxi SD/MMC Host Controller support"
4460ad178c1SMasahiro Yamada	depends on ARCH_SUNXI && !UART0_PORT_F
4471d2c0506SMasahiro Yamada	default y
4481d2c0506SMasahiro Yamada	help
4491d2c0506SMasahiro Yamada	  This selects support for the SD/MMC Host Controller on
4501d2c0506SMasahiro Yamada	  Allwinner sunxi SoCs.
4511d2c0506SMasahiro Yamada
452de9b1771SMaxime Ripardconfig MMC_SUNXI_HAS_NEW_MODE
453de9b1771SMaxime Ripard	bool
454de9b1771SMaxime Ripard	depends on MMC_SUNXI
455de9b1771SMaxime Ripard
456c86c0155SWenyou Yangconfig GENERIC_ATMEL_MCI
457c86c0155SWenyou Yang	bool "Atmel Multimedia Card Interface support"
458e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_AT91
459c86c0155SWenyou Yang	help
460c86c0155SWenyou Yang	  This enables support for Atmel High Speed Multimedia Card Interface
461c86c0155SWenyou Yang	  (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
462c86c0155SWenyou Yang	  the SD Memory Card Specification V2.0, the SDIO V2.0 specification
463c86c0155SWenyou Yang	  and CE-ATA V1.1.
464c86c0155SWenyou Yang
465b312c590SPatrice Chotardconfig STM32_SDMMC2
466b312c590SPatrice Chotard	bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
46753c656a8SPatrice Chotard	depends on DM_MMC && BLK && OF_CONTROL
468b312c590SPatrice Chotard	help
469b312c590SPatrice Chotard	  This selects support for the SD/MMC controller on STM32H7 SoCs.
470b312c590SPatrice Chotard	  If you have a board based on such a SoC and with a SD/MMC slot,
471b312c590SPatrice Chotard	  say Y or M here.
472b312c590SPatrice Chotard
4739f678ab1SRick Chenconfig MMC_NDS32
4749f678ab1SRick Chen	bool "Andestech SD/MMC controller support"
4759f678ab1SRick Chen	depends on DM_MMC && OF_CONTROL && BLK && FTSDC010
4769f678ab1SRick Chen	help
4779f678ab1SRick Chen	  This enables support for the Andestech SD/MMM controller, which is
4789f678ab1SRick Chen	  based on Faraday IP.
4799f678ab1SRick Chen
4809f678ab1SRick Chenconfig FTSDC010
4819f678ab1SRick Chen	bool "Ftsdc010 SD/MMC controller Support"
4829f678ab1SRick Chen	help
4839f678ab1SRick Chen	  This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
4849f678ab1SRick Chen
485e298c46aSMasahiro Yamadaendif
486e298c46aSMasahiro Yamada
4874119b709SMarcel Ziswilerconfig TEGRA124_MMC_DISABLE_EXT_LOOPBACK
4884119b709SMarcel Ziswiler	bool "Disable external clock loopback"
4894119b709SMarcel Ziswiler	depends on MMC_SDHCI_TEGRA && TEGRA124
4904119b709SMarcel Ziswiler	help
4914119b709SMarcel Ziswiler	  Disable the external clock loopback and use the internal one on SDMMC3
4924119b709SMarcel Ziswiler	  as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
4934119b709SMarcel Ziswiler	  being set to 0xfffd according to the TRM.
4944119b709SMarcel Ziswiler
4954119b709SMarcel Ziswiler	  TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
4964119b709SMarcel Ziswiler	  approach once proper kernel integration made it mainline.
4974119b709SMarcel Ziswiler
49872d42badSNobuhiro Iwamatsuendmenu
499c01e4a1aSYork Sun
500c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC111
501c01e4a1aSYork Sun	bool
502c01e4a1aSYork Sun
503c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC13
504c01e4a1aSYork Sun	bool
505c01e4a1aSYork Sun
506c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC135
507c01e4a1aSYork Sun	bool
508c01e4a1aSYork Sun
509c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC_A001
510c01e4a1aSYork Sun	bool
511