developer | 13dc3c8 | 2020-10-16 11:38:39 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # For MTK USB3.0 IP |
| 4 | |
| 5 | config USB_MTU3 |
| 6 | bool "MediaTek USB3 Dual Role controller" |
Tom Rini | 5b9e616 | 2021-07-09 10:11:56 -0400 | [diff] [blame] | 7 | depends on USB_XHCI_HCD || USB_GADGET |
developer | 13dc3c8 | 2020-10-16 11:38:39 +0800 | [diff] [blame] | 8 | depends on ARCH_MEDIATEK |
| 9 | help |
| 10 | Say Y 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. |
| 13 | |
| 14 | If you don't know what this is, please say N. |
| 15 | |
| 16 | if USB_MTU3 |
| 17 | choice |
| 18 | bool "MTU3 Mode Selection" |
| 19 | default USB_MTU3_GADGET if USB_GADGET |
| 20 | default USB_MTU3_HOST if (USB_HOST && !USB_GADGET) |
| 21 | |
| 22 | config USB_MTU3_HOST |
| 23 | bool "Host only mode" |
| 24 | depends on USB_XHCI_HCD |
| 25 | help |
| 26 | Select this when you want to use MTU3 in host mode only, |
| 27 | thereby the gadget feature will be regressed. |
| 28 | |
| 29 | config USB_MTU3_GADGET |
| 30 | bool "Gadget only mode" |
| 31 | depends on USB_GADGET |
| 32 | select USB_GADGET_DUALSPEED |
| 33 | help |
| 34 | Select this when you want to use MTU3 in gadget mode only, |
| 35 | thereby the host feature will be regressed. |
| 36 | |
| 37 | endchoice |
| 38 | |
| 39 | config USB_MTU3_DEBUG |
| 40 | bool "Enable Debugging Messages" |
| 41 | help |
| 42 | Say Y here to enable debugging messages in the MTU3 Driver. |
| 43 | |
| 44 | endif |