^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) config USB_ROLE_SWITCH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) tristate "USB Role Switch Support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) USB Role Switch is a device that can select the USB role - host or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) device - for a USB port (connector). In most cases dual-role capable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) USB controller will also represent the switch, but on some platforms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) multiplexer/demultiplexer switch is used to route the data lines on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) the USB connector between separate USB host and device controllers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Say Y here if your USB connectors support both device and host roles.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) To compile the driver as module, choose M here: the module will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) called roles.ko.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) if USB_ROLE_SWITCH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) config USB_ROLES_INTEL_XHCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) tristate "Intel XHCI USB Role Switch"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) depends on ACPI && X86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Driver for the internal USB role switch for switching the USB data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) lines between the xHCI host controller and the dwc3 gadget controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) found on various Intel SoCs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) To compile the driver as a module, choose M here: the module will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) be called intel-xhci-usb-role-switch.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) endif # USB_ROLE_SWITCH