we can switch usb role in user space by this module.
cdsn3 has used usb role switch module.
1. kernel config
Device Drivers --->
[*] USB support --->
-*- USB Role Switch Support
CONFIG_USB_ROLE_SWITCH:
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.
2. code
drivers/usb/roles/
class.c intel-xhci-usb-role-switch.c Kconfig Makefile
3. user space(sysfs)
switch usb role mode, base on cdns3 usb.
first, we need to confi
最后
以上就是暴躁苗条最近收集整理的关于linux usb role switch的全部内容,更多相关linux内容请搜索靠谱客的其他文章。
发表评论 取消回复