Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a7ca9d2b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a7ca9d2b
编写于
6月 26, 2006
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: OMAP: Update cpufreq support for 24xx
Update cpufreq support for 24xx Signed-off-by:
N
Tony Lindgren
<
tony@atomide.com
>
上级
4bbbc1ad
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
6 deletion
+14
-6
arch/arm/Kconfig
arch/arm/Kconfig
+1
-1
arch/arm/plat-omap/cpu-omap.c
arch/arm/plat-omap/cpu-omap.c
+13
-5
未找到文件。
arch/arm/Kconfig
浏览文件 @
a7ca9d2b
...
...
@@ -669,7 +669,7 @@ config XIP_PHYS_ADDR
endmenu
if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP
1
)
if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP)
menu "CPU Frequency scaling"
...
...
arch/arm/plat-omap/cpu-omap.c
浏览文件 @
a7ca9d2b
...
...
@@ -25,6 +25,14 @@
#include <asm/io.h>
#include <asm/system.h>
#define VERY_HI_RATE 900000000
#ifdef CONFIG_ARCH_OMAP1
#define MPU_CLK "mpu"
#else
#define MPU_CLK "virt_prcm_set"
#endif
/* TODO: Add support for SDRAM timing changes */
int
omap_verify_speed
(
struct
cpufreq_policy
*
policy
)
...
...
@@ -36,7 +44,7 @@ int omap_verify_speed(struct cpufreq_policy *policy)
cpufreq_verify_within_limits
(
policy
,
policy
->
cpuinfo
.
min_freq
,
policy
->
cpuinfo
.
max_freq
);
mpu_clk
=
clk_get
(
NULL
,
"mpu"
);
mpu_clk
=
clk_get
(
NULL
,
MPU_CLK
);
if
(
IS_ERR
(
mpu_clk
))
return
PTR_ERR
(
mpu_clk
);
policy
->
min
=
clk_round_rate
(
mpu_clk
,
policy
->
min
*
1000
)
/
1000
;
...
...
@@ -56,7 +64,7 @@ unsigned int omap_getspeed(unsigned int cpu)
if
(
cpu
)
return
0
;
mpu_clk
=
clk_get
(
NULL
,
"mpu"
);
mpu_clk
=
clk_get
(
NULL
,
MPU_CLK
);
if
(
IS_ERR
(
mpu_clk
))
return
0
;
rate
=
clk_get_rate
(
mpu_clk
)
/
1000
;
...
...
@@ -73,7 +81,7 @@ static int omap_target(struct cpufreq_policy *policy,
struct
cpufreq_freqs
freqs
;
int
ret
=
0
;
mpu_clk
=
clk_get
(
NULL
,
"mpu"
);
mpu_clk
=
clk_get
(
NULL
,
MPU_CLK
);
if
(
IS_ERR
(
mpu_clk
))
return
PTR_ERR
(
mpu_clk
);
...
...
@@ -93,7 +101,7 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy)
{
struct
clk
*
mpu_clk
;
mpu_clk
=
clk_get
(
NULL
,
"mpu"
);
mpu_clk
=
clk_get
(
NULL
,
MPU_CLK
);
if
(
IS_ERR
(
mpu_clk
))
return
PTR_ERR
(
mpu_clk
);
...
...
@@ -102,7 +110,7 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy)
policy
->
cur
=
policy
->
min
=
policy
->
max
=
omap_getspeed
(
0
);
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
min_freq
=
clk_round_rate
(
mpu_clk
,
0
)
/
1000
;
policy
->
cpuinfo
.
max_freq
=
clk_round_rate
(
mpu_clk
,
216000000
)
/
1000
;
policy
->
cpuinfo
.
max_freq
=
clk_round_rate
(
mpu_clk
,
VERY_HI_RATE
)
/
1000
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
clk_put
(
mpu_clk
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录