xref: /openbmc/linux/drivers/mmc/host/Makefile (revision d9fd5a71)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for MMC/SD host controller drivers
4#
5
6obj-$(CONFIG_MMC_ARMMMCI) += armmmci.o
7armmmci-y := mmci.o
8armmmci-$(CONFIG_MMC_QCOM_DML) += mmci_qcom_dml.o
9armmmci-$(CONFIG_MMC_STM32_SDMMC) += mmci_stm32_sdmmc.o
10obj-$(CONFIG_MMC_PXA)		+= pxamci.o
11obj-$(CONFIG_MMC_MXC)		+= mxcmmc.o
12obj-$(CONFIG_MMC_MXS)		+= mxs-mmc.o
13obj-$(CONFIG_MMC_SDHCI)		+= sdhci.o
14obj-$(CONFIG_MMC_SDHCI_PCI)	+= sdhci-pci.o
15sdhci-pci-y			+= sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o \
16				   sdhci-pci-dwc-mshc.o sdhci-pci-gli.o
17obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI))	+= sdhci-pci-data.o
18obj-$(CONFIG_MMC_SDHCI_ACPI)	+= sdhci-acpi.o
19obj-$(CONFIG_MMC_SDHCI_PXAV3)	+= sdhci-pxav3.o
20obj-$(CONFIG_MMC_SDHCI_PXAV2)	+= sdhci-pxav2.o
21obj-$(CONFIG_MMC_SDHCI_S3C)	+= sdhci-s3c.o
22obj-$(CONFIG_MMC_SDHCI_F_SDH30)	+= sdhci_f_sdh30.o
23obj-$(CONFIG_MMC_SDHCI_MILBEAUT)	+= sdhci-milbeaut.o
24obj-$(CONFIG_MMC_SDHCI_SPEAR)	+= sdhci-spear.o
25obj-$(CONFIG_MMC_SDHCI_AM654)	+= sdhci_am654.o
26obj-$(CONFIG_MMC_WBSD)		+= wbsd.o
27obj-$(CONFIG_MMC_AU1X)		+= au1xmmc.o
28obj-$(CONFIG_MMC_ALCOR)	+= alcor.o
29obj-$(CONFIG_MMC_MTK)		+= mtk-sd.o
30obj-$(CONFIG_MMC_OMAP)		+= omap.o
31obj-$(CONFIG_MMC_OMAP_HS)	+= omap_hsmmc.o
32obj-$(CONFIG_MMC_ATMELMCI)	+= atmel-mci.o
33obj-$(CONFIG_MMC_TIFM_SD)	+= tifm_sd.o
34obj-$(CONFIG_MMC_MVSDIO)	+= mvsdio.o
35obj-$(CONFIG_MMC_DAVINCI)       += davinci_mmc.o
36obj-$(CONFIG_MMC_SPI)		+= mmc_spi.o
37ifeq ($(CONFIG_OF),y)
38obj-$(CONFIG_MMC_SPI)		+= of_mmc_spi.o
39endif
40obj-$(CONFIG_MMC_S3C)   	+= s3cmci.o
41obj-$(CONFIG_MMC_SDRICOH_CS)	+= sdricoh_cs.o
42obj-$(CONFIG_MMC_TMIO)		+= tmio_mmc.o
43obj-$(CONFIG_MMC_TMIO_CORE)	+= tmio_mmc_core.o
44obj-$(CONFIG_MMC_SDHI)		+= renesas_sdhi_core.o
45obj-$(CONFIG_MMC_SDHI_SYS_DMAC)		+= renesas_sdhi_sys_dmac.o
46obj-$(CONFIG_MMC_SDHI_INTERNAL_DMAC)	+= renesas_sdhi_internal_dmac.o
47obj-$(CONFIG_MMC_UNIPHIER)	+= uniphier-sd.o
48obj-$(CONFIG_MMC_CB710)		+= cb710-mmc.o
49obj-$(CONFIG_MMC_VIA_SDMMC)	+= via-sdmmc.o
50octeon-mmc-objs := cavium.o cavium-octeon.o
51obj-$(CONFIG_MMC_CAVIUM_OCTEON) += octeon-mmc.o
52thunderx-mmc-objs := cavium.o cavium-thunderx.o
53obj-$(CONFIG_MMC_CAVIUM_THUNDERX) += thunderx-mmc.o
54obj-$(CONFIG_MMC_DW)		+= dw_mmc.o
55obj-$(CONFIG_MMC_DW_PLTFM)	+= dw_mmc-pltfm.o
56obj-$(CONFIG_MMC_DW_BLUEFIELD)	+= dw_mmc-bluefield.o
57obj-$(CONFIG_MMC_DW_EXYNOS)	+= dw_mmc-exynos.o
58obj-$(CONFIG_MMC_DW_HI3798CV200) += dw_mmc-hi3798cv200.o
59obj-$(CONFIG_MMC_DW_K3)		+= dw_mmc-k3.o
60obj-$(CONFIG_MMC_DW_PCI)	+= dw_mmc-pci.o
61obj-$(CONFIG_MMC_DW_ROCKCHIP)	+= dw_mmc-rockchip.o
62obj-$(CONFIG_MMC_SH_MMCIF)	+= sh_mmcif.o
63obj-$(CONFIG_MMC_JZ4740)	+= jz4740_mmc.o
64obj-$(CONFIG_MMC_VUB300)	+= vub300.o
65obj-$(CONFIG_MMC_USHC)		+= ushc.o
66obj-$(CONFIG_MMC_WMT)		+= wmt-sdmmc.o
67obj-$(CONFIG_MMC_MESON_GX)	+= meson-gx-mmc.o
68meson-mx-sdhc-objs 		:= meson-mx-sdhc-clkc.o meson-mx-sdhc-mmc.o
69obj-$(CONFIG_MMC_MESON_MX_SDHC)	+= meson-mx-sdhc.o
70obj-$(CONFIG_MMC_MESON_MX_SDIO)	+= meson-mx-sdio.o
71obj-$(CONFIG_MMC_MOXART)	+= moxart-mmc.o
72obj-$(CONFIG_MMC_SUNXI)		+= sunxi-mmc.o
73obj-$(CONFIG_MMC_USDHI6ROL0)	+= usdhi6rol0.o
74obj-$(CONFIG_MMC_TOSHIBA_PCI)	+= toshsd.o
75obj-$(CONFIG_MMC_BCM2835)	+= bcm2835.o
76obj-$(CONFIG_MMC_OWL)		+= owl-mmc.o
77
78obj-$(CONFIG_MMC_REALTEK_PCI)	+= rtsx_pci_sdmmc.o
79obj-$(CONFIG_MMC_REALTEK_USB)	+= rtsx_usb_sdmmc.o
80
81obj-$(CONFIG_MMC_SDHCI_PLTFM)		+= sdhci-pltfm.o
82obj-$(CONFIG_MMC_SDHCI_CADENCE)		+= sdhci-cadence.o
83obj-$(CONFIG_MMC_SDHCI_CNS3XXX)		+= sdhci-cns3xxx.o
84obj-$(CONFIG_MMC_SDHCI_ESDHC_MCF)       += sdhci-esdhc-mcf.o
85obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX)	+= sdhci-esdhc-imx.o
86obj-$(CONFIG_MMC_SDHCI_DOVE)		+= sdhci-dove.o
87obj-$(CONFIG_MMC_SDHCI_TEGRA)		+= sdhci-tegra.o
88obj-$(CONFIG_MMC_SDHCI_OF_ARASAN)	+= sdhci-of-arasan.o
89obj-$(CONFIG_MMC_SDHCI_OF_ASPEED)	+= sdhci-of-aspeed.o
90obj-$(CONFIG_MMC_SDHCI_OF_AT91)		+= sdhci-of-at91.o
91obj-$(CONFIG_MMC_SDHCI_OF_ESDHC)	+= sdhci-of-esdhc.o
92obj-$(CONFIG_MMC_SDHCI_OF_HLWD)		+= sdhci-of-hlwd.o
93obj-$(CONFIG_MMC_SDHCI_OF_DWCMSHC)	+= sdhci-of-dwcmshc.o
94obj-$(CONFIG_MMC_SDHCI_OF_SPARX5)	+= sdhci-of-sparx5.o
95obj-$(CONFIG_MMC_SDHCI_BCM_KONA)	+= sdhci-bcm-kona.o
96obj-$(CONFIG_MMC_SDHCI_IPROC)		+= sdhci-iproc.o
97obj-$(CONFIG_MMC_SDHCI_MSM)		+= sdhci-msm.o
98obj-$(CONFIG_MMC_SDHCI_ST)		+= sdhci-st.o
99obj-$(CONFIG_MMC_SDHCI_MICROCHIP_PIC32)	+= sdhci-pic32.o
100obj-$(CONFIG_MMC_SDHCI_BRCMSTB)		+= sdhci-brcmstb.o
101obj-$(CONFIG_MMC_SDHCI_OMAP)		+= sdhci-omap.o
102obj-$(CONFIG_MMC_SDHCI_SPRD)		+= sdhci-sprd.o
103obj-$(CONFIG_MMC_CQHCI)			+= cqhci.o
104cqhci-y					+= cqhci-core.o
105cqhci-$(CONFIG_MMC_CRYPTO)		+= cqhci-crypto.o
106obj-$(CONFIG_MMC_HSQ)			+= mmc_hsq.o
107
108ifeq ($(CONFIG_CB710_DEBUG),y)
109	CFLAGS-cb710-mmc	+= -DDEBUG
110endif
111
112obj-$(CONFIG_MMC_SDHCI_XENON)	+= sdhci-xenon-driver.o
113sdhci-xenon-driver-y		+= sdhci-xenon.o sdhci-xenon-phy.o
114