Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
fee626c4
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,发现更多精彩内容 >>
提交
fee626c4
编写于
2月 16, 2018
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.denx.de/u-boot-usb
上级
b2cdef48
b16c129c
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
36 addition
and
29 deletion
+36
-29
board/compulab/cl-som-am57x/cl-som-am57x.c
board/compulab/cl-som-am57x/cl-som-am57x.c
+13
-0
board/compulab/cm_t43/cm_t43.c
board/compulab/cm_t43/cm_t43.c
+14
-0
board/ti/am43xx/board.c
board/ti/am43xx/board.c
+2
-2
board/ti/am57xx/board.c
board/ti/am57xx/board.c
+2
-2
board/ti/dra7xx/evm.c
board/ti/dra7xx/evm.c
+2
-2
drivers/usb/host/dwc2.c
drivers/usb/host/dwc2.c
+1
-1
drivers/usb/host/dwc2.h
drivers/usb/host/dwc2.h
+2
-0
drivers/usb/host/xhci-omap.c
drivers/usb/host/xhci-omap.c
+0
-22
未找到文件。
board/compulab/cl-som-am57x/cl-som-am57x.c
浏览文件 @
fee626c4
...
...
@@ -16,6 +16,7 @@
#include <asm/arch/sys_proto.h>
#include "../common/common.h"
#include "../common/eeprom.h"
#include <asm/omap_common.h>
DECLARE_GLOBAL_DATA_PTR
;
...
...
@@ -64,3 +65,15 @@ u32 get_board_rev(void)
{
return
cl_eeprom_get_board_rev
(
CONFIG_SYS_I2C_EEPROM_BUS
);
}
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
return
0
;
}
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
disable_usb_clocks
(
index
);
return
0
;
}
board/compulab/cm_t43/cm_t43.c
浏览文件 @
fee626c4
...
...
@@ -14,6 +14,8 @@
#include <power/pmic.h>
#include <power/tps65218.h>
#include "board.h"
#include <usb.h>
#include <asm/omap_common.h>
DECLARE_GLOBAL_DATA_PTR
;
...
...
@@ -50,6 +52,18 @@ int board_init(void)
return
0
;
}
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
return
0
;
}
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
disable_usb_clocks
(
index
);
return
0
;
}
#ifdef CONFIG_DRIVER_TI_CPSW
static
void
cpsw_control
(
int
enabled
)
...
...
board/ti/am43xx/board.c
浏览文件 @
fee626c4
...
...
@@ -687,7 +687,7 @@ int usb_gadget_handle_interrupts(int index)
#endif
/* CONFIG_USB_DWC3 */
#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
int
omap_xhci_
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
#ifdef CONFIG_USB_DWC3
...
...
@@ -718,7 +718,7 @@ int omap_xhci_board_usb_init(int index, enum usb_init_type init)
return
0
;
}
int
omap_xhci_
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
#ifdef CONFIG_USB_DWC3
switch
(
index
)
{
...
...
board/ti/am57xx/board.c
浏览文件 @
fee626c4
...
...
@@ -867,7 +867,7 @@ int usb_gadget_handle_interrupts(int index)
#endif
/* CONFIG_USB_DWC3 */
#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
int
omap_xhci_
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
switch
(
index
)
{
...
...
@@ -901,7 +901,7 @@ int omap_xhci_board_usb_init(int index, enum usb_init_type init)
return
0
;
}
int
omap_xhci_
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
#ifdef CONFIG_USB_DWC3
switch
(
index
)
{
...
...
board/ti/dra7xx/evm.c
浏览文件 @
fee626c4
...
...
@@ -907,7 +907,7 @@ static struct ti_usb_phy_device usb_phy2_device = {
.
index
=
1
,
};
int
omap_xhci_
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
switch
(
index
)
{
...
...
@@ -944,7 +944,7 @@ int omap_xhci_board_usb_init(int index, enum usb_init_type init)
return
0
;
}
int
omap_xhci_
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
switch
(
index
)
{
case
0
:
...
...
drivers/usb/host/dwc2.c
浏览文件 @
fee626c4
...
...
@@ -375,7 +375,7 @@ static void dwc_otg_core_init(struct dwc2_priv *priv)
usbcfg
&=
~
DWC2_GUSBCFG_DDRSEL
;
#endif
}
else
{
/* UTMI+ interface */
#if (CONFIG_DWC2_UTMI_
PHY_
WIDTH == 16)
#if (CONFIG_DWC2_UTMI_WIDTH == 16)
usbcfg
|=
DWC2_GUSBCFG_PHYIF
;
#endif
}
...
...
drivers/usb/host/dwc2.h
浏览文件 @
fee626c4
...
...
@@ -775,7 +775,9 @@ struct dwc2_core_regs {
#define DWC2_PHY_TYPE_UTMI 1
#define DWC2_PHY_TYPE_ULPI 2
#define CONFIG_DWC2_PHY_TYPE DWC2_PHY_TYPE_UTMI
/* PHY type */
#ifndef CONFIG_DWC2_UTMI_WIDTH
#define CONFIG_DWC2_UTMI_WIDTH 8
/* UTMI bus width (8/16) */
#endif
#undef CONFIG_DWC2_PHY_ULPI_DDR
/* ULPI PHY uses DDR mode */
#define CONFIG_DWC2_PHY_ULPI_EXT_VBUS
/* ULPI PHY controls VBUS */
...
...
drivers/usb/host/xhci-omap.c
浏览文件 @
fee626c4
...
...
@@ -27,28 +27,6 @@ DECLARE_GLOBAL_DATA_PTR;
static
struct
omap_xhci
omap
;
__weak
int
omap_xhci_board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
enable_usb_clocks
(
index
);
return
0
;
}
int
board_usb_init
(
int
index
,
enum
usb_init_type
init
)
{
return
omap_xhci_board_usb_init
(
index
,
init
);
}
__weak
int
omap_xhci_board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
disable_usb_clocks
(
index
);
return
0
;
}
int
board_usb_cleanup
(
int
index
,
enum
usb_init_type
init
)
{
return
omap_xhci_board_usb_cleanup
(
index
,
init
);
}
static
int
omap_xhci_core_init
(
struct
omap_xhci
*
omap
)
{
int
ret
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录