Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
7cc3c846
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看板
提交
7cc3c846
编写于
6月 24, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: imx: dynamically register imx-uart devices (imx25)
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
3c5227fd
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
22 addition
and
103 deletion
+22
-103
arch/arm/mach-mx25/Kconfig
arch/arm/mach-mx25/Kconfig
+1
-0
arch/arm/mach-mx25/devices-imx25.h
arch/arm/mach-mx25/devices-imx25.h
+11
-0
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.c
+0
-95
arch/arm/mach-mx25/devices.h
arch/arm/mach-mx25/devices.h
+0
-5
arch/arm/mach-mx25/mach-mx25_3ds.c
arch/arm/mach-mx25/mach-mx25_3ds.c
+2
-3
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mx25.h
+8
-0
未找到文件。
arch/arm/mach-mx25/Kconfig
浏览文件 @
7cc3c846
...
...
@@ -4,6 +4,7 @@ comment "MX25 platforms:"
config MACH_MX25_3DS
bool "Support MX25PDK (3DS) Platform"
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_NAND
endif
arch/arm/mach-mx25/devices-imx25.h
浏览文件 @
7cc3c846
...
...
@@ -16,6 +16,17 @@
#define imx25_add_imx_i2c2(pdata) \
imx_add_imx_i2c(2, MX25_I2C3_BASE_ADDR, SZ_16K, MX25_INT_I2C3, pdata)
#define imx25_add_imx_uart0(pdata) \
imx_add_imx_uart_1irq(0, MX25_UART1_BASE_ADDR, SZ_16K, MX25_INT_UART1, pdata)
#define imx25_add_imx_uart1(pdata) \
imx_add_imx_uart_1irq(1, MX25_UART2_BASE_ADDR, SZ_16K, MX25_INT_UART2, pdata)
#define imx25_add_imx_uart2(pdata) \
imx_add_imx_uart_1irq(2, MX25_UART3_BASE_ADDR, SZ_16K, MX25_INT_UART3, pdata)
#define imx25_add_imx_uart3(pdata) \
imx_add_imx_uart_1irq(3, MX25_UART4_BASE_ADDR, SZ_16K, MX25_INT_UART4, pdata)
#define imx25_add_imx_uart4(pdata) \
imx_add_imx_uart_1irq(4, MX25_UART5_BASE_ADDR, SZ_16K, MX25_INT_UART5, pdata)
#define imx25_add_mxc_nand(pdata) \
imx_add_mxc_nand_v21(MX25_NFC_BASE_ADDR, MX25_INT_NANDFC, pdata)
...
...
arch/arm/mach-mx25/devices.c
浏览文件 @
7cc3c846
...
...
@@ -22,101 +22,6 @@
#include <mach/mx25.h>
#include <mach/irqs.h>
static
struct
resource
uart0
[]
=
{
{
.
start
=
0x43f90000
,
.
end
=
0x43f93fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
45
,
.
end
=
45
,
.
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
=
0x43f94000
,
.
end
=
0x43f97fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
32
,
.
end
=
32
,
.
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
=
0x5000c000
,
.
end
=
0x5000ffff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
18
,
.
end
=
18
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device2
=
{
.
name
=
"imx-uart"
,
.
id
=
2
,
.
resource
=
uart2
,
.
num_resources
=
ARRAY_SIZE
(
uart2
),
};
static
struct
resource
uart3
[]
=
{
{
.
start
=
0x50008000
,
.
end
=
0x5000bfff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
5
,
.
end
=
5
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device3
=
{
.
name
=
"imx-uart"
,
.
id
=
3
,
.
resource
=
uart3
,
.
num_resources
=
ARRAY_SIZE
(
uart3
),
};
static
struct
resource
uart4
[]
=
{
{
.
start
=
0x5002c000
,
.
end
=
0x5002ffff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
40
,
.
end
=
40
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_uart_device4
=
{
.
name
=
"imx-uart"
,
.
id
=
4
,
.
resource
=
uart4
,
.
num_resources
=
ARRAY_SIZE
(
uart4
),
};
#define MX25_OTG_BASE_ADDR 0x53FF4000
static
u64
otg_dmamask
=
DMA_BIT_MASK
(
32
);
...
...
arch/arm/mach-mx25/devices.h
浏览文件 @
7cc3c846
extern
struct
platform_device
mxc_uart_device0
;
extern
struct
platform_device
mxc_uart_device1
;
extern
struct
platform_device
mxc_uart_device2
;
extern
struct
platform_device
mxc_uart_device3
;
extern
struct
platform_device
mxc_uart_device4
;
extern
struct
platform_device
mxc_otg
;
extern
struct
platform_device
otg_udc_device
;
extern
struct
platform_device
mxc_usbh2
;
...
...
arch/arm/mach-mx25/mach-mx25_3ds.c
浏览文件 @
7cc3c846
...
...
@@ -38,7 +38,6 @@
#include <asm/memory.h>
#include <asm/mach/map.h>
#include <mach/common.h>
#include <mach/imx-uart.h>
#include <mach/mx25.h>
#include <mach/imxfb.h>
#include <mach/iomux-mx25.h>
...
...
@@ -46,7 +45,7 @@
#include "devices-imx25.h"
#include "devices.h"
static
struct
imxuart_platform_data
uart_pdata
=
{
static
const
struct
imxuart_platform_data
uart_pdata
__initconst
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
...
...
@@ -150,7 +149,7 @@ static void __init mx25pdk_init(void)
mxc_iomux_v3_setup_multiple_pads
(
mx25pdk_pads
,
ARRAY_SIZE
(
mx25pdk_pads
));
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
);
imx25_add_imx_uart0
(
&
uart_pdata
);
mxc_register_device
(
&
mxc_usbh2
,
NULL
);
imx25_add_mxc_nand
(
&
mx25pdk_nand_board_info
);
mxc_register_device
(
&
mx25_rtc_device
,
NULL
);
...
...
arch/arm/plat-mxc/include/mach/mx25.h
浏览文件 @
7cc3c846
...
...
@@ -33,6 +33,9 @@
#define MX25_UART1_BASE_ADDR 0x43f90000
#define MX25_UART2_BASE_ADDR 0x43f94000
#define MX25_UART3_BASE_ADDR 0x5000c000
#define MX25_UART4_BASE_ADDR 0x50008000
#define MX25_UART5_BASE_ADDR 0x5002c000
#define MX25_CSPI3_BASE_ADDR 0x50004000
#define MX25_CSPI2_BASE_ADDR 0x50010000
...
...
@@ -44,12 +47,17 @@
#define MX25_INT_CSPI3 0
#define MX25_INT_I2C1 3
#define MX25_INT_I2C2 4
#define MX25_INT_UART4 5
#define MX25_INT_I2C3 10
#define MX25_INT_CSPI2 13
#define MX25_INT_CSPI1 14
#define MX25_INT_UART3 18
#define MX25_INT_DRYICE 25
#define MX25_INT_UART2 32
#define MX25_INT_NANDFC 33
#define MX25_INT_LCDC 39
#define MX25_INT_UART5 40
#define MX25_INT_UART1 45
#define MX25_INT_FEC 57
#if defined(IMX_NEEDS_DEPRECATED_SYMBOLS)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录