Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 1 | # For MTK USB3.0 IP |
| 2 | |
| 3 | config USB_MTU3 |
| 4 | tristate "MediaTek USB3 Dual Role controller" |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 5 | depends on EXTCON && (USB || USB_GADGET) && HAS_DMA |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 6 | depends on ARCH_MEDIATEK || COMPILE_TEST |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 7 | select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 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 | |
| 19 | if USB_MTU3 |
| 20 | choice |
| 21 | bool "MTU3 Mode Selection" |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 22 | default USB_MTU3_DUAL_ROLE if (USB && USB_GADGET) |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 23 | default USB_MTU3_HOST if (USB && !USB_GADGET) |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 24 | default USB_MTU3_GADGET if (!USB && USB_GADGET) |
| 25 | |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 26 | config USB_MTU3_HOST |
| 27 | bool "Host only mode" |
| 28 | depends on USB=y || USB=USB_MTU3 |
| 29 | help |
| 30 | Select this when you want to use MTU3 in host mode only, |
| 31 | thereby the gadget feature will be regressed. |
| 32 | |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 33 | config USB_MTU3_GADGET |
| 34 | bool "Gadget only mode" |
| 35 | depends on USB_GADGET=y || USB_GADGET=USB_MTU3 |
| 36 | help |
| 37 | Select this when you want to use MTU3 in gadget mode only, |
| 38 | thereby the host feature will be regressed. |
| 39 | |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 40 | config USB_MTU3_DUAL_ROLE |
| 41 | bool "Dual Role mode" |
| 42 | depends on ((USB=y || USB=USB_MTU3) && (USB_GADGET=y || USB_GADGET=USB_MTU3)) |
| 43 | help |
| 44 | This is the default mode of working of MTU3 controller where |
| 45 | both host and gadget features are enabled. |
| 46 | |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 47 | endchoice |
| 48 | |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 49 | config USB_MTU3_DEBUG |
| 50 | bool "Enable Debugging Messages" |
| 51 | help |
| 52 | Say Y here to enable debugging messages in the MTU3 Driver. |
| 53 | |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 54 | endif |