1cae8dc3bSGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2cae8dc3bSGreg Kroah-Hartman# 3df2069acSChunfeng Yun# For MTK USB3.0 IP 4df2069acSChunfeng Yun 5df2069acSChunfeng Yunconfig USB_MTU3 6df2069acSChunfeng Yun tristate "MediaTek USB3 Dual Role controller" 7109e37a6SGreg Kroah-Hartman depends on USB || USB_GADGET 8df2069acSChunfeng Yun depends on ARCH_MEDIATEK || COMPILE_TEST 9b3f4e727SChunfeng Yun select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD 10df2069acSChunfeng Yun help 11df2069acSChunfeng Yun Say Y or M here if your system runs on MediaTek SoCs with 12df2069acSChunfeng Yun Dual Role SuperSpeed USB controller. You can select usb 13df2069acSChunfeng Yun mode as peripheral role or host role, or both. 14df2069acSChunfeng Yun 15df2069acSChunfeng Yun If you don't know what this is, please say N. 16df2069acSChunfeng Yun 17df2069acSChunfeng Yun Choose M here to compile this driver as a module, and it 18df2069acSChunfeng Yun will be called mtu3.ko. 19df2069acSChunfeng Yun 20df2069acSChunfeng Yun 21df2069acSChunfeng Yunif USB_MTU3 22df2069acSChunfeng Yunchoice 23df2069acSChunfeng Yun bool "MTU3 Mode Selection" 24d0ed062aSChunfeng Yun default USB_MTU3_DUAL_ROLE if (USB && USB_GADGET) 25b3f4e727SChunfeng Yun default USB_MTU3_HOST if (USB && !USB_GADGET) 26df2069acSChunfeng Yun default USB_MTU3_GADGET if (!USB && USB_GADGET) 27df2069acSChunfeng Yun 28b3f4e727SChunfeng Yunconfig USB_MTU3_HOST 29b3f4e727SChunfeng Yun bool "Host only mode" 30b3f4e727SChunfeng Yun depends on USB=y || USB=USB_MTU3 31b3f4e727SChunfeng Yun help 32b3f4e727SChunfeng Yun Select this when you want to use MTU3 in host mode only, 33b3f4e727SChunfeng Yun thereby the gadget feature will be regressed. 34b3f4e727SChunfeng Yun 35df2069acSChunfeng Yunconfig USB_MTU3_GADGET 36df2069acSChunfeng Yun bool "Gadget only mode" 37df2069acSChunfeng Yun depends on USB_GADGET=y || USB_GADGET=USB_MTU3 38df2069acSChunfeng Yun help 39df2069acSChunfeng Yun Select this when you want to use MTU3 in gadget mode only, 40df2069acSChunfeng Yun thereby the host feature will be regressed. 41df2069acSChunfeng Yun 42d0ed062aSChunfeng Yunconfig USB_MTU3_DUAL_ROLE 43d0ed062aSChunfeng Yun bool "Dual Role mode" 44d0ed062aSChunfeng Yun depends on ((USB=y || USB=USB_MTU3) && (USB_GADGET=y || USB_GADGET=USB_MTU3)) 45f3984682SChunfeng Yun depends on (EXTCON=y || EXTCON=USB_MTU3) 46d0ed062aSChunfeng Yun help 47d0ed062aSChunfeng Yun This is the default mode of working of MTU3 controller where 48d0ed062aSChunfeng Yun both host and gadget features are enabled. 49d0ed062aSChunfeng Yun 50df2069acSChunfeng Yunendchoice 51df2069acSChunfeng Yun 52d0ed062aSChunfeng Yunconfig USB_MTU3_DEBUG 53d0ed062aSChunfeng Yun bool "Enable Debugging Messages" 54d0ed062aSChunfeng Yun help 55d0ed062aSChunfeng Yun Say Y here to enable debugging messages in the MTU3 Driver. 56d0ed062aSChunfeng Yun 57df2069acSChunfeng Yunendif 58