blob: e78bd0d41dce0c9c2019bc50b8e86b79b0c985c9 [file] [log] [blame]
Haavard Skinnemoen5ce13052008-06-12 19:27:56 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Haavard Skinnemoen5ce13052008-06-12 19:27:56 +02006#
7
Simon Glass8ef761e2016-05-01 13:52:39 -06008ifdef CONFIG_DM_MMC
9obj-$(CONFIG_GENERIC_MMC) += mmc-uclass.o
10endif
Simon Glasse7ecf7c2015-06-23 15:38:48 -060011
Simon Glassc40fdca2016-05-01 13:52:35 -060012ifndef CONFIG_BLK
13obj-$(CONFIG_GENERIC_MMC) += mmc_legacy.o
14endif
15
Pavel Machek389b89c2014-09-09 15:16:10 +020016obj-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090017obj-$(CONFIG_BFIN_SDH) += bfin_sdh.o
Masahiro Yamada1d2c0502017-01-10 13:32:07 +090018obj-$(CONFIG_MMC_DAVINCI) += davinci_mmc.o
19
Masahiro Yamadaae4c81e2017-01-10 13:32:05 +090020obj-$(CONFIG_MMC_DW) += dw_mmc.o
21obj-$(CONFIG_MMC_DW_EXYNOS) += exynos_dw_mmc.o
22obj-$(CONFIG_MMC_DW_K3) += hi6220_dw_mmc.o
23obj-$(CONFIG_MMC_DW_ROCKCHIP) += rockchip_dw_mmc.o
24obj-$(CONFIG_MMC_DW_SOCFPGA) += socfpga_dw_mmc.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090025obj-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
26obj-$(CONFIG_FTSDC010) += ftsdc010_mci.o
Kuo-Jung Suadebb982013-11-25 10:51:41 +080027obj-$(CONFIG_FTSDC021) += ftsdc021_sdhci.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090028obj-$(CONFIG_GENERIC_MMC) += mmc.o
Simon Glassc40704f2016-06-12 23:30:18 -060029ifdef CONFIG_SUPPORT_EMMC_BOOT
30obj-$(CONFIG_GENERIC_MMC) += mmc_boot.o
31endif
Masahiro Yamada710f1d32013-10-17 17:34:57 +090032obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
33obj-$(CONFIG_MMC_SPI) += mmc_spi.o
Pavel Machek389b89c2014-09-09 15:16:10 +020034obj-$(CONFIG_MVEBU_MMC) += mvebu_mmc.o
Masahiro Yamada1d2c0502017-01-10 13:32:07 +090035obj-$(CONFIG_MMC_OMAP_HS) += omap_hsmmc.o
36obj-$(CONFIG_MMC_MXC) += mxcmmc.o
37obj-$(CONFIG_MMC_MXS) += mxsmmc.o
Simon Glass91785f72015-01-27 22:13:39 -070038obj-$(CONFIG_X86) += pci_mmc.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090039obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
Pavel Machek389b89c2014-09-09 15:16:10 +020040obj-$(CONFIG_SUPPORT_EMMC_RPMB) += rpmb.o
Marek Vasutdae0f5c2014-07-22 02:34:52 +020041obj-$(CONFIG_S3C_SDI) += s3c_sdi.o
Masahiro Yamadaa5995a52017-01-30 19:46:50 +090042obj-$(CONFIG_MMC_SANDBOX) += sandbox_mmc.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090043obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
Nobuhiro Iwamatsu72d42ba2014-12-17 08:03:00 +090044obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
Pavel Machek389b89c2014-09-09 15:16:10 +020045
Ying Zhangbb0dc102013-08-16 15:16:11 +080046ifdef CONFIG_SPL_BUILD
Masahiro Yamada710f1d32013-10-17 17:34:57 +090047obj-$(CONFIG_SPL_MMC_BOOT) += fsl_esdhc_spl.o
B, Ravid2d9bdf2016-09-28 14:46:18 +053048obj-$(CONFIG_SPL_SAVEENV) += mmc_write.o
Paul Burtonda61fa52013-09-09 15:30:26 +010049else
Masahiro Yamada710f1d32013-10-17 17:34:57 +090050obj-$(CONFIG_GENERIC_MMC) += mmc_write.o
Ying Zhangbb0dc102013-08-16 15:16:11 +080051endif
Masahiro Yamada45a68fe2016-12-07 22:10:29 +090052
53# SDHCI
54obj-$(CONFIG_MMC_SDHCI) += sdhci.o
Masahiro Yamadadd3b64e2017-01-30 19:46:55 +090055obj-$(CONFIG_MMC_SDHCI_ATMEL) += atmel_sdhci.o
Masahiro Yamada45a68fe2016-12-07 22:10:29 +090056obj-$(CONFIG_MMC_SDHCI_BCM2835) += bcm2835_sdhci.o
Masahiro Yamadae5e7a7c2016-12-30 22:41:46 +090057obj-$(CONFIG_MMC_SDHCI_CADENCE) += sdhci-cadence.o
Masahiro Yamada45a68fe2016-12-07 22:10:29 +090058obj-$(CONFIG_MMC_SDHCI_KONA) += kona_sdhci.o
Masahiro Yamada360c67d2017-01-30 19:46:53 +090059obj-$(CONFIG_MMC_SDHCI_MSM) += msm_sdhci.o
Masahiro Yamada45a68fe2016-12-07 22:10:29 +090060obj-$(CONFIG_MMC_SDHCI_MV) += mv_sdhci.o
Masahiro Yamada1b858772017-01-30 19:46:54 +090061obj-$(CONFIG_MMC_SDHCI_PIC32) += pic32_sdhci.o
Masahiro Yamadafacc8052017-01-30 19:46:52 +090062obj-$(CONFIG_MMC_SDHCI_ROCKCHIP) += rockchip_sdhci.o
Masahiro Yamada45a68fe2016-12-07 22:10:29 +090063obj-$(CONFIG_MMC_SDHCI_S5P) += s5p_sdhci.o
64obj-$(CONFIG_MMC_SDHCI_SPEAR) += spear_sdhci.o
Masahiro Yamada1d2c0502017-01-10 13:32:07 +090065obj-$(CONFIG_MMC_SDHCI_TEGRA) += tegra_mmc.o
Stefan Roeseb6acb5f2016-12-09 15:03:28 +010066obj-$(CONFIG_MMC_SDHCI_XENON) += xenon_sdhci.o
Masahiro Yamada08aa0332017-01-30 19:46:51 +090067obj-$(CONFIG_MMC_SDHCI_ZYNQ) += zynq_sdhci.o
Masahiro Yamada1d2c0502017-01-10 13:32:07 +090068
69obj-$(CONFIG_MMC_SUNXI) += sunxi_mmc.o
70obj-$(CONFIG_MMC_UNIPHIER) += uniphier-sd.o