xref: /rk3399_rockchip-uboot/drivers/mmc/Kconfig (revision f88a10fc5de703217f78c98abb3fcf6c0066b90b)
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
139127fbf4SJean-Jacques Hiblotconfig MMC_WRITE
149127fbf4SJean-Jacques Hiblot	bool "support for MMC/SD write operations"
159127fbf4SJean-Jacques Hiblot	depends on MMC
169127fbf4SJean-Jacques Hiblot	default y
179127fbf4SJean-Jacques Hiblot	help
189127fbf4SJean-Jacques Hiblot	  Enable write access to MMC and SD Cards
199127fbf4SJean-Jacques Hiblot
20e7ecf7cbSSimon Glassconfig DM_MMC
21e7ecf7cbSSimon Glass	bool "Enable MMC controllers using Driver Model"
22e7ecf7cbSSimon Glass	depends on DM
23e7ecf7cbSSimon Glass	help
2462a3b7ddSRobert P. J. Day	  This enables the MultiMediaCard (MMC) uclass which supports MMC and
25e7ecf7cbSSimon Glass	  Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
26e7ecf7cbSSimon Glass	  and non-removable (e.g. eMMC chip) devices are supported. These
27e7ecf7cbSSimon Glass	  appear as block devices in U-Boot and can support filesystems such
28e7ecf7cbSSimon Glass	  as EXT4 and FAT.
29e7ecf7cbSSimon Glass
30c4d660d4SSimon Glassconfig SPL_DM_MMC
31c4d660d4SSimon Glass	bool "Enable MMC controllers using Driver Model in SPL"
32c4d660d4SSimon Glass	depends on SPL_DM && DM_MMC
33c4d660d4SSimon Glass	default y
34c4d660d4SSimon Glass	help
35c4d660d4SSimon Glass	  This enables the MultiMediaCard (MMC) uclass which supports MMC and
36c4d660d4SSimon Glass	  Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
37c4d660d4SSimon Glass	  and non-removable (e.g. eMMC chip) devices are supported. These
38c4d660d4SSimon Glass	  appear as block devices in U-Boot and can support filesystems such
39c4d660d4SSimon Glass	  as EXT4 and FAT.
40c4d660d4SSimon Glass
41e298c46aSMasahiro Yamadaif MMC
42e298c46aSMasahiro Yamada
43b5b838f1SMarek Vasutconfig SPL_MMC_TINY
44b5b838f1SMarek Vasut	bool "Tiny MMC framework in SPL"
45b5b838f1SMarek Vasut	help
46b5b838f1SMarek Vasut	  Enable MMC framework tinification support. This option is useful if
47b5b838f1SMarek Vasut	  if your SPL is extremely size constrained. Heed the warning, enable
48b5b838f1SMarek Vasut	  this option if and only if you know exactly what you are doing, if
49b5b838f1SMarek Vasut	  you are reading this help text, you most likely have no idea :-)
50b5b838f1SMarek Vasut
51b5b838f1SMarek Vasut	  The MMC framework is reduced to bare minimum to be useful. No malloc
52b5b838f1SMarek Vasut	  support is needed for the MMC framework operation with this option
53b5b838f1SMarek Vasut	  enabled. The framework supports exactly one MMC device and exactly
54b5b838f1SMarek Vasut	  one MMC driver. The MMC driver can be adjusted to avoid any malloc
55b5b838f1SMarek Vasut	  operations too, which can remove the need for malloc support in SPL
56b5b838f1SMarek Vasut	  and thus further reduce footprint.
57b5b838f1SMarek Vasut
58699945cbSJason Zhuconfig MMC_SIMPLE
59699945cbSJason Zhu	bool "Reduce mmc code size"
60699945cbSJason Zhu	help
61699945cbSJason Zhu	  Reduce mmc code size.
62699945cbSJason Zhu
633ad62570SJason Zhuconfig SUPPORT_EMMC_RPMB
643ad62570SJason Zhu	bool "Support eMMC replay protected memory block (RPMB)"
653ad62570SJason Zhu	depends on MMC && CMD_MMC
663ad62570SJason Zhu	default y
673ad62570SJason Zhu	help
683ad62570SJason Zhu	  Enable support for reading, writing and programming the
693ad62570SJason Zhu	  key for the Replay Protection Memory Block partition in eMMC.
703ad62570SJason Zhu
711d2c0506SMasahiro Yamadaconfig MMC_DAVINCI
721d2c0506SMasahiro Yamada	bool "TI DAVINCI Multimedia Card Interface support"
731d2c0506SMasahiro Yamada	depends on ARCH_DAVINCI
741d2c0506SMasahiro Yamada	default y
751d2c0506SMasahiro Yamada	help
761d2c0506SMasahiro Yamada	  This selects the TI DAVINCI Multimedia card Interface.
771d2c0506SMasahiro Yamada	  If you have an DAVINCI board with a Multimedia Card slot,
781d2c0506SMasahiro Yamada	  say Y here.  If unsure, say N.
791d2c0506SMasahiro Yamada
8055ed3b46SMasahiro Yamadaconfig MMC_DW
8155ed3b46SMasahiro Yamada	bool "Synopsys DesignWare Memory Card Interface"
8255ed3b46SMasahiro Yamada	help
8355ed3b46SMasahiro Yamada	  This selects support for the Synopsys DesignWare Mobile Storage IP
8455ed3b46SMasahiro Yamada	  block, this provides host support for SD and MMC interfaces, in both
8555ed3b46SMasahiro Yamada	  PIO, internal DMA mode and external DMA mode.
8655ed3b46SMasahiro Yamada
87*f88a10fcSYifeng Zhaoconfig MMC_DW_PWREN_VALUE
88*f88a10fcSYifeng Zhao	hex "mmc dw powen value"
89*f88a10fcSYifeng Zhao	default 1 if ROCKCHIP_RK3576
90*f88a10fcSYifeng Zhao	default 0
91*f88a10fcSYifeng Zhao	help
92*f88a10fcSYifeng Zhao	  Config the value for MMC-DW drivers to power on sd card.
93*f88a10fcSYifeng Zhao
94ae4c81e9SMasahiro Yamadaconfig MMC_DW_EXYNOS
95ae4c81e9SMasahiro Yamada	bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
96ae4c81e9SMasahiro Yamada	depends on ARCH_EXYNOS
97ae4c81e9SMasahiro Yamada	depends on MMC_DW
98ae4c81e9SMasahiro Yamada	default y
99ae4c81e9SMasahiro Yamada	help
100ae4c81e9SMasahiro Yamada	  This selects support for Samsung Exynos SoC specific extensions to the
101ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
102ae4c81e9SMasahiro Yamada	  for platforms based on Exynos4 and Exynos5 SoC's.
103ae4c81e9SMasahiro Yamada
104ae4c81e9SMasahiro Yamadaconfig MMC_DW_K3
105ae4c81e9SMasahiro Yamada	bool "K3 specific extensions for Synopsys DW Memory Card Interface"
106ae4c81e9SMasahiro Yamada	depends on MMC_DW
107ae4c81e9SMasahiro Yamada	help
108ae4c81e9SMasahiro Yamada	  This selects support for Hisilicon K3 SoC specific extensions to the
109ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
110ae4c81e9SMasahiro Yamada	  for platforms based on Hisilicon K3 SoC's.
111ae4c81e9SMasahiro Yamada
112fed44087SMasahiro Yamadaconfig MMC_DW_ROCKCHIP
113a8cb4fb5SSimon Glass	bool "Rockchip SD/MMC controller support"
114a8cb4fb5SSimon Glass	depends on DM_MMC && OF_CONTROL
11555ed3b46SMasahiro Yamada	depends on MMC_DW
116a8cb4fb5SSimon Glass	help
117a8cb4fb5SSimon Glass	  This enables support for the Rockchip SD/MMM controller, which is
118a8cb4fb5SSimon Glass	  based on Designware IP. The device is compatible with at least
119a8cb4fb5SSimon Glass	  SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
120a8cb4fb5SSimon Glass	  as removeable SD and micro-SD cards.
121a8cb4fb5SSimon Glass
122ae4c81e9SMasahiro Yamadaconfig MMC_DW_SOCFPGA
123ae4c81e9SMasahiro Yamada	bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
124ae4c81e9SMasahiro Yamada	depends on ARCH_SOCFPGA
125ae4c81e9SMasahiro Yamada	depends on MMC_DW
126ae4c81e9SMasahiro Yamada	default y
127ae4c81e9SMasahiro Yamada	help
128ae4c81e9SMasahiro Yamada	  This selects support for Altera SOCFPGA specific extensions to the
129ae4c81e9SMasahiro Yamada	  Synopsys DesignWare Memory Card Interface driver. Select this option
130ae4c81e9SMasahiro Yamada	  for platforms based on Altera SOCFPGA.
131ae4c81e9SMasahiro Yamada
13293738620SCarlo Caioneconfig MMC_MESON_GX
13393738620SCarlo Caione	bool "Meson GX EMMC controller support"
134e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_MESON
13593738620SCarlo Caione	help
13693738620SCarlo Caione	 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
13793738620SCarlo Caione
1381d2c0506SMasahiro Yamadaconfig MMC_MXC
1391d2c0506SMasahiro Yamada	bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
1401d2c0506SMasahiro Yamada	help
1411d2c0506SMasahiro Yamada	  This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
1421d2c0506SMasahiro Yamada	  Multimedia Card Interface. If you have an i.MX or MPC512x platform
1431d2c0506SMasahiro Yamada	  with a Multimedia Card slot, say Y here.
1441d2c0506SMasahiro Yamada
1451d2c0506SMasahiro Yamada	  If unsure, say N.
1461d2c0506SMasahiro Yamada
1471d2c0506SMasahiro Yamadaconfig MMC_MXS
1481d2c0506SMasahiro Yamada	bool "Freescale MXS Multimedia Card Interface support"
1496a35a5caSAdam Ford	depends on MX23 || MX28 || MX6 || MX7
1506a35a5caSAdam Ford	select APBH_DMA
1516a35a5caSAdam Ford	select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
1526a35a5caSAdam Ford	select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
1531d2c0506SMasahiro Yamada	help
1541d2c0506SMasahiro Yamada	  This selects the Freescale SSP MMC controller found on MXS based
1551d2c0506SMasahiro Yamada	  platforms like mx23/28.
1561d2c0506SMasahiro Yamada
1571d2c0506SMasahiro Yamada	  If unsure, say N.
1581d2c0506SMasahiro Yamada
159b706b1c2SFelipe Balbiconfig MMC_PCI
160b706b1c2SFelipe Balbi	bool "Support for MMC controllers on PCI"
161b706b1c2SFelipe Balbi	help
162b706b1c2SFelipe Balbi	  This selects PCI-based MMC controllers.
163b706b1c2SFelipe Balbi	  If you have an MMC controller on a PCI bus, say Y here.
164b706b1c2SFelipe Balbi
165b706b1c2SFelipe Balbi	  If unsure, say N.
166b706b1c2SFelipe Balbi
1671d2c0506SMasahiro Yamadaconfig MMC_OMAP_HS
1681d2c0506SMasahiro Yamada	bool "TI OMAP High Speed Multimedia Card Interface support"
169e7881d85SSimon Glass	select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
1701d2c0506SMasahiro Yamada	help
1711d2c0506SMasahiro Yamada	  This selects the TI OMAP High Speed Multimedia card Interface.
1721d2c0506SMasahiro Yamada	  If you have an omap2plus board with a Multimedia Card slot,
1731d2c0506SMasahiro Yamada	  say Y here.
1741d2c0506SMasahiro Yamada
1751d2c0506SMasahiro Yamada	  If unsure, say N.
1761d2c0506SMasahiro Yamada
1776aca17c9SAdam Fordconfig MMC_OMAP36XX_PINS
1786aca17c9SAdam Ford	bool "Enable MMC1 on OMAP36xx/37xx"
1796aca17c9SAdam Ford	depends on OMAP34XX && MMC_OMAP_HS
1806aca17c9SAdam Ford	help
1816aca17c9SAdam Ford	  This enables extended-drain in the MMC/SD/SDIO1I/O and
1826aca17c9SAdam Ford	  GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
1836aca17c9SAdam Ford	  specific to the OMAP36xx/37xx using MMC1
1846aca17c9SAdam Ford
1856aca17c9SAdam Ford	  If you have a controller with this interface, say Y here.
1866aca17c9SAdam Ford
1876aca17c9SAdam Ford	  If unsure, say N.
1886aca17c9SAdam Ford
18972d42badSNobuhiro Iwamatsuconfig SH_SDHI
19072d42badSNobuhiro Iwamatsu	bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
1910f531185SMarek Vasut	depends on ARCH_RMOBILE
19272d42badSNobuhiro Iwamatsu	help
19372d42badSNobuhiro Iwamatsu	  Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
19472d42badSNobuhiro Iwamatsu
195a111bfbfSMasahiro Yamadaconfig MMC_UNIPHIER
196a111bfbfSMasahiro Yamada	bool "UniPhier SD/MMC Host Controller support"
197a111bfbfSMasahiro Yamada	depends on ARCH_UNIPHIER
198e7881d85SSimon Glass	depends on BLK && DM_MMC
1999c720c81SMasahiro Yamada	depends on OF_CONTROL
200a111bfbfSMasahiro Yamada	help
201a111bfbfSMasahiro Yamada	  This selects support for the SD/MMC Host Controller on UniPhier SoCs.
202a111bfbfSMasahiro Yamada
203a5995a5dSMasahiro Yamadaconfig MMC_SANDBOX
204f376a3cbSSimon Glass	bool "Sandbox MMC support"
205a5995a5dSMasahiro Yamada	depends on SANDBOX
206e7881d85SSimon Glass	depends on BLK && DM_MMC && OF_CONTROL
207f376a3cbSSimon Glass	help
208f376a3cbSSimon Glass	  This select a dummy sandbox MMC driver. At present this does nothing
209f376a3cbSSimon Glass	  other than allow sandbox to be build with MMC support. This
210f376a3cbSSimon Glass	  improves build coverage for sandbox and makes it easier to detect
211f376a3cbSSimon Glass	  MMC build errors with sandbox.
212f376a3cbSSimon Glass
213e1ce61fbSMasahiro Yamadaconfig MMC_SDHCI
214e1ce61fbSMasahiro Yamada	bool "Secure Digital Host Controller Interface support"
215e1ce61fbSMasahiro Yamada	help
216e1ce61fbSMasahiro Yamada	  This selects the generic Secure Digital Host Controller Interface.
217e1ce61fbSMasahiro Yamada	  It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
218e1ce61fbSMasahiro Yamada	  and Toshiba(R). Most controllers found in laptops are of this type.
219e1ce61fbSMasahiro Yamada
220e1ce61fbSMasahiro Yamada	  If you have a controller with this interface, say Y here.
221e1ce61fbSMasahiro Yamada
222e1ce61fbSMasahiro Yamada	  If unsure, say N.
223e1ce61fbSMasahiro Yamada
2243d3a74ccSMasahiro Yamadaconfig MMC_SDHCI_IO_ACCESSORS
2253d3a74ccSMasahiro Yamada	bool
2263d3a74ccSMasahiro Yamada	depends on MMC_SDHCI
2273d3a74ccSMasahiro Yamada	help
2283d3a74ccSMasahiro Yamada	  This is silent Kconfig symbol that is selected by the drivers that
2293d3a74ccSMasahiro Yamada	  need to overwrite SDHCI IO memory accessors.
2303d3a74ccSMasahiro Yamada
23145a68fe2SMasahiro Yamadaconfig MMC_SDHCI_SDMA
23245a68fe2SMasahiro Yamada	bool "Support SDHCI SDMA"
23345a68fe2SMasahiro Yamada	depends on MMC_SDHCI
23445a68fe2SMasahiro Yamada	help
23545a68fe2SMasahiro Yamada	  This enables support for the SDMA (Single Operation DMA) defined
23645a68fe2SMasahiro Yamada	  in the SD Host Controller Standard Specification Version 1.00 .
23745a68fe2SMasahiro Yamada
238dd3b64ebSMasahiro Yamadaconfig MMC_SDHCI_ATMEL
239dd3b64ebSMasahiro Yamada	bool "Atmel SDHCI controller support"
240dd3b64ebSMasahiro Yamada	depends on ARCH_AT91
241e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_AT91
242dd3b64ebSMasahiro Yamada	depends on MMC_SDHCI
243dd3b64ebSMasahiro Yamada	help
244dd3b64ebSMasahiro Yamada	  This enables support for the Atmel SDHCI controller, which supports
245dd3b64ebSMasahiro Yamada	  the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
246dd3b64ebSMasahiro Yamada	  Memory Card Specification V3.0, and the SDIO V3.0 specification.
247dd3b64ebSMasahiro Yamada	  It is compliant with the SD Host Controller Standard V3.0
248dd3b64ebSMasahiro Yamada	  specification.
249dd3b64ebSMasahiro Yamada
25045a68fe2SMasahiro Yamadaconfig MMC_SDHCI_BCM2835
25145a68fe2SMasahiro Yamada	tristate "SDHCI support for the BCM2835 SD/MMC Controller"
25245a68fe2SMasahiro Yamada	depends on ARCH_BCM283X
25345a68fe2SMasahiro Yamada	depends on MMC_SDHCI
2543d3a74ccSMasahiro Yamada	select MMC_SDHCI_IO_ACCESSORS
25545a68fe2SMasahiro Yamada	help
25645a68fe2SMasahiro Yamada	  This selects the BCM2835 SD/MMC controller.
25745a68fe2SMasahiro Yamada
25845a68fe2SMasahiro Yamada	  If you have a BCM2835 platform with SD or MMC devices,
25945a68fe2SMasahiro Yamada	  say Y here.
26045a68fe2SMasahiro Yamada
26145a68fe2SMasahiro Yamada	  If unsure, say N.
26245a68fe2SMasahiro Yamada
263f36ea2f6SThomas Fitzsimmonsconfig MMC_SDHCI_BCMSTB
264f36ea2f6SThomas Fitzsimmons	tristate "SDHCI support for the BCMSTB SD/MMC Controller"
265f36ea2f6SThomas Fitzsimmons	depends on MMC_SDHCI
266f36ea2f6SThomas Fitzsimmons	help
267f36ea2f6SThomas Fitzsimmons	  This selects the Broadcom set-top box SD/MMC controller.
268f36ea2f6SThomas Fitzsimmons
269f36ea2f6SThomas Fitzsimmons	  If you have a BCMSTB platform with SD or MMC devices,
270f36ea2f6SThomas Fitzsimmons	  say Y here.
271f36ea2f6SThomas Fitzsimmons
272f36ea2f6SThomas Fitzsimmons	  If unsure, say N.
273f36ea2f6SThomas Fitzsimmons
274e5e7a7c2SMasahiro Yamadaconfig MMC_SDHCI_CADENCE
275e5e7a7c2SMasahiro Yamada	bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
276e7881d85SSimon Glass	depends on BLK && DM_MMC
277e5e7a7c2SMasahiro Yamada	depends on MMC_SDHCI
278e5e7a7c2SMasahiro Yamada	depends on OF_CONTROL
279e5e7a7c2SMasahiro Yamada	help
280e5e7a7c2SMasahiro Yamada	  This selects the Cadence SD/SDIO/eMMC driver.
281e5e7a7c2SMasahiro Yamada
282e5e7a7c2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
283e5e7a7c2SMasahiro Yamada
284e5e7a7c2SMasahiro Yamada	  If unsure, say N.
285e5e7a7c2SMasahiro Yamada
28645a68fe2SMasahiro Yamadaconfig MMC_SDHCI_KONA
28745a68fe2SMasahiro Yamada	bool "SDHCI support on Broadcom KONA platform"
28845a68fe2SMasahiro Yamada	depends on MMC_SDHCI
28945a68fe2SMasahiro Yamada	help
29045a68fe2SMasahiro Yamada	  This selects the Broadcom Kona Secure Digital Host Controller
29145a68fe2SMasahiro Yamada	  Interface(SDHCI) support.
29245a68fe2SMasahiro Yamada	  This is used in Broadcom mobile SoCs.
29345a68fe2SMasahiro Yamada
29445a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
29545a68fe2SMasahiro Yamada
296360c67d5SMasahiro Yamadaconfig MMC_SDHCI_MSM
297360c67d5SMasahiro Yamada	bool "Qualcomm SDHCI controller"
298e7881d85SSimon Glass	depends on BLK && DM_MMC
299360c67d5SMasahiro Yamada	depends on MMC_SDHCI
300360c67d5SMasahiro Yamada	help
301360c67d5SMasahiro Yamada	  Enables support for SDHCI 2.0 controller present on some Qualcomm
302360c67d5SMasahiro Yamada          Snapdragon devices. This device is compatible with eMMC v4.5 and
303360c67d5SMasahiro Yamada          SD 3.0 specifications. Both SD and eMMC devices are supported.
304360c67d5SMasahiro Yamada	  Card-detect gpios are not supported.
305360c67d5SMasahiro Yamada
30645a68fe2SMasahiro Yamadaconfig MMC_SDHCI_MV
30745a68fe2SMasahiro Yamada	bool "SDHCI support on Marvell platform"
30845a68fe2SMasahiro Yamada	depends on ARCH_MVEBU
30945a68fe2SMasahiro Yamada	depends on MMC_SDHCI
31045a68fe2SMasahiro Yamada	help
31145a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface on
31245a68fe2SMasahiro Yamada	  Marvell platform.
31345a68fe2SMasahiro Yamada
31445a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
31545a68fe2SMasahiro Yamada
31645a68fe2SMasahiro Yamada	  If unsure, say N.
31745a68fe2SMasahiro Yamada
3181b858770SMasahiro Yamadaconfig MMC_SDHCI_PIC32
3191b858770SMasahiro Yamada	bool "Microchip PIC32 on-chip SDHCI support"
3201b858770SMasahiro Yamada	depends on DM_MMC && MACH_PIC32
3211b858770SMasahiro Yamada	depends on MMC_SDHCI
3221b858770SMasahiro Yamada	help
3231b858770SMasahiro Yamada	  Support for Microchip PIC32 SDHCI controller.
3241b858770SMasahiro Yamada
325facc8058SMasahiro Yamadaconfig MMC_SDHCI_ROCKCHIP
326facc8058SMasahiro Yamada	bool "Arasan SDHCI controller for Rockchip support"
327facc8058SMasahiro Yamada	depends on ARCH_ROCKCHIP
328e7881d85SSimon Glass	depends on DM_MMC && BLK
329facc8058SMasahiro Yamada	depends on MMC_SDHCI
330facc8058SMasahiro Yamada	help
331facc8058SMasahiro Yamada	  Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
332facc8058SMasahiro Yamada
33345a68fe2SMasahiro Yamadaconfig MMC_SDHCI_S5P
33445a68fe2SMasahiro Yamada	bool "SDHCI support on Samsung S5P SoC"
33545a68fe2SMasahiro Yamada	depends on MMC_SDHCI
33645a68fe2SMasahiro Yamada	help
33745a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface (SDHCI)
33845a68fe2SMasahiro Yamada	  on Samsung S5P SoCs.
33945a68fe2SMasahiro Yamada
34045a68fe2SMasahiro Yamada	  If you have a controller with this interface, say Y here.
34145a68fe2SMasahiro Yamada
34245a68fe2SMasahiro Yamada	  If unsure, say N.
34345a68fe2SMasahiro Yamada
34445a68fe2SMasahiro Yamadaconfig MMC_SDHCI_SPEAR
34545a68fe2SMasahiro Yamada	bool "SDHCI support on ST SPEAr platform"
34645a68fe2SMasahiro Yamada	depends on MMC_SDHCI
34745a68fe2SMasahiro Yamada	help
34845a68fe2SMasahiro Yamada	  This selects the Secure Digital Host Controller Interface (SDHCI)
34945a68fe2SMasahiro Yamada	  often referrered to as the HSMMC block in some of the ST SPEAR range
35045a68fe2SMasahiro Yamada	  of SoC
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
356eee20f81SPatrice Chotardconfig MMC_SDHCI_STI
357eee20f81SPatrice Chotard	bool "SDHCI support for STMicroelectronics SoC"
35851cb23d4SPatrice Chotard	depends on MMC_SDHCI && OF_CONTROL
359eee20f81SPatrice Chotard	help
360eee20f81SPatrice Chotard	  This selects the Secure Digital Host Controller Interface (SDHCI)
361eee20f81SPatrice Chotard	  on STMicroelectronics STiH410 SoC.
362eee20f81SPatrice Chotard
363b6acb5f1SStefan Roeseconfig MMC_SDHCI_XENON
364b6acb5f1SStefan Roese	bool "SDHCI support for the Xenon SDHCI controller"
365b6acb5f1SStefan Roese	depends on MMC_SDHCI && DM_MMC && OF_CONTROL
366b6acb5f1SStefan Roese	help
367b6acb5f1SStefan Roese	  Support for Xenon SDHCI host controller on Marvell Armada 3700
368b6acb5f1SStefan Roese	  7k/8k ARM SoCs platforms
369b6acb5f1SStefan Roese
370b6acb5f1SStefan Roese	  If you have a controller with this interface, say Y here.
371b6acb5f1SStefan Roese
372b6acb5f1SStefan Roese	  If unsure, say N.
373b6acb5f1SStefan Roese
37483b3248eSFelipe Balbiconfig MMC_SDHCI_TANGIER
37583b3248eSFelipe Balbi	bool "Tangier SDHCI controller support"
37683b3248eSFelipe Balbi	depends on DM_MMC && BLK
37783b3248eSFelipe Balbi	depends on MMC_SDHCI
37883b3248eSFelipe Balbi	help
37983b3248eSFelipe Balbi	  This selects support for SDHCI controller on Tanginer
38083b3248eSFelipe Balbi	  SoC. Note that this controller does not sit on PCI bus and,
38183b3248eSFelipe Balbi	  hence, cannot be enumerated by standard PCI means.
38283b3248eSFelipe Balbi
38383b3248eSFelipe Balbi	  If you're using an Intel Tangier SoC (available on Intel
38483b3248eSFelipe Balbi	  Edison board), say Y here.
38583b3248eSFelipe Balbi
38683b3248eSFelipe Balbi	  If unsure, say N.
38783b3248eSFelipe Balbi
3881d2c0506SMasahiro Yamadaconfig MMC_SDHCI_TEGRA
3891d2c0506SMasahiro Yamada	bool "SDHCI platform support for the Tegra SD/MMC Controller"
3901d2c0506SMasahiro Yamada	depends on TEGRA
3911d2c0506SMasahiro Yamada	default y
3921d2c0506SMasahiro Yamada	help
3931d2c0506SMasahiro Yamada	  This selects the Tegra SD/MMC controller. If you have a Tegra
3941d2c0506SMasahiro Yamada	  platform with SD or MMC devices, say Y here.
3951d2c0506SMasahiro Yamada
3961d2c0506SMasahiro Yamada	  If unsure, say N.
3971d2c0506SMasahiro Yamada
39808aa0334SMasahiro Yamadaconfig MMC_SDHCI_ZYNQ
39908aa0334SMasahiro Yamada	bool "Arasan SDHCI controller support"
40008aa0334SMasahiro Yamada	depends on ARCH_ZYNQ || ARCH_ZYNQMP
401e7881d85SSimon Glass	depends on DM_MMC && OF_CONTROL && BLK
40208aa0334SMasahiro Yamada	depends on MMC_SDHCI
40308aa0334SMasahiro Yamada	help
40408aa0334SMasahiro Yamada	  Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
40508aa0334SMasahiro Yamada
4061d2c0506SMasahiro Yamadaconfig MMC_SUNXI
4071d2c0506SMasahiro Yamada	bool "Allwinner sunxi SD/MMC Host Controller support"
4080ad178c1SMasahiro Yamada	depends on ARCH_SUNXI && !UART0_PORT_F
4091d2c0506SMasahiro Yamada	default y
4101d2c0506SMasahiro Yamada	help
4111d2c0506SMasahiro Yamada	  This selects support for the SD/MMC Host Controller on
4121d2c0506SMasahiro Yamada	  Allwinner sunxi SoCs.
4131d2c0506SMasahiro Yamada
414de9b1771SMaxime Ripardconfig MMC_SUNXI_HAS_NEW_MODE
415de9b1771SMaxime Ripard	bool
416de9b1771SMaxime Ripard	depends on MMC_SUNXI
417de9b1771SMaxime Ripard
418c86c0155SWenyou Yangconfig GENERIC_ATMEL_MCI
419c86c0155SWenyou Yang	bool "Atmel Multimedia Card Interface support"
420e7881d85SSimon Glass	depends on DM_MMC && BLK && ARCH_AT91
421c86c0155SWenyou Yang	help
422c86c0155SWenyou Yang	  This enables support for Atmel High Speed Multimedia Card Interface
423c86c0155SWenyou Yang	  (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
424c86c0155SWenyou Yang	  the SD Memory Card Specification V2.0, the SDIO V2.0 specification
425c86c0155SWenyou Yang	  and CE-ATA V1.1.
426c86c0155SWenyou Yang
427479fbf72SJason Zhuconfig MMC_USE_PRE_CONFIG
428479fbf72SJason Zhu	bool "Enable to use pre-configure set by pre-loader or bootrom"
429479fbf72SJason Zhu	help
430479fbf72SJason Zhu	  The MMC is initialized by pre-loader or bootrom, so it is no need to
431479fbf72SJason Zhu	  initialize it again. Open this config to skip some unused initialized
432479fbf72SJason Zhu	  process.
433479fbf72SJason Zhu
434e298c46aSMasahiro Yamadaendif
435e298c46aSMasahiro Yamada
4364119b709SMarcel Ziswilerconfig TEGRA124_MMC_DISABLE_EXT_LOOPBACK
4374119b709SMarcel Ziswiler	bool "Disable external clock loopback"
4384119b709SMarcel Ziswiler	depends on MMC_SDHCI_TEGRA && TEGRA124
4394119b709SMarcel Ziswiler	help
4404119b709SMarcel Ziswiler	  Disable the external clock loopback and use the internal one on SDMMC3
4414119b709SMarcel Ziswiler	  as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
4424119b709SMarcel Ziswiler	  being set to 0xfffd according to the TRM.
4434119b709SMarcel Ziswiler
4444119b709SMarcel Ziswiler	  TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
4454119b709SMarcel Ziswiler	  approach once proper kernel integration made it mainline.
4464119b709SMarcel Ziswiler
44772d42badSNobuhiro Iwamatsuendmenu
448c01e4a1aSYork Sun
449c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC111
450c01e4a1aSYork Sun	bool
451c01e4a1aSYork Sun
452c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC13
453c01e4a1aSYork Sun	bool
454c01e4a1aSYork Sun
455c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC135
456c01e4a1aSYork Sun	bool
457c01e4a1aSYork Sun
458c01e4a1aSYork Sunconfig SYS_FSL_ERRATUM_ESDHC_A001
459c01e4a1aSYork Sun	bool
460