Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f4cff0d0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
170
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看板
提交
f4cff0d0
编写于
3月 30, 2010
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: sh7724 clkdev lookups.
Conver to TMU clock lookups for SH7724. Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
f4221802
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
41 addition
and
10 deletion
+41
-10
arch/sh/kernel/cpu/sh4a/clock-sh7724.c
arch/sh/kernel/cpu/sh4a/clock-sh7724.c
+41
-3
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
+0
-7
未找到文件。
arch/sh/kernel/cpu/sh4a/clock-sh7724.c
浏览文件 @
f4cff0d0
...
...
@@ -21,6 +21,8 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <asm/clkdev.h>
#include <asm/clock.h>
#include <asm/hwblk.h>
#include <cpu/sh7724.h>
...
...
@@ -189,11 +191,11 @@ static struct clk mstp_clks[] = {
SH_HWBLK_CLK
(
"sh0"
,
-
1
,
SH_CLK
,
HWBLK_SHYWAY
,
CLK_ENABLE_ON_INIT
),
SH_HWBLK_CLK
(
"hudi0"
,
-
1
,
P_CLK
,
HWBLK_HUDI
,
0
),
SH_HWBLK_CLK
(
"ubc0"
,
-
1
,
I_CLK
,
HWBLK_UBC
,
0
),
SH_HWBLK_CLK
(
"tmu0"
,
-
1
,
P_CLK
,
HWBLK_TMU0
,
0
),
SH_HWBLK_CLK
(
"cmt
0
"
,
-
1
,
R_CLK
,
HWBLK_CMT
,
0
),
SH_HWBLK_CLK
(
"tmu0
12_fck
"
,
-
1
,
P_CLK
,
HWBLK_TMU0
,
0
),
SH_HWBLK_CLK
(
"cmt
_fck
"
,
-
1
,
R_CLK
,
HWBLK_CMT
,
0
),
SH_HWBLK_CLK
(
"rwdt0"
,
-
1
,
R_CLK
,
HWBLK_RWDT
,
0
),
SH_HWBLK_CLK
(
"dmac1"
,
-
1
,
B_CLK
,
HWBLK_DMAC1
,
0
),
SH_HWBLK_CLK
(
"tmu
1
"
,
-
1
,
P_CLK
,
HWBLK_TMU1
,
0
),
SH_HWBLK_CLK
(
"tmu
345_fck
"
,
-
1
,
P_CLK
,
HWBLK_TMU1
,
0
),
SH_HWBLK_CLK
(
"sci_fck"
,
0
,
P_CLK
,
HWBLK_SCIF0
,
0
),
SH_HWBLK_CLK
(
"sci_fck"
,
1
,
P_CLK
,
HWBLK_SCIF1
,
0
),
SH_HWBLK_CLK
(
"sci_fck"
,
2
,
P_CLK
,
HWBLK_SCIF2
,
0
),
...
...
@@ -233,6 +235,40 @@ static struct clk mstp_clks[] = {
SH_HWBLK_CLK
(
"lcdc0"
,
-
1
,
B_CLK
,
HWBLK_LCDC
,
0
),
};
static
struct
clk_lookup
lookups
[]
=
{
{
/* TMU0 */
.
dev_id
=
"sh_tmu.0"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
12
],
/* tmu012_fck */
},
{
/* TMU1 */
.
dev_id
=
"sh_tmu.1"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
12
],
},
{
/* TMU2 */
.
dev_id
=
"sh_tmu.2"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
12
],
},
{
/* TMU3 */
.
dev_id
=
"sh_tmu.3"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
16
],
/* tmu345_fck */
},
{
/* TMU4 */
.
dev_id
=
"sh_tmu.4"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
16
],
},
{
/* TMU5 */
.
dev_id
=
"sh_tmu.5"
,
.
con_id
=
"tmu_fck"
,
.
clk
=
&
mstp_clks
[
16
],
},
};
int
__init
arch_clk_init
(
void
)
{
int
k
,
ret
=
0
;
...
...
@@ -246,6 +282,8 @@ int __init arch_clk_init(void)
for
(
k
=
0
;
!
ret
&&
(
k
<
ARRAY_SIZE
(
main_clks
));
k
++
)
ret
=
clk_register
(
main_clks
[
k
]);
clkdev_add_table
(
lookups
,
ARRAY_SIZE
(
lookups
));
if
(
!
ret
)
ret
=
sh_clk_div4_register
(
div4_clks
,
DIV4_NR
,
&
div4_table
);
...
...
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
浏览文件 @
f4cff0d0
...
...
@@ -481,7 +481,6 @@ static struct platform_device veu1_device = {
static
struct
sh_timer_config
cmt_platform_data
=
{
.
channel_offset
=
0x60
,
.
timer_bit
=
5
,
.
clk
=
"cmt0"
,
.
clockevent_rating
=
125
,
.
clocksource_rating
=
200
,
};
...
...
@@ -514,7 +513,6 @@ static struct platform_device cmt_device = {
static
struct
sh_timer_config
tmu0_platform_data
=
{
.
channel_offset
=
0x04
,
.
timer_bit
=
0
,
.
clk
=
"tmu0"
,
.
clockevent_rating
=
200
,
};
...
...
@@ -546,7 +544,6 @@ static struct platform_device tmu0_device = {
static
struct
sh_timer_config
tmu1_platform_data
=
{
.
channel_offset
=
0x10
,
.
timer_bit
=
1
,
.
clk
=
"tmu0"
,
.
clocksource_rating
=
200
,
};
...
...
@@ -578,7 +575,6 @@ static struct platform_device tmu1_device = {
static
struct
sh_timer_config
tmu2_platform_data
=
{
.
channel_offset
=
0x1c
,
.
timer_bit
=
2
,
.
clk
=
"tmu0"
,
};
static
struct
resource
tmu2_resources
[]
=
{
...
...
@@ -610,7 +606,6 @@ static struct platform_device tmu2_device = {
static
struct
sh_timer_config
tmu3_platform_data
=
{
.
channel_offset
=
0x04
,
.
timer_bit
=
0
,
.
clk
=
"tmu1"
,
};
static
struct
resource
tmu3_resources
[]
=
{
...
...
@@ -641,7 +636,6 @@ static struct platform_device tmu3_device = {
static
struct
sh_timer_config
tmu4_platform_data
=
{
.
channel_offset
=
0x10
,
.
timer_bit
=
1
,
.
clk
=
"tmu1"
,
};
static
struct
resource
tmu4_resources
[]
=
{
...
...
@@ -672,7 +666,6 @@ static struct platform_device tmu4_device = {
static
struct
sh_timer_config
tmu5_platform_data
=
{
.
channel_offset
=
0x1c
,
.
timer_bit
=
2
,
.
clk
=
"tmu1"
,
};
static
struct
resource
tmu5_resources
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录