Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# For MTK USB3.0 IP

config CONFIG_USB_MTU3
	tristate "MediaTek USB3 Dual Role controller"
	depends on CONFIG_EXTCON && (CONFIG_USB || CONFIG_USB_GADGET) && CONFIG_HAS_DMA
	depends on CONFIG_ARCH_MEDIATEK || CONFIG_COMPILE_TEST
	select CONFIG_USB_XHCI_MTK if CONFIG_USB_SUPPORT && CONFIG_USB_XHCI_HCD
	help
	  Say Y or CONFIG_M here if your system runs on MediaTek SoCs with
	  Dual Role SuperSpeed CONFIG_USB controller. You can select usb
	  mode as peripheral role or host role, or both.

	  If you don't know what this is, please say N.

	  Choose CONFIG_M here to compile this driver as a module, and it
	  will be called mtu3.ko.


if CONFIG_USB_MTU3
choice
	bool "MTU3 Mode Selection"
	default CONFIG_USB_MTU3_DUAL_ROLE if (CONFIG_USB && CONFIG_USB_GADGET)
	default CONFIG_USB_MTU3_HOST if (CONFIG_USB && !CONFIG_USB_GADGET)
	default CONFIG_USB_MTU3_GADGET if (!CONFIG_USB && CONFIG_USB_GADGET)

config CONFIG_USB_MTU3_HOST
	bool "Host only mode"
	depends on CONFIG_USB=y || CONFIG_USB=CONFIG_USB_MTU3
	help
	  Select this when you want to use MTU3 in host mode only,
	  thereby the gadget feature will be regressed.

config CONFIG_USB_MTU3_GADGET
	bool "Gadget only mode"
	depends on CONFIG_USB_GADGET=y || CONFIG_USB_GADGET=CONFIG_USB_MTU3
	help
	  Select this when you want to use MTU3 in gadget mode only,
	  thereby the host feature will be regressed.

config CONFIG_USB_MTU3_DUAL_ROLE
	bool "Dual Role mode"
	depends on ((CONFIG_USB=y || CONFIG_USB=CONFIG_USB_MTU3) && (CONFIG_USB_GADGET=y || CONFIG_USB_GADGET=CONFIG_USB_MTU3))
	help
	  This is the default mode of working of MTU3 controller where
	  both host and gadget features are enabled.

endchoice

config CONFIG_USB_MTU3_DEBUG
	bool "Enable Debugging Messages"
	help
	  Say Y here to enable debugging messages in the MTU3 Driver.

endif