Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 ccflags-$(CONFIG_USB_DWC2_DEBUG)        += -DDEBUG
0003 ccflags-$(CONFIG_USB_DWC2_VERBOSE)      += -DVERBOSE_DEBUG
0004 
0005 obj-$(CONFIG_USB_DWC2)                  += dwc2.o
0006 dwc2-y                                  := core.o core_intr.o platform.o drd.o
0007 dwc2-y                                  += params.o
0008 
0009 ifneq ($(filter y,$(CONFIG_USB_DWC2_HOST) $(CONFIG_USB_DWC2_DUAL_ROLE)),)
0010         dwc2-y                          += hcd.o hcd_intr.o
0011         dwc2-y                          += hcd_queue.o hcd_ddma.o
0012 endif
0013 
0014 ifneq ($(filter y,$(CONFIG_USB_DWC2_PERIPHERAL) $(CONFIG_USB_DWC2_DUAL_ROLE)),)
0015         dwc2-y                          += gadget.o
0016 endif
0017 
0018 ifneq ($(CONFIG_DEBUG_FS),)
0019         dwc2-y                          += debugfs.o
0020 endif
0021 
0022 # NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to
0023 # this location and renamed gadget.c. When building for dynamically linked
0024 # modules, dwc2.ko will get built for host mode, peripheral mode, and dual-role
0025 # mode. The PCI bus interface module will called dwc2_pci.ko and the platform
0026 # interface module will be called dwc2_platform.ko.
0027 
0028 obj-$(CONFIG_USB_DWC2_PCI)              += dwc2_pci.o
0029 dwc2_pci-y                              := pci.o