小弟最近在uboot 里面调试usb host的功能,内核里面的USB已经能够运行
,经过一直纠结,UBOOT到了这么个情况!
usb start
scanning bus for devices... USB hub found
ERROR: CTL:TIMEOUT
USB device not responding, giving up (status=20)
hub: disabling port 1
2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
然后在网上查了下,status=20是连接超时的表现,也有说是hostcontrol没有
正确运行的情况,想问各位大大,能否说下想使用usb host功能的配置呢?或者
涉及到那些寄存器
我把自己的配置先贴上
USB_PHY_CONTROL 0xE010E80C
S5P_OTG_PHYPWR 0xEC100000
S5P_OTG_PHYCLK 0xEC100004
S5P_OTG_RSTCON 0xEC100008
writel(readl(USB_PHY_CONTROL) | (1<<1),
USB_PHY_CONTROL); /*USB PHY1 Enable */
writel((readl(S5P_OTG_PHYPWR) & ~(0x1<<7) & ~(0x1<<6)),
S5P_OTG_PHYPWR);
writel((readl(S5P_OTG_PHYCLK) & ~(0x1<<7)) | (0x3<<0),
S5P_OTG_PHYCLK);
writel(readl(S5P_OTG_RSTCON) | (0x1<<4) | (0x1<<3),
S5P_OTG_RSTCON);
udelay(10);
writel(readl(S5P_OTG_RSTCON) & ~(0x1<<4) & ~(0x1<<3),
S5P_OTG_RSTCON);
udelay(10);
这个配置是照抄内核里面的,不知道是否还需要配置其他寄存器?在线等
[ 此帖被saozi在2012-07-21 10:28重新编辑 ]