Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
3c5227fd
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3c5227fd
编写于
6月 22, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: imx: dynamically register imx-uart devices (imx21)
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
d112f4e4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
10 deletion
+17
-10
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/Kconfig
+1
-0
arch/arm/mach-imx/devices-imx21.h
arch/arm/mach-imx/devices-imx21.h
+9
-0
arch/arm/mach-imx/devices.c
arch/arm/mach-imx/devices.c
+1
-2
arch/arm/mach-imx/devices.h
arch/arm/mach-imx/devices.h
+1
-1
arch/arm/mach-imx/mach-mx21ads.c
arch/arm/mach-imx/mach-mx21ads.c
+5
-7
未找到文件。
arch/arm/mach-imx/Kconfig
浏览文件 @
3c5227fd
...
...
@@ -71,6 +71,7 @@ comment "MX21 platforms:"
config MACH_MX21ADS
bool "MX21ADS platform"
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_NAND
help
Include support for MX21ADS platform. This includes specific
...
...
arch/arm/mach-imx/devices-imx21.h
浏览文件 @
3c5227fd
...
...
@@ -12,6 +12,15 @@
#define imx21_add_i2c_imx(pdata) \
imx_add_imx_i2c(0, MX2x_I2C_BASE_ADDR, SZ_4K, MX2x_INT_I2C, pdata)
#define imx21_add_imx_uart0(pdata) \
imx_add_imx_uart_1irq(0, MX21_UART1_BASE_ADDR, SZ_4K, MX21_INT_UART1, pdata)
#define imx21_add_imx_uart1(pdata) \
imx_add_imx_uart_1irq(1, MX21_UART2_BASE_ADDR, SZ_4K, MX21_INT_UART2, pdata)
#define imx21_add_imx_uart2(pdata) \
imx_add_imx_uart_1irq(2, MX21_UART3_BASE_ADDR, SZ_4K, MX21_INT_UART3, pdata)
#define imx21_add_imx_uart3(pdata) \
imx_add_imx_uart_1irq(3, MX21_UART4_BASE_ADDR, SZ_4K, MX21_INT_UART4, pdata)
#define imx21_add_mxc_nand(pdata) \
imx_add_mxc_nand_v1(MX21_NFC_BASE_ADDR, MX21_INT_NANDFC, pdata)
...
...
arch/arm/mach-imx/devices.c
浏览文件 @
3c5227fd
...
...
@@ -483,6 +483,7 @@ struct platform_device mxc_usbh2 = {
DEFINE_IMX_SSI_DEVICE
(
0
,
1
,
MX2x_SSI1_BASE_ADDR
,
MX2x_INT_SSI1
);
DEFINE_IMX_SSI_DEVICE
(
1
,
2
,
MX2x_SSI1_BASE_ADDR
,
MX2x_INT_SSI1
);
#ifdef CONFIG_MACH_MX27
#define DEFINE_IMX2x_UART_DEVICE(n, baseaddr, irq) \
static struct resource imx2x_uart_resources ## n[] = { \
{ \
...
...
@@ -507,8 +508,6 @@ DEFINE_IMX2x_UART_DEVICE(0, MX2x_UART1_BASE_ADDR, MX2x_INT_UART1);
DEFINE_IMX2x_UART_DEVICE
(
1
,
MX2x_UART2_BASE_ADDR
,
MX2x_INT_UART2
);
DEFINE_IMX2x_UART_DEVICE
(
2
,
MX2x_UART3_BASE_ADDR
,
MX2x_INT_UART3
);
DEFINE_IMX2x_UART_DEVICE
(
3
,
MX2x_UART4_BASE_ADDR
,
MX2x_INT_UART4
);
#ifdef CONFIG_MACH_MX27
DEFINE_IMX2x_UART_DEVICE
(
4
,
MX27_UART5_BASE_ADDR
,
MX27_INT_UART5
);
DEFINE_IMX2x_UART_DEVICE
(
5
,
MX27_UART6_BASE_ADDR
,
MX27_INT_UART6
);
#endif
...
...
arch/arm/mach-imx/devices.h
浏览文件 @
3c5227fd
...
...
@@ -14,11 +14,11 @@ extern struct platform_device mxc_gpt4;
extern
struct
platform_device
mxc_gpt5
;
#endif
extern
struct
platform_device
mxc_wdt
;
#ifdef CONFIG_MACH_MX27
extern
struct
platform_device
imx2x_uart_device0
;
extern
struct
platform_device
imx2x_uart_device1
;
extern
struct
platform_device
imx2x_uart_device2
;
extern
struct
platform_device
imx2x_uart_device3
;
#ifdef CONFIG_MACH_MX27
extern
struct
platform_device
imx2x_uart_device4
;
extern
struct
platform_device
imx2x_uart_device5
;
#endif
...
...
arch/arm/mach-imx/mach-mx21ads.c
浏览文件 @
3c5227fd
...
...
@@ -24,7 +24,6 @@
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <mach/imx-uart.h>
#include <mach/imxfb.h>
#include <mach/iomux-mx21.h>
#include <mach/mxc_nand.h>
...
...
@@ -164,14 +163,13 @@ static struct platform_device mx21ads_nor_mtd_device = {
.
resource
=
&
mx21ads_flash_resource
,
};
static
struct
imxuart_platform_data
uart_pdata
=
{
static
const
struct
imxuart_platform_data
uart_pdata_rts
__initconst
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
static
struct
imxuart_platform_data
uart_norts_pdata
=
{
static
const
struct
imxuart_platform_data
uart_pdata_norts
__initconst
=
{
};
static
int
mx21ads_fb_init
(
struct
platform_device
*
pdev
)
{
u16
tmp
;
...
...
@@ -295,9 +293,9 @@ static void __init mx21ads_board_init(void)
mxc_gpio_setup_multiple_pins
(
mx21ads_pins
,
ARRAY_SIZE
(
mx21ads_pins
),
"mx21ads"
);
mxc_register_device
(
&
imx2x_uart_device0
,
&
uart_pdata
);
mxc_register_device
(
&
imx2x_uart_device2
,
&
uart_norts_pdata
);
mxc_register_device
(
&
imx2x_uart_device3
,
&
uart_pdata
);
imx21_add_imx_uart0
(
&
uart_pdata_rts
);
imx21_add_imx_uart2
(
&
uart_pdata_norts
);
imx21_add_imx_uart3
(
&
uart_pdata_rts
);
mxc_register_device
(
&
mxc_fb_device
,
&
mx21ads_fb_data
);
mxc_register_device
(
&
mxc_sdhc_device0
,
&
mx21ads_sdhc_pdata
);
imx21_add_mxc_nand
(
&
mx21ads_nand_board_info
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录