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

# SPDX-License-Identifier: GPL-2.0

config CONFIG_USB_ROLE_SWITCH
	tristate "USB Role Switch Support"
	help
	  CONFIG_USB Role Switch is a device that can select the CONFIG_USB role - host or
	  device - for a CONFIG_USB port (connector). In most cases dual-role capable
	  CONFIG_USB controller will also represent the switch, but on some platforms
	  multiplexer/demultiplexer switch is used to route the data lines on
	  the CONFIG_USB connector between separate CONFIG_USB host and device controllers.

	  Say Y here if your CONFIG_USB connectors support both device and host roles.
	  To compile the driver as module, choose CONFIG_M here: the module will be
	  called roles.ko.

if CONFIG_USB_ROLE_SWITCH

config CONFIG_USB_ROLES_INTEL_XHCI
	tristate "Intel XHCI USB Role Switch"
	depends on CONFIG_ACPI && CONFIG_X86
	help
	  Driver for the internal CONFIG_USB role switch for switching the CONFIG_USB data
	  lines between the xHCI host controller and the dwc3 gadget controller
	  found on various Intel SoCs.

	  To compile the driver as a module, choose CONFIG_M here: the module will
	  be called intel-xhci-usb-role-switch.

endif # CONFIG_USB_ROLE_SWITCH