Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
6eafde5f
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6eafde5f
编写于
6月 23, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: imx: dynamically register imx-uart devices (imx35)
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
16cf5c41
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
71 deletion
+15
-71
arch/arm/mach-mx3/Kconfig
arch/arm/mach-mx3/Kconfig
+2
-0
arch/arm/mach-mx3/devices-imx35.h
arch/arm/mach-mx3/devices-imx35.h
+7
-0
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.c
+0
-59
arch/arm/mach-mx3/devices.h
arch/arm/mach-mx3/devices.h
+0
-5
arch/arm/mach-mx3/mach-mx35_3ds.c
arch/arm/mach-mx3/mach-mx35_3ds.c
+3
-3
arch/arm/mach-mx3/mach-pcm043.c
arch/arm/mach-mx3/mach-pcm043.c
+3
-4
未找到文件。
arch/arm/mach-mx3/Kconfig
浏览文件 @
6eafde5f
...
...
@@ -116,6 +116,7 @@ config MACH_PCM043
bool "Support Phytec pcm043 (i.MX35) platforms"
select ARCH_MX35
select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_NAND
select MXC_ULPI if USB_ULPI
help
...
...
@@ -136,6 +137,7 @@ config MACH_ARMADILLO5X0
config MACH_MX35_3DS
bool "Support MX35PDK platform"
select ARCH_MX35
select IMX_HAVE_PLATFORM_IMX_UART
default n
help
Include support for MX35PDK platform. This includes specific
...
...
arch/arm/mach-mx3/devices-imx35.h
浏览文件 @
6eafde5f
...
...
@@ -16,6 +16,13 @@
#define imx35_add_imx_i2c2(pdata) \
imx_add_imx_i2c(2, MX35_I2C3_BASE_ADDR, SZ_4K, MX35_INT_I2C3, pdata)
#define imx35_add_imx_uart0(pdata) \
imx_add_imx_uart_1irq(0, MX35_UART1_BASE_ADDR, SZ_16K, MX35_INT_UART1, pdata)
#define imx35_add_imx_uart1(pdata) \
imx_add_imx_uart_1irq(1, MX35_UART2_BASE_ADDR, SZ_16K, MX35_INT_UART2, pdata)
#define imx35_add_imx_uart2(pdata) \
imx_add_imx_uart_1irq(2, MX35_UART3_BASE_ADDR, SZ_16K, MX35_INT_UART3, pdata)
#define imx35_add_mxc_nand(pdata) \
imx_add_mxc_nand_v21(MX35_NFC_BASE_ADDR, MX35_INT_NANDFC, pdata)
...
...
arch/arm/mach-mx3/devices.c
浏览文件 @
6eafde5f
...
...
@@ -29,65 +29,6 @@
#include "devices.h"
#if defined(CONFIG_ARCH_MX35)
static
struct
resource
uart0
[]
=
{
{
.
start
=
UART1_BASE_ADDR
,
.
end
=
UART1_BASE_ADDR
+
0x0B5
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_UART1
,
.
end
=
MXC_INT_UART1
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device0
=
{
.
name
=
"imx-uart"
,
.
id
=
0
,
.
resource
=
uart0
,
.
num_resources
=
ARRAY_SIZE
(
uart0
),
};
static
struct
resource
uart1
[]
=
{
{
.
start
=
UART2_BASE_ADDR
,
.
end
=
UART2_BASE_ADDR
+
0x0B5
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_UART2
,
.
end
=
MXC_INT_UART2
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device1
=
{
.
name
=
"imx-uart"
,
.
id
=
1
,
.
resource
=
uart1
,
.
num_resources
=
ARRAY_SIZE
(
uart1
),
};
static
struct
resource
uart2
[]
=
{
{
.
start
=
UART3_BASE_ADDR
,
.
end
=
UART3_BASE_ADDR
+
0x0B5
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_UART3
,
.
end
=
MXC_INT_UART3
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device2
=
{
.
name
=
"imx-uart"
,
.
id
=
2
,
.
resource
=
uart2
,
.
num_resources
=
ARRAY_SIZE
(
uart2
),
};
#endif
/* GPIO port description */
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
{
...
...
arch/arm/mach-mx3/devices.h
浏览文件 @
6eafde5f
#if defined(CONFIG_ARCH_MX35)
extern
struct
platform_device
mxc_uart_device0
;
extern
struct
platform_device
mxc_uart_device1
;
extern
struct
platform_device
mxc_uart_device2
;
#endif
extern
struct
platform_device
mxc_w1_master_device
;
extern
struct
platform_device
mx3_ipu
;
extern
struct
platform_device
mx3_fb
;
...
...
arch/arm/mach-mx3/mach-mx35_3ds.c
浏览文件 @
6eafde5f
...
...
@@ -34,12 +34,12 @@
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/imx-uart.h>
#include <mach/iomux-mx35.h>
#include "devices-imx35.h"
#include "devices.h"
static
struct
imxuart_platform_data
uart_pdata
=
{
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
...
...
@@ -92,7 +92,7 @@ static void __init mxc_board_init(void)
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
);
imx35_add_imx_uart0
(
&
uart_pdata
);
mxc_register_device
(
&
mxc_otg_udc_device
,
&
usb_pdata
);
}
...
...
arch/arm/mach-mx3/mach-pcm043.c
浏览文件 @
6eafde5f
...
...
@@ -36,7 +36,6 @@
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/imx-uart.h>
#include <mach/iomux-mx35.h>
#include <mach/ipu.h>
#include <mach/mx3fb.h>
...
...
@@ -115,7 +114,7 @@ static struct platform_device pcm043_flash = {
.
num_resources
=
1
,
};
static
struct
imxuart_platform_data
uart_pdata
=
{
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
...
...
@@ -355,11 +354,11 @@ static void __init mxc_board_init(void)
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
);
imx35_add_imx_uart0
(
&
uart_pdata
);
imx35_add_mxc_nand
(
&
pcm037_nand_board_info
);
mxc_register_device
(
&
imx_ssi_device0
,
&
pcm043_ssi_pdata
);
mxc_register_device
(
&
mxc_uart_device1
,
&
uart_pdata
);
imx35_add_imx_uart1
(
&
uart_pdata
);
#if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE
i2c_register_board_info
(
0
,
pcm043_i2c_devices
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录