Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
fc90c06c
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fc90c06c
编写于
11月 26, 2010
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.denx.de/u-boot-usb
上级
41bb7531
a42a9d71
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
5 addition
and
2 deletion
+5
-2
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+5
-1
drivers/usb/host/ehci-ppc4xx.c
drivers/usb/host/ehci-ppc4xx.c
+0
-1
未找到文件。
drivers/usb/host/ehci-hcd.c
浏览文件 @
fc90c06c
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include <usb.h>
#include <usb.h>
#include <asm/io.h>
#include <asm/io.h>
#include <malloc.h>
#include <malloc.h>
#include <watchdog.h>
#include "ehci.h"
#include "ehci.h"
...
@@ -229,7 +230,7 @@ static int ehci_reset(void)
...
@@ -229,7 +230,7 @@ static int ehci_reset(void)
int
ret
=
0
;
int
ret
=
0
;
cmd
=
ehci_readl
(
&
hcor
->
or_usbcmd
);
cmd
=
ehci_readl
(
&
hcor
->
or_usbcmd
);
cmd
|=
CMD_RESET
;
cmd
=
(
cmd
&
~
CMD_RUN
)
|
CMD_RESET
;
ehci_writel
(
&
hcor
->
or_usbcmd
,
cmd
);
ehci_writel
(
&
hcor
->
or_usbcmd
,
cmd
);
ret
=
handshake
((
uint32_t
*
)
&
hcor
->
or_usbcmd
,
CMD_RESET
,
0
,
250
*
1000
);
ret
=
handshake
((
uint32_t
*
)
&
hcor
->
or_usbcmd
,
CMD_RESET
,
0
,
250
*
1000
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
...
@@ -452,6 +453,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
...
@@ -452,6 +453,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
token
=
hc32_to_cpu
(
vtd
->
qt_token
);
token
=
hc32_to_cpu
(
vtd
->
qt_token
);
if
(
!
(
token
&
0x80
))
if
(
!
(
token
&
0x80
))
break
;
break
;
WATCHDOG_RESET
();
}
while
(
get_timer
(
ts
)
<
CONFIG_SYS_HZ
);
}
while
(
get_timer
(
ts
)
<
CONFIG_SYS_HZ
);
/* Disable async schedule. */
/* Disable async schedule. */
...
@@ -491,6 +493,8 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
...
@@ -491,6 +493,8 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
break
;
break
;
default:
default:
dev
->
status
=
USB_ST_CRC_ERR
;
dev
->
status
=
USB_ST_CRC_ERR
;
if
((
token
&
0x40
)
==
0x40
)
dev
->
status
|=
USB_ST_STALLED
;
break
;
break
;
}
}
dev
->
act_len
=
length
-
((
token
>>
16
)
&
0x7fff
);
dev
->
act_len
=
length
-
((
token
>>
16
)
&
0x7fff
);
...
...
drivers/usb/host/ehci-ppc4xx.c
浏览文件 @
fc90c06c
...
@@ -34,7 +34,6 @@ int ehci_hcd_init(void)
...
@@ -34,7 +34,6 @@ int ehci_hcd_init(void)
hccr
=
(
struct
ehci_hccr
*
)(
CONFIG_SYS_PPC4XX_USB_ADDR
);
hccr
=
(
struct
ehci_hccr
*
)(
CONFIG_SYS_PPC4XX_USB_ADDR
);
hcor
=
(
struct
ehci_hcor
*
)((
uint32_t
)
hccr
+
hcor
=
(
struct
ehci_hcor
*
)((
uint32_t
)
hccr
+
HC_LENGTH
(
ehci_readl
(
&
hccr
->
cr_capbase
)));
HC_LENGTH
(
ehci_readl
(
&
hccr
->
cr_capbase
)));
usb_dev_init
();
return
0
;
return
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录