Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
cb2dc111
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
cb2dc111
编写于
2月 04, 2010
作者:
S
Sascha Hauer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
i.MX27 pca100: Add USB support
Signed-off-by:
N
Sascha Hauer
<
s.hauer@pengutronix.de
>
上级
ee14373c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
54 addition
and
0 deletion
+54
-0
arch/arm/mach-mx3/Kconfig
arch/arm/mach-mx3/Kconfig
+1
-0
arch/arm/mach-mx3/mach-pcm043.c
arch/arm/mach-mx3/mach-pcm043.c
+53
-0
未找到文件。
arch/arm/mach-mx3/Kconfig
浏览文件 @
cb2dc111
...
@@ -87,6 +87,7 @@ config MACH_QONG
...
@@ -87,6 +87,7 @@ config MACH_QONG
config MACH_PCM043
config MACH_PCM043
bool "Support Phytec pcm043 (i.MX35) platforms"
bool "Support Phytec pcm043 (i.MX35) platforms"
select ARCH_MX35
select ARCH_MX35
select MXC_ULPI if USB_ULPI
help
help
Include support for Phytec pcm043 platform. This includes
Include support for Phytec pcm043 platform. This includes
specific configurations for the board and its peripherals.
specific configurations for the board and its peripherals.
...
...
arch/arm/mach-mx3/mach-pcm043.c
浏览文件 @
cb2dc111
...
@@ -28,6 +28,9 @@
...
@@ -28,6 +28,9 @@
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/i2c.h>
#include <linux/i2c/at24.h>
#include <linux/i2c/at24.h>
#include <linux/usb/otg.h>
#include <linux/usb/ulpi.h>
#include <linux/fsl_devices.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -44,6 +47,8 @@
...
@@ -44,6 +47,8 @@
#include <mach/ipu.h>
#include <mach/ipu.h>
#include <mach/mx3fb.h>
#include <mach/mx3fb.h>
#include <mach/mxc_nand.h>
#include <mach/mxc_nand.h>
#include <mach/mxc_ehci.h>
#include <mach/ulpi.h>
#include "devices.h"
#include "devices.h"
...
@@ -205,6 +210,9 @@ static struct pad_desc pcm043_pads[] = {
...
@@ -205,6 +210,9 @@ static struct pad_desc pcm043_pads[] = {
MX35_PAD_D3_CLS__IPU_DISPB_D3_CLS
,
MX35_PAD_D3_CLS__IPU_DISPB_D3_CLS
,
/* gpio */
/* gpio */
MX35_PAD_ATA_CS0__GPIO2_6
,
MX35_PAD_ATA_CS0__GPIO2_6
,
/* USB host */
MX35_PAD_I2C2_CLK__USB_TOP_USBH2_PWR
,
MX35_PAD_I2C2_DAT__USB_TOP_USBH2_OC
,
};
};
static
struct
mxc_nand_platform_data
pcm037_nand_board_info
=
{
static
struct
mxc_nand_platform_data
pcm037_nand_board_info
=
{
...
@@ -212,6 +220,37 @@ static struct mxc_nand_platform_data pcm037_nand_board_info = {
...
@@ -212,6 +220,37 @@ static struct mxc_nand_platform_data pcm037_nand_board_info = {
.
hw_ecc
=
1
,
.
hw_ecc
=
1
,
};
};
static
struct
mxc_usbh_platform_data
otg_pdata
=
{
.
portsc
=
MXC_EHCI_MODE_UTMI
,
.
flags
=
MXC_EHCI_INTERFACE_DIFF_UNI
,
};
static
struct
mxc_usbh_platform_data
usbh1_pdata
=
{
.
portsc
=
MXC_EHCI_MODE_SERIAL
,
.
flags
=
MXC_EHCI_INTERFACE_SINGLE_UNI
|
MXC_EHCI_INTERNAL_PHY
|
MXC_EHCI_IPPUE_DOWN
,
};
static
struct
fsl_usb2_platform_data
otg_device_pdata
=
{
.
operating_mode
=
FSL_USB2_DR_DEVICE
,
.
phy_mode
=
FSL_USB2_PHY_UTMI
,
};
static
int
otg_mode_host
;
static
int
__init
pcm043_otg_mode
(
char
*
options
)
{
if
(
!
strcmp
(
options
,
"host"
))
otg_mode_host
=
1
;
else
if
(
!
strcmp
(
options
,
"device"
))
otg_mode_host
=
0
;
else
pr_info
(
"otg_mode neither
\"
host
\"
nor
\"
device
\"
. "
"Defaulting to device
\n
"
);
return
0
;
}
__setup
(
"otg_mode="
,
pcm043_otg_mode
);
/*
/*
* Board specific initialization.
* Board specific initialization.
*/
*/
...
@@ -235,6 +274,20 @@ static void __init mxc_board_init(void)
...
@@ -235,6 +274,20 @@ static void __init mxc_board_init(void)
mxc_register_device
(
&
mx3_ipu
,
&
mx3_ipu_data
);
mxc_register_device
(
&
mx3_ipu
,
&
mx3_ipu_data
);
mxc_register_device
(
&
mx3_fb
,
&
mx3fb_pdata
);
mxc_register_device
(
&
mx3_fb
,
&
mx3fb_pdata
);
#if defined(CONFIG_USB_ULPI)
if
(
otg_mode_host
)
{
otg_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
mxc_register_device
(
&
mxc_otg_host
,
&
otg_pdata
);
}
mxc_register_device
(
&
mxc_usbh1
,
&
usbh1_pdata
);
#endif
if
(
!
otg_mode_host
)
mxc_register_device
(
&
mxc_otg_udc_device
,
&
otg_device_pdata
);
}
}
static
void
__init
pcm043_timer_init
(
void
)
static
void
__init
pcm043_timer_init
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录