blob: 2d499de6f66a53ad55a26fe5ec830a73fb8637de [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Felipe Balbi2c4cbe6e52014-04-30 17:45:10 -05002# define_trace.h needs to know how to find our header
3CFLAGS_trace.o := -I$(src)
4
Felipe Balbi72246da2011-08-19 18:10:58 +03005obj-$(CONFIG_USB_DWC3) += dwc3.o
6
Felipe Balbi57b14da2016-09-30 14:12:34 +03007dwc3-y := core.o
8
Felipe Balbide948a72018-03-22 10:45:20 +02009ifneq ($(CONFIG_TRACING),)
Felipe Balbi5eb30ce2016-11-03 14:07:51 +020010 dwc3-y += trace.o
Felipe Balbi57b14da2016-09-30 14:12:34 +030011endif
Vivek Gautam388e5c52013-01-15 16:09:21 +053012
13ifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
14 dwc3-y += host.o
15endif
16
17ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
18 dwc3-y += gadget.o ep0.o
19endif
Felipe Balbid07e8812011-10-12 14:08:26 +030020
Roger Quadros98403542017-04-05 13:39:31 +030021ifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),)
22 dwc3-y += drd.o
23endif
24
Heikki Krogerus88bc9d12015-05-13 15:26:51 +030025ifneq ($(CONFIG_USB_DWC3_ULPI),)
26 dwc3-y += ulpi.o
27endif
28
Felipe Balbi72246da2011-08-19 18:10:58 +030029ifneq ($(CONFIG_DEBUG_FS),)
30 dwc3-y += debugfs.o
31endif
32
33##
34# Platform-specific glue layers go here
35#
36# NOTICE: Make sure your glue layer doesn't depend on anything
37# which is arch-specific and that it compiles on all situations.
38#
39# We want to keep this requirement in order to be able to compile
40# the entire driver (with all its glue layers) on several architectures
41# and make sure it compiles fine. This will also help with allmodconfig
42# and allyesconfig builds.
Felipe Balbi72246da2011-08-19 18:10:58 +030043##
44
Felipe Balbi1a356db2013-06-26 15:14:06 +030045obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
46obj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o
47obj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o
Thinh Nguyen3fe314c2018-06-12 14:26:43 -070048obj-$(CONFIG_USB_DWC3_HAPS) += dwc3-haps.o
WingMan Kwok943befc2013-12-12 12:25:29 -050049obj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o
Neil Armstrongc9999332019-04-23 10:51:27 +020050obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o
Felipe Balbi16adc672015-11-18 13:15:20 -060051obj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o
Peter Griffinf83fca02014-09-05 16:36:30 +010052obj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o
Manu Gautama4333c32018-05-09 23:09:20 +053053obj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o
Li Jun6dd25652020-12-29 19:37:44 +080054obj-$(CONFIG_USB_DWC3_IMX8MP) += dwc3-imx8mp.o
Manish Narani84770f02021-03-17 12:22:29 +053055obj-$(CONFIG_USB_DWC3_XILINX) += dwc3-xilinx.o