blob: 2b136ea21e1362ecb79ae46758b4c44b9bf10a79 [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
9obj-$(CONFIG_GENERIC_MMC) += mmc-uclass.o
10endif
Simon Glass1e8eb1b2015-06-23 15:38:48 -060011
Simon Glasse5db1152016-05-01 13:52:35 -060012ifndef CONFIG_BLK
13obj-$(CONFIG_GENERIC_MMC) += mmc_legacy.o
14endif
15
Pavel Machek859f3062014-09-09 15:16:10 +020016obj-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o
Wenyou Yang11fd15d2015-11-02 10:57:09 +080017obj-$(CONFIG_ATMEL_SDHCI) += atmel_sdhci.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090018obj-$(CONFIG_BFIN_SDH) += bfin_sdh.o
19obj-$(CONFIG_DAVINCI_MMC) += davinci_mmc.o
Pavel Machek859f3062014-09-09 15:16:10 +020020obj-$(CONFIG_DWMMC) += dw_mmc.o
21obj-$(CONFIG_EXYNOS_DWMMC) += exynos_dw_mmc.o
Peter Griffinaf0c1be2015-07-30 18:55:22 +010022obj-$(CONFIG_HIKEY_DWMMC) += hi6220_dw_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090023obj-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
24obj-$(CONFIG_FTSDC010) += ftsdc010_mci.o
Kuo-Jung Su3a909992013-11-25 10:51:41 +080025obj-$(CONFIG_FTSDC021) += ftsdc021_sdhci.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090026obj-$(CONFIG_GENERIC_MMC) += mmc.o
Simon Glass84f9df92016-06-12 23:30:18 -060027ifdef CONFIG_SUPPORT_EMMC_BOOT
28obj-$(CONFIG_GENERIC_MMC) += mmc_boot.o
29endif
Masahiro Yamada5594ce42013-10-17 17:34:57 +090030obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
31obj-$(CONFIG_MMC_SPI) += mmc_spi.o
Pavel Machek859f3062014-09-09 15:16:10 +020032obj-$(CONFIG_MMC_SUNXI) += sunxi_mmc.o
Pavel Machek859f3062014-09-09 15:16:10 +020033obj-$(CONFIG_MVEBU_MMC) += mvebu_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090034obj-$(CONFIG_MXC_MMC) += mxcmmc.o
35obj-$(CONFIG_MXS_MMC) += mxsmmc.o
36obj-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o
Simon Glass509805b2015-01-27 22:13:39 -070037obj-$(CONFIG_X86) += pci_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090038obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
Simon Glass4ecaa6d2015-08-30 16:55:37 -060039obj-$(CONFIG_ROCKCHIP_DWMMC) += rockchip_dw_mmc.o
Pavel Machek859f3062014-09-09 15:16:10 +020040obj-$(CONFIG_SUPPORT_EMMC_RPMB) += rpmb.o
Marek Vasut635638f2014-07-22 02:34:52 +020041obj-$(CONFIG_S3C_SDI) += s3c_sdi.o
Simon Glassa6a15c42016-05-01 13:52:38 -060042ifdef CONFIG_BLK
43ifdef CONFIG_GENERIC_MMC
Simon Glassd3e58e42015-07-06 12:54:32 -060044obj-$(CONFIG_SANDBOX) += sandbox_mmc.o
Simon Glassa6a15c42016-05-01 13:52:38 -060045endif
46endif
Masahiro Yamada5594ce42013-10-17 17:34:57 +090047obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +090048obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
Pavel Machek859f3062014-09-09 15:16:10 +020049obj-$(CONFIG_SOCFPGA_DWMMC) += socfpga_dw_mmc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090050obj-$(CONFIG_TEGRA_MMC) += tegra_mmc.o
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +090051obj-$(CONFIG_MMC_UNIPHIER) += uniphier-sd.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090052obj-$(CONFIG_ZYNQ_SDHCI) += zynq_sdhci.o
Kever Yang65922e02016-07-18 17:00:58 +080053obj-$(CONFIG_ROCKCHIP_SDHCI) += rockchip_sdhci.o
Pavel Machek859f3062014-09-09 15:16:10 +020054
Ying Zhang9ff70262013-08-16 15:16:11 +080055ifdef CONFIG_SPL_BUILD
Masahiro Yamada5594ce42013-10-17 17:34:57 +090056obj-$(CONFIG_SPL_MMC_BOOT) += fsl_esdhc_spl.o
B, Ravie94b0242016-09-28 14:46:18 +053057obj-$(CONFIG_SPL_SAVEENV) += mmc_write.o
Paul Burton8d30cc92013-09-09 15:30:26 +010058else
Masahiro Yamada5594ce42013-10-17 17:34:57 +090059obj-$(CONFIG_GENERIC_MMC) += mmc_write.o
Ying Zhang9ff70262013-08-16 15:16:11 +080060endif
Andrei Pistiricabe033172016-01-28 15:30:18 +053061obj-$(CONFIG_PIC32_SDHCI) += pic32_sdhci.o
Mateusz Kulikowskia00b0c02016-03-31 23:12:16 +020062obj-$(CONFIG_MSM_SDHCI) += msm_sdhci.o
Masahiro Yamada124f6ce2016-12-07 22:10:29 +090063
64# SDHCI
65obj-$(CONFIG_MMC_SDHCI) += sdhci.o
66obj-$(CONFIG_MMC_SDHCI_BCM2835) += bcm2835_sdhci.o
67obj-$(CONFIG_MMC_SDHCI_KONA) += kona_sdhci.o
68obj-$(CONFIG_MMC_SDHCI_MV) += mv_sdhci.o
69obj-$(CONFIG_MMC_SDHCI_S5P) += s5p_sdhci.o
70obj-$(CONFIG_MMC_SDHCI_SPEAR) += spear_sdhci.o