summaryrefslogtreecommitdiffstats
path: root/drivers/usb/mtu3/Makefile
diff options
context:
space:
mode:
authorChunfeng Yun2016-10-19 04:28:25 +0200
committerGreg Kroah-Hartman2016-10-27 17:02:41 +0200
commitb3f4e727c1ecec36e628e89298349d9c51a32aac (patch)
treeda0c650a5d8d0de961c517a53c1b561f0dab77b8 /drivers/usb/mtu3/Makefile
parentusb: mtu3: Super-Speed Peripheral mode support (diff)
downloadkernel-qcow2-linux-b3f4e727c1ecec36e628e89298349d9c51a32aac.tar.gz
kernel-qcow2-linux-b3f4e727c1ecec36e628e89298349d9c51a32aac.tar.xz
kernel-qcow2-linux-b3f4e727c1ecec36e628e89298349d9c51a32aac.zip
usb: mtu3: host only mode support
supports host only mode and the code is ported from host/xhci-mtk.c IPPC register shared between host and device is moved into common glue layer. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/Makefile')
-rw-r--r--drivers/usb/mtu3/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/usb/mtu3/Makefile b/drivers/usb/mtu3/Makefile
index 532c2570c58b..41e45e99ee6b 100644
--- a/drivers/usb/mtu3/Makefile
+++ b/drivers/usb/mtu3/Makefile
@@ -1,2 +1,11 @@
obj-$(CONFIG_USB_MTU3) += mtu3.o
-mtu3-y := mtu3_plat.o mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
+
+mtu3-y := mtu3_plat.o
+
+ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST)),)
+ mtu3-y += mtu3_host.o
+endif
+
+ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET)),)
+ mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
+endif