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