1df2069acSChunfeng Yun# For MTK USB3.0 IP 2df2069acSChunfeng Yun 3df2069acSChunfeng Yunconfig USB_MTU3 4df2069acSChunfeng Yun tristate "MediaTek USB3 Dual Role controller" 5df2069acSChunfeng Yun depends on (USB || USB_GADGET) && HAS_DMA 6df2069acSChunfeng Yun depends on ARCH_MEDIATEK || COMPILE_TEST 7b3f4e727SChunfeng Yun select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD 8df2069acSChunfeng Yun help 9df2069acSChunfeng Yun Say Y or M here if your system runs on MediaTek SoCs with 10df2069acSChunfeng Yun Dual Role SuperSpeed USB controller. You can select usb 11df2069acSChunfeng Yun mode as peripheral role or host role, or both. 12df2069acSChunfeng Yun 13df2069acSChunfeng Yun If you don't know what this is, please say N. 14df2069acSChunfeng Yun 15df2069acSChunfeng Yun Choose M here to compile this driver as a module, and it 16df2069acSChunfeng Yun will be called mtu3.ko. 17df2069acSChunfeng Yun 18df2069acSChunfeng Yun 19df2069acSChunfeng Yunif USB_MTU3 20df2069acSChunfeng Yunchoice 21df2069acSChunfeng Yun bool "MTU3 Mode Selection" 22b3f4e727SChunfeng Yun default USB_MTU3_HOST if (USB && !USB_GADGET) 23df2069acSChunfeng Yun default USB_MTU3_GADGET if (!USB && USB_GADGET) 24df2069acSChunfeng Yun 25b3f4e727SChunfeng Yunconfig USB_MTU3_HOST 26b3f4e727SChunfeng Yun bool "Host only mode" 27b3f4e727SChunfeng Yun depends on USB=y || USB=USB_MTU3 28b3f4e727SChunfeng Yun help 29b3f4e727SChunfeng Yun Select this when you want to use MTU3 in host mode only, 30b3f4e727SChunfeng Yun thereby the gadget feature will be regressed. 31b3f4e727SChunfeng Yun 32df2069acSChunfeng Yunconfig USB_MTU3_GADGET 33df2069acSChunfeng Yun bool "Gadget only mode" 34df2069acSChunfeng Yun depends on USB_GADGET=y || USB_GADGET=USB_MTU3 35df2069acSChunfeng Yun help 36df2069acSChunfeng Yun Select this when you want to use MTU3 in gadget mode only, 37df2069acSChunfeng Yun thereby the host feature will be regressed. 38df2069acSChunfeng Yun 39df2069acSChunfeng Yunendchoice 40df2069acSChunfeng Yun 41df2069acSChunfeng Yunendif 42