USB Role Switch Support
modulename: roles.ko
configname: CONFIG_USB_ROLE_SWITCH
Linux Kernel Configuration
└─>Device Drivers
└─>USB support
└─>USB Role Switch Support
In linux kernel since version 3.10 (release Date: 2013-06-30)
USB Role Switch is a device that can select the USB role - host or
device - for a USB port (connector). In most cases dual-role capable
USB controller will also represent the switch, but on some platforms
multiplexer/demultiplexer switch is used to route the data lines on
the USB connector between separate USB host and device controllers.
Say Y here if your USB connectors support both device and host roles.
To compile the driver as module, choose M here: the module will be
called roles.ko.
device - for a USB port (connector). In most cases dual-role capable
USB controller will also represent the switch, but on some platforms
multiplexer/demultiplexer switch is used to route the data lines on
the USB connector between separate USB host and device controllers.
Say Y here if your USB connectors support both device and host roles.
To compile the driver as module, choose M here: the module will be
called roles.ko.
source code:
is depended by
CONFIG_USB_CONN_GPIOCONFIG_USB_CDNS_SUPPORT
CONFIG_USB_MTU3_DUAL_ROLE
CONFIG_USB_MUSB_JZ4740
CONFIG_USB_MUSB_MEDIATEK
CONFIG_USB_DWC3
CONFIG_USB_DWC3_MESON_G12A
CONFIG_USB_DWC3_RTK
CONFIG_USB_DWC2
CONFIG_USB_CHIPIDEA
CONFIG_USB_QCOM_EUD
CONFIG_USB_RENESAS_USB3
CONFIG_TYPEC_TCPM
CONFIG_TYPEC_TPS6598X
CONFIG_TYPEC_MUX_INTEL_PMC
CONFIG_EXTCON_AXP288
CONFIG_EXTCON_INTEL_CHT_WC