]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/usb/mtu3/Kconfig
usb: Add MediaTek USB3 DRD driver
[mirror_ubuntu-jammy-kernel.git] / drivers / usb / mtu3 / Kconfig
1 # For MTK USB3.0 IP
2
3 config USB_MTU3
4 tristate "MediaTek USB3 Dual Role controller"
5 depends on (USB || USB_GADGET) && HAS_DMA
6 depends on ARCH_MEDIATEK || COMPILE_TEST
7 help
8 Say Y or M here if your system runs on MediaTek SoCs with
9 Dual Role SuperSpeed USB controller. You can select usb
10 mode as peripheral role or host role, or both.
11
12 If you don't know what this is, please say N.
13
14 Choose M here to compile this driver as a module, and it
15 will be called mtu3.ko.
16
17
18 if USB_MTU3
19 choice
20 bool "MTU3 Mode Selection"
21 default USB_MTU3_GADGET if (!USB && USB_GADGET)
22
23 config USB_MTU3_GADGET
24 bool "Gadget only mode"
25 depends on USB_GADGET=y || USB_GADGET=USB_MTU3
26 help
27 Select this when you want to use MTU3 in gadget mode only,
28 thereby the host feature will be regressed.
29
30 endchoice
31
32 endif