1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2197ba5f4SPaul Zimmermanccflags-$(CONFIG_USB_DWC2_DEBUG) += -DDEBUG 3197ba5f4SPaul Zimmermanccflags-$(CONFIG_USB_DWC2_VERBOSE) += -DVERBOSE_DEBUG 4197ba5f4SPaul Zimmerman 55ee80705SDinh Nguyenobj-$(CONFIG_USB_DWC2) += dwc2.o 617f93402SAmelie Delaunaydwc2-y := core.o core_intr.o platform.o drd.o 7323230efSJohn Youndwc2-y += params.o 85ee80705SDinh Nguyen 95ee80705SDinh Nguyenifneq ($(filter y,$(CONFIG_USB_DWC2_HOST) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 10197ba5f4SPaul Zimmerman dwc2-y += hcd.o hcd_intr.o 11197ba5f4SPaul Zimmerman dwc2-y += hcd_queue.o hcd_ddma.o 125ee80705SDinh Nguyenendif 135ee80705SDinh Nguyen 145ee80705SDinh Nguyenifneq ($(filter y,$(CONFIG_USB_DWC2_PERIPHERAL) $(CONFIG_USB_DWC2_DUAL_ROLE)),) 155ee80705SDinh Nguyen dwc2-y += gadget.o 165ee80705SDinh Nguyenendif 17197ba5f4SPaul Zimmerman 18f91eea44SMian Yousaf Kaukabifneq ($(CONFIG_DEBUG_FS),) 19f91eea44SMian Yousaf Kaukab dwc2-y += debugfs.o 20f91eea44SMian Yousaf Kaukabendif 21f91eea44SMian Yousaf Kaukab 2247a1685fSDinh Nguyen# NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to 2347a1685fSDinh Nguyen# this location and renamed gadget.c. When building for dynamically linked 245ee80705SDinh Nguyen# modules, dwc2.ko will get built for host mode, peripheral mode, and dual-role 255ee80705SDinh Nguyen# mode. The PCI bus interface module will called dwc2_pci.ko and the platform 265ee80705SDinh Nguyen# interface module will be called dwc2_platform.ko. 27197ba5f4SPaul Zimmerman 28b48cb02dSJohn Younobj-$(CONFIG_USB_DWC2_PCI) += dwc2_pci.o 2947a1685fSDinh Nguyendwc2_pci-y := pci.o 30