usb: cdns3: add StarFive JH7110 USB driver.
[platform/kernel/linux-starfive.git] / drivers / usb / cdns3 / Makefile
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)
5
6 cdns-usb-common-y                               := core.o drd.o
7 cdns3-y                                         := cdns3-plat.o
8
9 ifeq ($(CONFIG_USB),m)
10 obj-m                                           += cdns-usb-common.o
11 obj-m                                           += cdns3.o
12 else
13 obj-$(CONFIG_USB_CDNS_SUPPORT)                  += cdns-usb-common.o
14 obj-$(CONFIG_USB_CDNS3)                         += cdns3.o
15 endif
16
17 cdns-usb-common-$(CONFIG_USB_CDNS_HOST)         += host.o
18 cdns3-$(CONFIG_USB_CDNS3_GADGET)                += cdns3-gadget.o cdns3-ep0.o
19
20 ifneq ($(CONFIG_USB_CDNS3_GADGET),)
21 cdns3-$(CONFIG_TRACING)                         += cdns3-trace.o
22 endif
23
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
28
29 cdnsp-udc-pci-y                                 := cdnsp-pci.o
30
31 ifdef CONFIG_USB_CDNSP_PCI
32 ifeq ($(CONFIG_USB),m)
33 obj-m                                           += cdnsp-udc-pci.o
34 else
35 obj-$(CONFIG_USB_CDNSP_PCI)                     += cdnsp-udc-pci.o
36 endif
37 endif
38
39 cdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET)        += cdnsp-ring.o cdnsp-gadget.o \
40                                                    cdnsp-mem.o cdnsp-ep0.o
41
42 ifneq ($(CONFIG_USB_CDNSP_GADGET),)
43 cdnsp-udc-pci-$(CONFIG_TRACING)                 += cdnsp-trace.o
44 endif