usb otg驱动(linux 环境)

swolf_qu 2010-07-12 09:35:35
我用的cpu是s3c6410,里面里面有otg控制器。我现在面临的问题是:当单独(现在代码还不能同时即做host又做device)让otg做device的时候,能用。但是单独编译成做host的时候,插U盘(U盘和转接线都是好的)没反应,内核不能发现port change。先不考虑HNP,请各位不吝赐教。
...全文
826 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzwy 2011-01-11
  • 打赏
  • 举报
回复
oci_init_mode OTG_DEVICE_MODE...

OTG_ID管脚接地试试
swolf_qu 2010-07-15
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 iguest 的回复:]

有log没?
[/Quote]你指的是什么log?启动时候的log?
usb_add_hcd start................................................
irqnum:90
--------------------print hcd->product_desc----------------
s3c_otghcd s3c_otghcd: S3C OTGHCD
--------------------end print hcd->product_desc----------------
s3c_otghcd s3c_otghcd: new USB bus registered, assigned bus number 2
s3c_otghcd s3c_otghcd: irq 90, io mem 0x7c000000
----------s3c6410_otghcd_start-----------
oci_init_mode
oci_init_mode OTG_DEVICE_MODE...
drivers/usb/host/s3c-otg/s3c-otg-oci.c oci_dev_init excute...
gintsts:0x4000020
----------s3c6410_otghcd_start---finish--------
register_root_hub
usb usb2: configuration #1 chosen from 1 choice
hub_events
hub_port_connect_change
port 2, status 0100, change 0001, 12 Mb/s
hub 2-0:1.0: USB hub found
hub_configure
hub 2-0:1.0: 1 port detected
usb_fill_int_urb
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: S3C OTGHCD
usb usb2: Manufacturer: Linux 2.6.27 EMSP_OTGHCD
usb usb2: SerialNumber: s3c_otghcd
call usb_hcd_poll_rh_status...
usb_add_hcd end................................................
-----------------------s3c_otg_drv_probe end---------------------------
s3c6410_otg_module_init end...
iguest 2010-07-14
  • 打赏
  • 举报
回复
有log没?
karlzheng 2010-07-13
  • 打赏
  • 举报
回复
专业的问题只能问专业的人:
http://blog.csdn.net/fudan_abc/category/313423.aspx
别人答不了...

4,441

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧