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