blob: 75a7cd328967b275858e433d6fd42eaa49578e11 [file] [log] [blame]
Haavard Skinnemoeneb220962008-06-12 19:27:56 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Haavard Skinnemoeneb220962008-06-12 19:27:56 +02006#
7
Simon Glass4bca6662016-05-01 13:52:39 -06008ifdef CONFIG_DM_MMC
Masahiro Yamada0a780172017-05-09 20:31:39 +09009obj-$(CONFIG_MMC) += mmc-uclass.o
Simon Glass4bca6662016-05-01 13:52:39 -060010endif
Simon Glass1e8eb1b2015-06-23 15:38:48 -060011
Simon Glasse5db1152016-05-01 13:52:35 -060012ifndef CONFIG_BLK
Masahiro Yamada0a780172017-05-09 20:31:39 +090013obj-$(CONFIG_MMC) += mmc_legacy.o
Simon Glasse5db1152016-05-01 13:52:35 -060014endif
15
Pavel Machek859f3062014-09-09 15:16:10 +020016obj-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o
Masahiro Yamadab2c88682017-01-10 13:32:07 +090017obj-$(CONFIG_MMC_DAVINCI) += davinci_mmc.o
18
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +090019obj-$(CONFIG_MMC_DW) += dw_mmc.o
20obj-$(CONFIG_MMC_DW_EXYNOS) += exynos_dw_mmc.o
21obj-$(CONFIG_MMC_DW_K3) += hi6220_dw_mmc.o
22obj-$(CONFIG_MMC_DW_ROCKCHIP) += rockchip_dw_mmc.o
23obj-$(CONFIG_MMC_DW_SOCFPGA) += socfpga_dw_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090024obj-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
25obj-$(CONFIG_FTSDC010) += ftsdc010_mci.o
Masahiro Yamada0a780172017-05-09 20:31:39 +090026obj-$(CONFIG_MMC) += mmc.o
Simon Glass84f9df92016-06-12 23:30:18 -060027ifdef CONFIG_SUPPORT_EMMC_BOOT
Masahiro Yamada0a780172017-05-09 20:31:39 +090028obj-$(CONFIG_MMC) += mmc_boot.o
Simon Glass84f9df92016-06-12 23:30:18 -060029endif
Masahiro Yamada5594ce42013-10-17 17:34:57 +090030obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
Carlo Caione20cab782017-04-12 20:30:42 +020031obj-$(CONFIG_MMC_MESON_GX) += meson_gx_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090032obj-$(CONFIG_MMC_SPI) += mmc_spi.o
Pavel Machek859f3062014-09-09 15:16:10 +020033obj-$(CONFIG_MVEBU_MMC) += mvebu_mmc.o
Masahiro Yamadab2c88682017-01-10 13:32:07 +090034obj-$(CONFIG_MMC_OMAP_HS) += omap_hsmmc.o
35obj-$(CONFIG_MMC_MXC) += mxcmmc.o
36obj-$(CONFIG_MMC_MXS) += mxsmmc.o
Felipe Balbiecf7dfd2017-02-20 14:24:13 +030037obj-$(CONFIG_MMC_PCI) += pci_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090038obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
Pavel Machek859f3062014-09-09 15:16:10 +020039obj-$(CONFIG_SUPPORT_EMMC_RPMB) += rpmb.o
Marek Vasut635638f2014-07-22 02:34:52 +020040obj-$(CONFIG_S3C_SDI) += s3c_sdi.o
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +090041obj-$(CONFIG_MMC_SANDBOX) += sandbox_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090042obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +090043obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
Pavel Machek859f3062014-09-09 15:16:10 +020044
Ying Zhang9ff70262013-08-16 15:16:11 +080045ifdef CONFIG_SPL_BUILD
Masahiro Yamada5594ce42013-10-17 17:34:57 +090046obj-$(CONFIG_SPL_MMC_BOOT) += fsl_esdhc_spl.o
B, Ravie94b0242016-09-28 14:46:18 +053047obj-$(CONFIG_SPL_SAVEENV) += mmc_write.o
Paul Burton8d30cc92013-09-09 15:30:26 +010048else
Masahiro Yamada0a780172017-05-09 20:31:39 +090049obj-$(CONFIG_MMC) += mmc_write.o
Ying Zhang9ff70262013-08-16 15:16:11 +080050endif
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090051
52# SDHCI
53obj-$(CONFIG_MMC_SDHCI) += sdhci.o
Masahiro Yamada8c1a1322017-01-30 19:46:55 +090054obj-$(CONFIG_MMC_SDHCI_ATMEL) += atmel_sdhci.o
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090055obj-$(CONFIG_MMC_SDHCI_BCM2835) += bcm2835_sdhci.o
Masahiro Yamadadcbc4432016-12-30 22:41:46 +090056obj-$(CONFIG_MMC_SDHCI_CADENCE) += sdhci-cadence.o
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090057obj-$(CONFIG_MMC_SDHCI_KONA) += kona_sdhci.o
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +090058obj-$(CONFIG_MMC_SDHCI_MSM) += msm_sdhci.o
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090059obj-$(CONFIG_MMC_SDHCI_MV) += mv_sdhci.o
Masahiro Yamadaf79df032017-01-30 19:46:54 +090060obj-$(CONFIG_MMC_SDHCI_PIC32) += pic32_sdhci.o
Masahiro Yamadababe0262017-01-30 19:46:52 +090061obj-$(CONFIG_MMC_SDHCI_ROCKCHIP) += rockchip_sdhci.o
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090062obj-$(CONFIG_MMC_SDHCI_S5P) += s5p_sdhci.o
63obj-$(CONFIG_MMC_SDHCI_SPEAR) += spear_sdhci.o
Patrice Chotard2eea7d82017-02-21 13:37:09 +010064obj-$(CONFIG_MMC_SDHCI_STI) += sti_sdhci.o
Felipe Balbib7567602017-02-20 14:24:14 +030065obj-$(CONFIG_MMC_SDHCI_TANGIER) += tangier_sdhci.o
Masahiro Yamadab2c88682017-01-10 13:32:07 +090066obj-$(CONFIG_MMC_SDHCI_TEGRA) += tegra_mmc.o
Stefan Roese121fc562016-12-09 15:03:28 +010067obj-$(CONFIG_MMC_SDHCI_XENON) += xenon_sdhci.o
Masahiro Yamada168c57d2017-01-30 19:46:51 +090068obj-$(CONFIG_MMC_SDHCI_ZYNQ) += zynq_sdhci.o
Masahiro Yamadab2c88682017-01-10 13:32:07 +090069
70obj-$(CONFIG_MMC_SUNXI) += sunxi_mmc.o
71obj-$(CONFIG_MMC_UNIPHIER) += uniphier-sd.o