1 ccflags-
$(CONFIG_USB_DWC2_DEBUG
) += -DDEBUG
2 ccflags-
$(CONFIG_USB_DWC2_VERBOSE
) += -DVERBOSE_DEBUG
4 obj-
$(CONFIG_USB_DWC2_HOST
) += dwc2.o
5 dwc2-y
:= core.o core_intr.o
6 dwc2-y
+= hcd.o hcd_intr.o
7 dwc2-y
+= hcd_queue.o hcd_ddma.o
9 # NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to
10 # this location and renamed gadget.c. When building for dynamically linked
11 # modules, dwc2_gadget.ko will get built for peripheral mode. For host mode,
12 # the core module will be dwc2.ko, the PCI bus interface module will called
13 # dwc2_pci.ko and the platform interface module will be called dwc2_platform.ko.
14 # At present the host and gadget driver will be separate drivers, but there
15 # are plans in the near future to create a dual-role driver.
17 ifneq ($(CONFIG_USB_DWC2_PCI
),)
18 obj-
$(CONFIG_USB_DWC2_HOST
) += dwc2_pci.o
22 ifneq ($(CONFIG_USB_DWC2_PLATFORM
),)
23 obj-
$(CONFIG_USB_DWC2_HOST
) += dwc2_platform.o
24 dwc2_platform-y
:= platform.o
27 obj-
$(CONFIG_USB_DWC2_PERIPHERAL
) += dwc2_gadget.o
28 dwc2_gadget-y
:= gadget.o