Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a3927416
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看板
提交
a3927416
编写于
10月 12, 2010
作者:
E
Eric Bénard
提交者:
Sascha Hauer
10月 19, 2010
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cpuimx51: update board support
add NAND, SDHC Signed-off-by:
N
Eric Bénard
<
eric@eukrea.com
>
上级
70b17268
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
1 deletion
+34
-1
arch/arm/mach-mx5/Kconfig
arch/arm/mach-mx5/Kconfig
+3
-0
arch/arm/mach-mx5/board-cpuimx51.c
arch/arm/mach-mx5/board-cpuimx51.c
+9
-0
arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
+22
-1
未找到文件。
arch/arm/mach-mx5/Kconfig
浏览文件 @
a3927416
...
@@ -31,6 +31,8 @@ config MACH_EUKREA_CPUIMX51
...
@@ -31,6 +31,8 @@ config MACH_EUKREA_CPUIMX51
bool "Support Eukrea CPUIMX51 module"
bool "Support Eukrea CPUIMX51 module"
select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_NAND
select IMX_HAVE_PLATFORM_SPI_IMX
help
help
Include support for Eukrea CPUIMX51 platform. This includes
Include support for Eukrea CPUIMX51 platform. This includes
specific configurations for the module and its peripherals.
specific configurations for the module and its peripherals.
...
@@ -43,6 +45,7 @@ choice
...
@@ -43,6 +45,7 @@ choice
config MACH_EUKREA_MBIMX51_BASEBOARD
config MACH_EUKREA_MBIMX51_BASEBOARD
prompt "Eukrea MBIMX51 development board"
prompt "Eukrea MBIMX51 development board"
bool
bool
select IMX_HAVE_PLATFORM_ESDHC
help
help
This adds board specific devices that can be found on Eukrea's
This adds board specific devices that can be found on Eukrea's
MBIMX51 evaluation board.
MBIMX51 evaluation board.
...
...
arch/arm/mach-mx5/board-cpuimx51.c
浏览文件 @
a3927416
...
@@ -146,6 +146,13 @@ static struct pad_desc eukrea_cpuimx51_pads[] = {
...
@@ -146,6 +146,13 @@ static struct pad_desc eukrea_cpuimx51_pads[] = {
MX51_PAD_USBH1_STP__USBH1_STP
,
MX51_PAD_USBH1_STP__USBH1_STP
,
};
};
static
const
struct
mxc_nand_platform_data
eukrea_cpuimx51_nand_board_info
__initconst
=
{
.
width
=
1
,
.
hw_ecc
=
1
,
.
flash_bbt
=
1
,
};
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
};
...
@@ -239,6 +246,8 @@ static void __init eukrea_cpuimx51_init(void)
...
@@ -239,6 +246,8 @@ static void __init eukrea_cpuimx51_init(void)
ARRAY_SIZE
(
eukrea_cpuimx51_pads
));
ARRAY_SIZE
(
eukrea_cpuimx51_pads
));
imx51_add_imx_uart
(
0
,
&
uart_pdata
);
imx51_add_imx_uart
(
0
,
&
uart_pdata
);
imx51_add_mxc_nand
(
&
eukrea_cpuimx51_nand_board_info
);
gpio_request
(
CPUIMX51_QUARTA_GPIO
,
"quarta_irq"
);
gpio_request
(
CPUIMX51_QUARTA_GPIO
,
"quarta_irq"
);
gpio_direction_input
(
CPUIMX51_QUARTA_GPIO
);
gpio_direction_input
(
CPUIMX51_QUARTA_GPIO
);
gpio_free
(
CPUIMX51_QUARTA_GPIO
);
gpio_free
(
CPUIMX51_QUARTA_GPIO
);
...
...
arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
浏览文件 @
a3927416
...
@@ -113,6 +113,22 @@ static struct pad_desc mbimx51_pads[] = {
...
@@ -113,6 +113,22 @@ static struct pad_desc mbimx51_pads[] = {
MX51_PAD_KEY_COL1__KEY_COL1
,
MX51_PAD_KEY_COL1__KEY_COL1
,
MX51_PAD_KEY_COL2__KEY_COL2
,
MX51_PAD_KEY_COL2__KEY_COL2
,
MX51_PAD_KEY_COL3__KEY_COL3
,
MX51_PAD_KEY_COL3__KEY_COL3
,
/* SD 1 */
MX51_PAD_SD1_CMD__SD1_CMD
,
MX51_PAD_SD1_CLK__SD1_CLK
,
MX51_PAD_SD1_DATA0__SD1_DATA0
,
MX51_PAD_SD1_DATA1__SD1_DATA1
,
MX51_PAD_SD1_DATA2__SD1_DATA2
,
MX51_PAD_SD1_DATA3__SD1_DATA3
,
/* SD 2 */
MX51_PAD_SD2_CMD__SD2_CMD
,
MX51_PAD_SD2_CLK__SD2_CLK
,
MX51_PAD_SD2_DATA0__SD2_DATA0
,
MX51_PAD_SD2_DATA1__SD2_DATA1
,
MX51_PAD_SD2_DATA2__SD2_DATA2
,
MX51_PAD_SD2_DATA3__SD2_DATA3
,
};
};
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
...
@@ -159,9 +175,11 @@ struct tsc2007_platform_data tsc2007_data = {
...
@@ -159,9 +175,11 @@ struct tsc2007_platform_data tsc2007_data = {
static
struct
i2c_board_info
mbimx51_i2c_devices
[]
=
{
static
struct
i2c_board_info
mbimx51_i2c_devices
[]
=
{
{
{
I2C_BOARD_INFO
(
"tsc2007"
,
0x4
8
),
I2C_BOARD_INFO
(
"tsc2007"
,
0x4
9
),
.
irq
=
MBIMX51_TSC2007_IRQ
,
.
irq
=
MBIMX51_TSC2007_IRQ
,
.
platform_data
=
&
tsc2007_data
,
.
platform_data
=
&
tsc2007_data
,
},
{
I2C_BOARD_INFO
(
"tlv320aic23"
,
0x1a
),
},
},
};
};
...
@@ -198,4 +216,7 @@ void __init eukrea_mbimx51_baseboard_init(void)
...
@@ -198,4 +216,7 @@ void __init eukrea_mbimx51_baseboard_init(void)
set_irq_type
(
MBIMX51_TSC2007_IRQ
,
IRQF_TRIGGER_FALLING
);
set_irq_type
(
MBIMX51_TSC2007_IRQ
,
IRQF_TRIGGER_FALLING
);
i2c_register_board_info
(
1
,
mbimx51_i2c_devices
,
i2c_register_board_info
(
1
,
mbimx51_i2c_devices
,
ARRAY_SIZE
(
mbimx51_i2c_devices
));
ARRAY_SIZE
(
mbimx51_i2c_devices
));
imx51_add_esdhc
(
0
,
NULL
);
imx51_add_esdhc
(
1
,
NULL
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录