Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
cf3567aa
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cf3567aa
编写于
1月 11, 2011
作者:
S
Sascha Hauer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM MXS: Add auart platform support for i.MX28
Signed-off-by:
N
Sascha Hauer
<
s.hauer@pengutronix.de
>
上级
47d37d6f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
81 addition
and
0 deletion
+81
-0
arch/arm/mach-mxs/clock-mx28.c
arch/arm/mach-mxs/clock-mx28.c
+5
-0
arch/arm/mach-mxs/devices-mx28.h
arch/arm/mach-mxs/devices-mx28.h
+8
-0
arch/arm/mach-mxs/devices/Kconfig
arch/arm/mach-mxs/devices/Kconfig
+3
-0
arch/arm/mach-mxs/devices/Makefile
arch/arm/mach-mxs/devices/Makefile
+1
-0
arch/arm/mach-mxs/devices/platform-auart.c
arch/arm/mach-mxs/devices/platform-auart.c
+54
-0
arch/arm/mach-mxs/include/mach/devices-common.h
arch/arm/mach-mxs/include/mach/devices-common.h
+10
-0
未找到文件。
arch/arm/mach-mxs/clock-mx28.c
浏览文件 @
cf3567aa
...
...
@@ -609,6 +609,11 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK
(
"duart"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"imx28-fec.0"
,
NULL
,
fec_clk
)
_REGISTER_CLOCK
(
"imx28-fec.1"
,
NULL
,
fec_clk
)
_REGISTER_CLOCK
(
"mxs-auart.0"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"mxs-auart.1"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"mxs-auart.2"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"mxs-auart.3"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"mxs-auart.4"
,
NULL
,
uart_clk
)
_REGISTER_CLOCK
(
"fec.0"
,
NULL
,
fec_clk
)
_REGISTER_CLOCK
(
"rtc"
,
NULL
,
rtc_clk
)
_REGISTER_CLOCK
(
"pll2"
,
NULL
,
pll2_clk
)
...
...
arch/arm/mach-mxs/devices-mx28.h
浏览文件 @
cf3567aa
...
...
@@ -15,6 +15,14 @@ extern const struct amba_device mx28_duart_device __initconst;
#define mx28_add_duart() \
mxs_add_duart(&mx28_duart_device)
extern
const
struct
mxs_auart_data
mx28_auart_data
[]
__initconst
;
#define mx28_add_auart(id) mxs_add_auart(&mx28_auart_data[id])
#define mx28_add_auart0() mx28_add_auart(0)
#define mx28_add_auart1() mx28_add_auart(1)
#define mx28_add_auart2() mx28_add_auart(2)
#define mx28_add_auart3() mx28_add_auart(3)
#define mx28_add_auart4() mx28_add_auart(4)
extern
const
struct
mxs_fec_data
mx28_fec_data
[]
__initconst
;
#define mx28_add_fec(id, pdata) \
mxs_add_fec(&mx28_fec_data[id], pdata)
arch/arm/mach-mxs/devices/Kconfig
浏览文件 @
cf3567aa
...
...
@@ -2,5 +2,8 @@ config MXS_HAVE_AMBA_DUART
bool
select ARM_AMBA
config MXS_HAVE_PLATFORM_AUART
bool
config MXS_HAVE_PLATFORM_FEC
bool
arch/arm/mach-mxs/devices/Makefile
浏览文件 @
cf3567aa
obj-$(CONFIG_MXS_HAVE_AMBA_DUART)
+=
amba-duart.o
obj-$(CONFIG_MXS_HAVE_PLATFORM_AUART)
+=
platform-auart.o
obj-$(CONFIG_MXS_HAVE_PLATFORM_FEC)
+=
platform-fec.o
arch/arm/mach-mxs/devices/platform-auart.c
0 → 100644
浏览文件 @
cf3567aa
/*
* Copyright (C) 2010 Pengutronix
* Sascha Hauer <s.hauer@pengutronix.de>
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <asm/sizes.h>
#include <mach/mx28.h>
#include <mach/devices-common.h>
#define mxs_auart_data_entry_single(soc, _id) \
{ \
.id = _id, \
.iobase = soc ## _AUART ## _id ## _BASE_ADDR, \
.irq = soc ## _INT_AUART ## _id, \
}
#define mxs_auart_data_entry(soc, _id) \
[_id] = mxs_auart_data_entry_single(soc, _id)
#ifdef CONFIG_SOC_IMX28
const
struct
mxs_auart_data
mx28_auart_data
[]
__initconst
=
{
#define mx28_auart_data_entry(_id) \
mxs_auart_data_entry(MX28, _id)
mx28_auart_data_entry
(
0
),
mx28_auart_data_entry
(
1
),
mx28_auart_data_entry
(
2
),
mx28_auart_data_entry
(
3
),
mx28_auart_data_entry
(
4
),
};
#endif
struct
platform_device
*
__init
mxs_add_auart
(
const
struct
mxs_auart_data
*
data
)
{
struct
resource
res
[]
=
{
{
.
start
=
data
->
iobase
,
.
end
=
data
->
iobase
+
SZ_8K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
data
->
irq
,
.
end
=
data
->
irq
,
.
flags
=
IORESOURCE_IRQ
,
},
};
return
mxs_add_platform_device_dmamask
(
"mxs-auart"
,
data
->
id
,
res
,
ARRAY_SIZE
(
res
),
NULL
,
0
,
DMA_BIT_MASK
(
32
));
}
arch/arm/mach-mxs/include/mach/devices-common.h
浏览文件 @
cf3567aa
...
...
@@ -30,6 +30,16 @@ int __init mxs_add_amba_device(const struct amba_device *dev);
/* duart */
int
__init
mxs_add_duart
(
const
struct
amba_device
*
dev
);
/* auart */
struct
mxs_auart_data
{
int
id
;
resource_size_t
iobase
;
resource_size_t
iosize
;
resource_size_t
irq
;
};
struct
platform_device
*
__init
mxs_add_auart
(
const
struct
mxs_auart_data
*
data
);
/* fec */
#include <linux/fec.h>
struct
mxs_fec_data
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录