18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciccflags-$(CONFIG_USB_DWC2_DEBUG) += -DDEBUG 38c2ecf20Sopenharmony_ciccflags-$(CONFIG_USB_DWC2_VERBOSE) += -DVERBOSE_DEBUG 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC2) += dwc2.o 68c2ecf20Sopenharmony_cidwc2-y := core.o core_intr.o platform.o drd.o 78c2ecf20Sopenharmony_cidwc2-y += params.o 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC2_HOST) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 108c2ecf20Sopenharmony_ci dwc2-y += hcd.o hcd_intr.o 118c2ecf20Sopenharmony_ci dwc2-y += hcd_queue.o hcd_ddma.o 128c2ecf20Sopenharmony_ciendif 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC2_PERIPHERAL) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 158c2ecf20Sopenharmony_ci dwc2-y += gadget.o 168c2ecf20Sopenharmony_ciendif 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciifneq ($(CONFIG_DEBUG_FS),) 198c2ecf20Sopenharmony_ci dwc2-y += debugfs.o 208c2ecf20Sopenharmony_ciendif 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci# NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to 238c2ecf20Sopenharmony_ci# this location and renamed gadget.c. When building for dynamically linked 248c2ecf20Sopenharmony_ci# modules, dwc2.ko will get built for host mode, peripheral mode, and dual-role 258c2ecf20Sopenharmony_ci# mode. The PCI bus interface module will called dwc2_pci.ko and the platform 268c2ecf20Sopenharmony_ci# interface module will be called dwc2_platform.ko. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC2_PCI) += dwc2_pci.o 298c2ecf20Sopenharmony_cidwc2_pci-y := pci.o 30