# SPDX-License-Identifier: GPL-2.0
#
# Makefile for MMC/SD host controller drivers
#
obj-$([31mCONFIG_MMC_ARMMMCI[0m) += armmmci.o
armmmci-y := mmci.o
armmmci-$([31mCONFIG_MMC_QCOM_DML[0m) += mmci_qcom_dml.o
armmmci-$([31mCONFIG_MMC_STM32_SDMMC[0m) += mmci_stm32_sdmmc.o
obj-$([31mCONFIG_MMC_PXA[0m) += pxamci.o
obj-$([31mCONFIG_MMC_MXC[0m) += mxcmmc.o
obj-$([31mCONFIG_MMC_MXS[0m) += mxs-mmc.o
obj-$([31mCONFIG_MMC_SDHCI[0m) += sdhci.o
obj-$([31mCONFIG_MMC_SDHCI_PCI[0m) += sdhci-pci.o
sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o \
sdhci-pci-dwc-mshc.o sdhci-pci-gli.o
obj-$(subst m,y,$([31mCONFIG_MMC_SDHCI_PCI[0m)) += sdhci-pci-data.o
obj-$([31mCONFIG_MMC_SDHCI_ACPI[0m) += sdhci-acpi.o
obj-$([31mCONFIG_MMC_SDHCI_PXAV3[0m) += sdhci-pxav3.o
obj-$([31mCONFIG_MMC_SDHCI_PXAV2[0m) += sdhci-pxav2.o
obj-$([31mCONFIG_MMC_SDHCI_S3C[0m) += sdhci-s3c.o
obj-$([31mCONFIG_MMC_SDHCI_SIRF[0m) += sdhci-sirf.o
obj-$([31mCONFIG_MMC_SDHCI_F_SDH30[0m) += sdhci_f_sdh30.o
obj-$([31mCONFIG_MMC_SDHCI_SPEAR[0m) += sdhci-spear.o
obj-$([31mCONFIG_MMC_SDHCI_AM654[0m) += sdhci_am654.o
obj-$([31mCONFIG_MMC_WBSD[0m) += wbsd.o
obj-$([31mCONFIG_MMC_AU1X[0m) += au1xmmc.o
obj-$([31mCONFIG_MMC_ALCOR[0m) += alcor.o
obj-$([31mCONFIG_MMC_MTK[0m) += mtk-sd.o
obj-$([31mCONFIG_MMC_OMAP[0m) += omap.o
obj-$([31mCONFIG_MMC_OMAP_HS[0m) += omap_hsmmc.o
obj-$([31mCONFIG_MMC_ATMELMCI[0m) += atmel-mci.o
obj-$([31mCONFIG_MMC_TIFM_SD[0m) += tifm_sd.o
obj-$([31mCONFIG_MMC_MVSDIO[0m) += mvsdio.o
obj-$([31mCONFIG_MMC_DAVINCI[0m) += davinci_mmc.o
obj-$([31mCONFIG_MMC_GOLDFISH[0m) += android-goldfish.o
obj-$([31mCONFIG_MMC_SPI[0m) += mmc_spi.o
ifeq ($([31mCONFIG_OF[0m),y)
obj-$([31mCONFIG_MMC_SPI[0m) += of_mmc_spi.o
endif
obj-$([31mCONFIG_MMC_S3C[0m) += s3cmci.o
obj-$([31mCONFIG_MMC_SDRICOH_CS[0m) += sdricoh_cs.o
obj-$([31mCONFIG_MMC_TMIO[0m) += tmio_mmc.o
obj-$([31mCONFIG_MMC_TMIO_CORE[0m) += tmio_mmc_core.o
obj-$([31mCONFIG_MMC_SDHI[0m) += renesas_sdhi_core.o
obj-$([31mCONFIG_MMC_SDHI_SYS_DMAC[0m) += renesas_sdhi_sys_dmac.o
obj-$([31mCONFIG_MMC_SDHI_INTERNAL_DMAC[0m) += renesas_sdhi_internal_dmac.o
obj-$([31mCONFIG_MMC_UNIPHIER[0m) += uniphier-sd.o
obj-$([31mCONFIG_MMC_CB710[0m) += cb710-mmc.o
obj-$([31mCONFIG_MMC_VIA_SDMMC[0m) += via-sdmmc.o
octeon-mmc-objs := cavium.o cavium-octeon.o
obj-$([31mCONFIG_MMC_CAVIUM_OCTEON[0m) += octeon-mmc.o
thunderx-mmc-objs := cavium.o cavium-thunderx.o
obj-$([31mCONFIG_MMC_CAVIUM_THUNDERX[0m) += thunderx-mmc.o
obj-$([31mCONFIG_MMC_DW[0m) += dw_mmc.o
obj-$([31mCONFIG_MMC_DW_PLTFM[0m) += dw_mmc-pltfm.o
obj-$([31mCONFIG_MMC_DW_BLUEFIELD[0m) += dw_mmc-bluefield.o
obj-$([31mCONFIG_MMC_DW_EXYNOS[0m) += dw_mmc-exynos.o
obj-$([31mCONFIG_MMC_DW_HI3798CV200[0m) += dw_mmc-hi3798cv200.o
obj-$([31mCONFIG_MMC_DW_K3[0m) += dw_mmc-k3.o
obj-$([31mCONFIG_MMC_DW_PCI[0m) += dw_mmc-pci.o
obj-$([31mCONFIG_MMC_DW_ROCKCHIP[0m) += dw_mmc-rockchip.o
obj-$([31mCONFIG_MMC_DW_ZX[0m) += dw_mmc-zx.o
obj-$([31mCONFIG_MMC_SH_MMCIF[0m) += sh_mmcif.o
obj-$([31mCONFIG_MMC_JZ4740[0m) += jz4740_mmc.o
obj-$([31mCONFIG_MMC_VUB300[0m) += vub300.o
obj-$([31mCONFIG_MMC_USHC[0m) += ushc.o
obj-$([31mCONFIG_MMC_WMT[0m) += wmt-sdmmc.o
obj-$([31mCONFIG_MMC_MESON_GX[0m) += meson-gx-mmc.o
obj-$([31mCONFIG_MMC_MESON_MX_SDIO[0m) += meson-mx-sdio.o
obj-$([31mCONFIG_MMC_MOXART[0m) += moxart-mmc.o
obj-$([31mCONFIG_MMC_SUNXI[0m) += sunxi-mmc.o
obj-$([31mCONFIG_MMC_USDHI6ROL0[0m) += usdhi6rol0.o
obj-$([31mCONFIG_MMC_TOSHIBA_PCI[0m) += toshsd.o
obj-$([31mCONFIG_MMC_BCM2835[0m) += bcm2835.o
obj-$([31mCONFIG_MMC_REALTEK_PCI[0m) += rtsx_pci_sdmmc.o
obj-$([31mCONFIG_MMC_REALTEK_USB[0m) += rtsx_usb_sdmmc.o
obj-$([31mCONFIG_MMC_SDHCI_PLTFM[0m) += sdhci-pltfm.o
obj-$([31mCONFIG_MMC_SDHCI_CADENCE[0m) += sdhci-cadence.o
obj-$([31mCONFIG_MMC_SDHCI_CNS3XXX[0m) += sdhci-cns3xxx.o
obj-$([31mCONFIG_MMC_SDHCI_ESDHC_IMX[0m) += sdhci-esdhc-imx.o
obj-$([31mCONFIG_MMC_SDHCI_DOVE[0m) += sdhci-dove.o
obj-$([31mCONFIG_MMC_SDHCI_TEGRA[0m) += sdhci-tegra.o
obj-$([31mCONFIG_MMC_SDHCI_OF_ARASAN[0m) += sdhci-of-arasan.o
obj-$([31mCONFIG_MMC_SDHCI_OF_ASPEED[0m) += sdhci-of-aspeed.o
obj-$([31mCONFIG_MMC_SDHCI_OF_AT91[0m) += sdhci-of-at91.o
obj-$([31mCONFIG_MMC_SDHCI_OF_ESDHC[0m) += sdhci-of-esdhc.o
obj-$([31mCONFIG_MMC_SDHCI_OF_HLWD[0m) += sdhci-of-hlwd.o
obj-$([31mCONFIG_MMC_SDHCI_OF_DWCMSHC[0m) += sdhci-of-dwcmshc.o
obj-$([31mCONFIG_MMC_SDHCI_BCM_KONA[0m) += sdhci-bcm-kona.o
obj-$([31mCONFIG_MMC_SDHCI_IPROC[0m) += sdhci-iproc.o
obj-$([31mCONFIG_MMC_SDHCI_MSM[0m) += sdhci-msm.o
obj-$([31mCONFIG_MMC_SDHCI_ST[0m) += sdhci-st.o
obj-$([31mCONFIG_MMC_SDHCI_MICROCHIP_PIC32[0m) += sdhci-pic32.o
obj-$([31mCONFIG_MMC_SDHCI_BRCMSTB[0m) += sdhci-brcmstb.o
obj-$([31mCONFIG_MMC_SDHCI_OMAP[0m) += sdhci-omap.o
obj-$([31mCONFIG_MMC_SDHCI_SPRD[0m) += sdhci-sprd.o
obj-$([31mCONFIG_MMC_CQHCI[0m) += cqhci.o
ifeq ($([31mCONFIG_CB710_DEBUG[0m),y)
CFLAGS-cb710-mmc += -DDEBUG
endif
obj-$([31mCONFIG_MMC_SDHCI_XENON[0m) += sdhci-xenon-driver.o
sdhci-xenon-driver-y += sdhci-xenon.o sdhci-xenon-phy.o