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