mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
fde0aa6c17
USB role switch is a device that can be used to choose the data role for USB connector. With dual-role capable USB controllers, the controller itself will be the switch, but on some platforms the USB host and device controllers are separate IPs and there is a mux between them and the connector. On those platforms the mux driver will need to register the switch. With USB Type-C connectors, the host-to-device relationship is negotiated over the Configuration Channel (CC). That means the USB Type-C drivers need to be in control of the role switch. The class provides a simple API for the USB Type-C drivers for the control. For other types of USB connectors (mainly microAB) the class provides user space control via sysfs attribute file that can be used to request role swapping from the switch. Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 lines
314 B
Makefile
13 lines
314 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the usb common parts.
|
|
#
|
|
|
|
obj-$(CONFIG_USB_COMMON) += usb-common.o
|
|
usb-common-y += common.o
|
|
usb-common-$(CONFIG_USB_LED_TRIG) += led.o
|
|
|
|
obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
|
|
obj-$(CONFIG_USB_ULPI_BUS) += ulpi.o
|
|
obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
|