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