我是靠谱客的博主 暴躁苗条,这篇文章主要介绍linux usb role switch,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部