Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
f5c30c1b
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,发现更多精彩内容 >>
提交
f5c30c1b
编写于
9月 16, 2014
作者:
S
Stefan Herbrechtsmeier
提交者:
Tom Rini
10月 23, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
omap3: overo: Add usb host support
Signed-off-by:
N
Stefan Herbrechtsmeier
<
stefan@herbrechtsmeier.net
>
上级
4ed914a2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
42 addition
and
0 deletion
+42
-0
board/overo/overo.c
board/overo/overo.c
+34
-0
include/configs/omap3_overo.h
include/configs/omap3_overo.h
+8
-0
未找到文件。
board/overo/overo.c
浏览文件 @
f5c30c1b
...
...
@@ -25,6 +25,11 @@
#include <asm/mach-types.h>
#include "overo.h"
#ifdef CONFIG_USB_EHCI
#include <usb.h>
#include <asm/ehci-omap.h>
#endif
DECLARE_GLOBAL_DATA_PTR
;
#define TWL4030_I2C_BUS 0
...
...
@@ -474,3 +479,32 @@ int board_mmc_init(bd_t *bis)
return
omap_mmc_init
(
0
,
0
,
0
,
-
1
,
-
1
);
}
#endif
#if defined(CONFIG_USB_EHCI) && !defined(CONFIG_SPL_BUILD)
static
struct
omap_usbhs_board_data
usbhs_bdata
=
{
.
port_mode
[
0
]
=
OMAP_USBHS_PORT_MODE_UNUSED
,
.
port_mode
[
1
]
=
OMAP_EHCI_PORT_MODE_PHY
,
.
port_mode
[
2
]
=
OMAP_USBHS_PORT_MODE_UNUSED
};
#define GUMSTIX_GPIO_USBH_CPEN 168
int
ehci_hcd_init
(
int
index
,
enum
usb_init_type
init
,
struct
ehci_hccr
**
hccr
,
struct
ehci_hcor
**
hcor
)
{
/* Enable USB power */
if
(
!
gpio_request
(
GUMSTIX_GPIO_USBH_CPEN
,
"usbh_cpen"
))
gpio_direction_output
(
GUMSTIX_GPIO_USBH_CPEN
,
1
);
return
omap_ehci_hcd_init
(
index
,
&
usbhs_bdata
,
hccr
,
hcor
);
}
int
ehci_hcd_stop
(
void
)
{
/* Disable USB power */
gpio_set_value
(
GUMSTIX_GPIO_USBH_CPEN
,
0
);
gpio_free
(
GUMSTIX_GPIO_USBH_CPEN
);
return
omap_ehci_hcd_stop
();
}
#endif
/* CONFIG_USB_EHCI */
include/configs/omap3_overo.h
浏览文件 @
f5c30c1b
...
...
@@ -35,6 +35,13 @@
/* TWL4030 LED */
#define CONFIG_TWL4030_LED
/* USB EHCI */
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_OMAP
#define CONFIG_USB_STORAGE
#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 183
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
/* Initialize GPIOs by default */
#define CONFIG_OMAP3_GPIO_2
/* GPIO32..63 is in GPIO Bank 2 */
#define CONFIG_OMAP3_GPIO_3
/* GPIO64..95 is in GPIO Bank 3 */
...
...
@@ -44,6 +51,7 @@
/* commands to include */
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_USB
#undef CONFIG_CMD_FPGA
/* FPGA configuration Support */
#undef CONFIG_CMD_IMI
/* iminfo */
#undef CONFIG_CMD_NFS
/* NFS support */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录