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