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