OSDN Git Service

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