Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
bdda519d
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,发现更多精彩内容 >>
提交
bdda519d
编写于
3月 12, 2004
作者:
W
wdenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleanup.
上级
232c150a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
9 deletion
+11
-9
drivers/usbdcore_omap1510.c
drivers/usbdcore_omap1510.c
+11
-9
未找到文件。
drivers/usbdcore_omap1510.c
浏览文件 @
bdda519d
...
@@ -31,7 +31,9 @@
...
@@ -31,7 +31,9 @@
#if defined(CONFIG_OMAP1510) && defined(CONFIG_USB_DEVICE)
#if defined(CONFIG_OMAP1510) && defined(CONFIG_USB_DEVICE)
#include <asm/io.h>
#include <asm/io.h>
#ifdef CONFIG_OMAP_SX1
#include <i2c.h>
#include <i2c.h>
#endif
#include "usbdcore.h"
#include "usbdcore.h"
#include "usbdcore_omap1510.h"
#include "usbdcore_omap1510.h"
...
@@ -1084,7 +1086,7 @@ void udc_endpoint_write (struct usb_endpoint_instance *endpoint)
...
@@ -1084,7 +1086,7 @@ void udc_endpoint_write (struct usb_endpoint_instance *endpoint)
int
udc_init
(
void
)
int
udc_init
(
void
)
{
{
u16
udc_rev
;
u16
udc_rev
;
uchar
wert
;
uchar
value
;
udc_device
=
NULL
;
udc_device
=
NULL
;
...
@@ -1117,15 +1119,15 @@ int udc_init (void)
...
@@ -1117,15 +1119,15 @@ int udc_init (void)
printf
(
"USB: TI OMAP1510 USB function module rev %d.%d
\n
"
,
printf
(
"USB: TI OMAP1510 USB function module rev %d.%d
\n
"
,
udc_rev
>>
4
,
udc_rev
&
0xf
);
udc_rev
>>
4
,
udc_rev
&
0xf
);
/* Configure some Sofia Unit registers
#ifdef CONFIG_OMAP_SX1
*/
i2c_read
(
0x32
,
0x04
,
1
,
&
value
,
1
);
i2c_read
(
0x32
,
0x04
,
1
,
&
wert
,
1
);
/* SOF_Control_CONT */
value
|=
0x04
;
wert
|=
0x04
;
/* SOF_ContCONT_dis_usb_det */
i2c_write
(
0x32
,
0x04
,
1
,
&
value
,
1
);
i2c_write
(
0x32
,
0x04
,
1
,
&
wert
,
1
);
i2c_read
(
0x32
,
0x03
,
1
,
&
wert
,
1
);
/* SOF_Control */
i2c_read
(
0x32
,
0x03
,
1
,
&
value
,
1
);
wert
|=
0x01
;
/* SOF_Cont_usb_en */
value
|=
0x01
;
i2c_write
(
0x32
,
0x03
,
1
,
&
wert
,
1
);
i2c_write
(
0x32
,
0x03
,
1
,
&
value
,
1
);
#endif
/* The VBUS_MODE bit selects whether VBUS detection is done via
/* The VBUS_MODE bit selects whether VBUS detection is done via
* software (1) or hardware (0). When software detection is
* software (1) or hardware (0). When software detection is
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录