概述
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 usb role switch所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复