1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6obj-y += mmc.o
7obj-$(CONFIG_$(SPL_)DM_MMC) += mmc-uclass.o
8obj-$(CONFIG_$(SPL_)MMC_WRITE) += mmc_write.o
9obj-$(CONFIG_MMC_PWRSEQ) += mmc-pwrseq.o
10obj-$(CONFIG_MMC_SDHCI_ADMA_HELPERS) += sdhci-adma.o
11
12ifndef CONFIG_$(SPL_)BLK
13obj-y += mmc_legacy.o
14endif
15
16obj-$(CONFIG_SUPPORT_EMMC_BOOT) += mmc_boot.o
17
18ifdef CONFIG_SPL_BUILD
19obj-$(CONFIG_SPL_MMC_BOOT) += fsl_esdhc_spl.o
20endif
21
22obj-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o
23obj-$(CONFIG_MMC_DAVINCI)		+= davinci_mmc.o
24obj-$(CONFIG_MMC_DW)			+= dw_mmc.o
25obj-$(CONFIG_MMC_DW_CORTINA)		+= ca_dw_mmc.o
26obj-$(CONFIG_MMC_DW_EXYNOS)		+= exynos_dw_mmc.o
27obj-$(CONFIG_MMC_DW_K3)			+= hi6220_dw_mmc.o
28obj-$(CONFIG_MMC_DW_ROCKCHIP)		+= rockchip_dw_mmc.o
29obj-$(CONFIG_MMC_DW_SOCFPGA)		+= socfpga_dw_mmc.o
30obj-$(CONFIG_MMC_DW_SNPS)		+= snps_dw_mmc.o
31obj-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
32obj-$(CONFIG_FSL_ESDHC_IMX) += fsl_esdhc_imx.o
33obj-$(CONFIG_FTSDC010) += ftsdc010_mci.o
34obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
35obj-$(CONFIG_MMC_MESON_GX) += meson_gx_mmc.o
36obj-$(CONFIG_MMC_SPI) += mmc_spi.o
37obj-$(CONFIG_MVEBU_MMC) += mvebu_mmc.o
38obj-$(CONFIG_MMC_OMAP_HS)		+= omap_hsmmc.o
39obj-$(CONFIG_MMC_MXC)			+= mxcmmc.o
40obj-$(CONFIG_MMC_MXS)			+= mxsmmc.o
41obj-$(CONFIG_MMC_OCTEONTX)		+= octeontx_hsmmc.o
42obj-$(CONFIG_MMC_PCI)			+= pci_mmc.o
43obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
44obj-$(CONFIG_$(SPL_TPL_)SUPPORT_EMMC_RPMB) += rpmb.o
45obj-$(CONFIG_MMC_SANDBOX)		+= sandbox_mmc.o
46obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
47obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
48obj-$(CONFIG_STM32_SDMMC2) += stm32_sdmmc2.o
49obj-$(CONFIG_JZ47XX_MMC) += jz_mmc.o
50obj-$(CONFIG_NEXELL_DWMMC) += nexell_dw_mmc.o
51
52# SDHCI
53obj-$(CONFIG_MMC_SDHCI)			+= sdhci.o
54obj-$(CONFIG_MMC_SDHCI_ASPEED)		+= aspeed_sdhci.o
55obj-$(CONFIG_MMC_SDHCI_ATMEL)		+= atmel_sdhci.o
56obj-$(CONFIG_MMC_SDHCI_BCM2835)		+= bcm2835_sdhci.o
57obj-$(CONFIG_MMC_SDHCI_BCMSTB)		+= bcmstb_sdhci.o
58obj-$(CONFIG_MMC_SDHCI_CADENCE)		+= sdhci-cadence.o
59obj-$(CONFIG_MMC_SDHCI_AM654)		+= am654_sdhci.o
60obj-$(CONFIG_MMC_SDHCI_IPROC)		+= iproc_sdhci.o
61obj-$(CONFIG_MMC_SDHCI_KONA)		+= kona_sdhci.o
62obj-$(CONFIG_MMC_SDHCI_MSM)		+= msm_sdhci.o
63obj-$(CONFIG_MMC_SDHCI_MV)		+= mv_sdhci.o
64obj-$(CONFIG_MMC_SDHCI_PIC32)		+= pic32_sdhci.o
65obj-$(CONFIG_MMC_SDHCI_ROCKCHIP)	+= rockchip_sdhci.o
66obj-$(CONFIG_MMC_SDHCI_S5P)		+= s5p_sdhci.o
67obj-$(CONFIG_MMC_SDHCI_SPEAR)		+= spear_sdhci.o
68obj-$(CONFIG_MMC_SDHCI_STI) 		+= sti_sdhci.o
69obj-$(CONFIG_MMC_SDHCI_TANGIER)		+= tangier_sdhci.o
70obj-$(CONFIG_MMC_SDHCI_TEGRA)		+= tegra_mmc.o
71obj-$(CONFIG_MMC_SDHCI_XENON)		+= xenon_sdhci.o
72obj-$(CONFIG_MMC_SDHCI_ZYNQ)		+= zynq_sdhci.o
73
74obj-$(CONFIG_MMC_SUNXI)			+= sunxi_mmc.o
75obj-$(CONFIG_MMC_UNIPHIER)		+= tmio-common.o uniphier-sd.o
76obj-$(CONFIG_RENESAS_SDHI)		+= tmio-common.o renesas-sdhi.o
77obj-$(CONFIG_MMC_BCM2835)		+= bcm2835_sdhost.o
78obj-$(CONFIG_MMC_MTK)			+= mtk-sd.o
79