blob: 2ae98b3747a8e441ba9e75e7be3374b2726c72b9 [file] [log] [blame] [edit]
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for USB Host Controller Drivers
#
# tell define_trace.h where to find the xhci trace header
ccflags-y += -I$(srctree)/drivers/usb/host
ifneq ($(CONFIG_DEVICE_MODULES_USB_XHCI_MTK), )
ifneq ($(CONFIG_MTK_USB_OFFLOAD), )
ccflags-y += -I$(DEVICE_MODULES_PATH)/drivers/misc/mediatek/usb/usb_offload
endif
xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o
ifneq ($(CONFIG_DEBUG_FS),)
xhci-mtk-hcd-y += xhci-mtk-dbg.o
endif
endif
obj-$(CONFIG_DEVICE_MODULES_USB_XHCI_MTK) += xhci-mtk-hcd.o