162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ciccflags-$(CONFIG_USB_DWC2_DEBUG) += -DDEBUG 362306a36Sopenharmony_ciccflags-$(CONFIG_USB_DWC2_VERBOSE) += -DVERBOSE_DEBUG 462306a36Sopenharmony_ci 562306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC2) += dwc2.o 662306a36Sopenharmony_cidwc2-y := core.o core_intr.o platform.o drd.o 762306a36Sopenharmony_cidwc2-y += params.o 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC2_HOST) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 1062306a36Sopenharmony_ci dwc2-y += hcd.o hcd_intr.o 1162306a36Sopenharmony_ci dwc2-y += hcd_queue.o hcd_ddma.o 1262306a36Sopenharmony_ciendif 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC2_PERIPHERAL) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 1562306a36Sopenharmony_ci dwc2-y += gadget.o 1662306a36Sopenharmony_ciendif 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciifneq ($(CONFIG_DEBUG_FS),) 1962306a36Sopenharmony_ci dwc2-y += debugfs.o 2062306a36Sopenharmony_ciendif 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci# NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to 2362306a36Sopenharmony_ci# this location and renamed gadget.c. When building for dynamically linked 2462306a36Sopenharmony_ci# modules, dwc2.ko will get built for host mode, peripheral mode, and dual-role 2562306a36Sopenharmony_ci# mode. The PCI bus interface module will called dwc2_pci.ko and the platform 2662306a36Sopenharmony_ci# interface module will be called dwc2_platform.ko. 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC2_PCI) += dwc2_pci.o 2962306a36Sopenharmony_cidwc2_pci-y := pci.o 30