1 # SPDX-License-Identifier: GPL-2.0
2 # define_trace.h needs to know how to find our header
3 CFLAGS_cdns3-trace.o := -I$(src)
4 CFLAGS_cdnsp-trace.o := -I$(src)
6 cdns-usb-common-y := core.o drd.o
7 cdns3-y := cdns3-plat.o
10 obj-m += cdns-usb-common.o
13 obj-$(CONFIG_USB_CDNS_SUPPORT) += cdns-usb-common.o
14 obj-$(CONFIG_USB_CDNS3) += cdns3.o
17 cdns-usb-common-$(CONFIG_USB_CDNS_HOST) += host.o
18 cdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o
20 ifneq ($(CONFIG_USB_CDNS3_GADGET),)
21 cdns3-$(CONFIG_TRACING) += cdns3-trace.o
24 obj-$(CONFIG_USB_CDNS3_PCI_WRAP) += cdns3-pci-wrap.o
25 obj-$(CONFIG_USB_CDNS3_TI) += cdns3-ti.o
26 obj-$(CONFIG_USB_CDNS3_IMX) += cdns3-imx.o
27 obj-$(CONFIG_USB_CDNS3_STARFIVE) += cdns3-starfive.o
29 cdnsp-udc-pci-y := cdnsp-pci.o
31 ifdef CONFIG_USB_CDNSP_PCI
32 ifeq ($(CONFIG_USB),m)
33 obj-m += cdnsp-udc-pci.o
35 obj-$(CONFIG_USB_CDNSP_PCI) += cdnsp-udc-pci.o
39 cdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET) += cdnsp-ring.o cdnsp-gadget.o \
40 cdnsp-mem.o cdnsp-ep0.o
42 ifneq ($(CONFIG_USB_CDNSP_GADGET),)
43 cdnsp-udc-pci-$(CONFIG_TRACING) += cdnsp-trace.o