Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
a5a8c31d
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看板
提交
a5a8c31d
编写于
2月 10, 2013
作者:
P
Paul Walmsley
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'sg_aess_reset_devel_3.9' and 'omap4_pm_fixes_a_3.9' into omap4_prcm_devel_a_3.9
上级
5cebb23c
cd19010c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
12 deletion
+29
-12
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm.c
+10
-10
arch/arm/mach-omap2/pm44xx.c
arch/arm/mach-omap2/pm44xx.c
+19
-2
未找到文件。
arch/arm/mach-omap2/pm.c
浏览文件 @
a5a8c31d
...
@@ -345,19 +345,19 @@ int __init omap2_common_pm_late_init(void)
...
@@ -345,19 +345,19 @@ int __init omap2_common_pm_late_init(void)
* a completely different mechanism.
* a completely different mechanism.
* Disable this part if a DT blob is available.
* Disable this part if a DT blob is available.
*/
*/
if
(
of_have_populated_dt
())
if
(
!
of_have_populated_dt
())
{
return
0
;
/* Init the voltage layer */
/* Init the voltage layer */
omap_pmic_late_init
();
omap_pmic_late_init
();
omap_voltage_late_init
();
omap_voltage_late_init
();
/* Initialize the voltages */
/* Initialize the voltages */
omap3_init_voltages
();
omap3_init_voltages
();
omap4_init_voltages
();
omap4_init_voltages
();
/* Smartreflex device init */
/* Smartreflex device init */
omap_devinit_smartreflex
();
omap_devinit_smartreflex
();
}
#ifdef CONFIG_SUSPEND
#ifdef CONFIG_SUSPEND
suspend_set_ops
(
&
omap_pm_ops
);
suspend_set_ops
(
&
omap_pm_ops
);
...
...
arch/arm/mach-omap2/pm44xx.c
浏览文件 @
a5a8c31d
...
@@ -77,10 +77,20 @@ static int omap4_pm_suspend(void)
...
@@ -77,10 +77,20 @@ static int omap4_pm_suspend(void)
omap_set_pwrdm_state
(
pwrst
->
pwrdm
,
pwrst
->
saved_state
);
omap_set_pwrdm_state
(
pwrst
->
pwrdm
,
pwrst
->
saved_state
);
pwrdm_set_logic_retst
(
pwrst
->
pwrdm
,
pwrst
->
saved_logic_state
);
pwrdm_set_logic_retst
(
pwrst
->
pwrdm
,
pwrst
->
saved_logic_state
);
}
}
if
(
ret
)
if
(
ret
)
{
pr_crit
(
"Could not enter target state in pm_suspend
\n
"
);
pr_crit
(
"Could not enter target state in pm_suspend
\n
"
);
else
/*
* OMAP4 chip PM currently works only with certain (newer)
* versions of bootloaders. This is due to missing code in the
* kernel to properly reset and initialize some devices.
* Warn the user about the bootloader version being one of the
* possible causes.
* http://www.spinics.net/lists/arm-kernel/msg218641.html
*/
pr_warn
(
"A possible cause could be an old bootloader - try u-boot >= v2012.07
\n
"
);
}
else
{
pr_info
(
"Successfully put all powerdomains to target state
\n
"
);
pr_info
(
"Successfully put all powerdomains to target state
\n
"
);
}
return
0
;
return
0
;
}
}
...
@@ -146,6 +156,13 @@ int __init omap4_pm_init(void)
...
@@ -146,6 +156,13 @@ int __init omap4_pm_init(void)
}
}
pr_err
(
"Power Management for TI OMAP4.
\n
"
);
pr_err
(
"Power Management for TI OMAP4.
\n
"
);
/*
* OMAP4 chip PM currently works only with certain (newer)
* versions of bootloaders. This is due to missing code in the
* kernel to properly reset and initialize some devices.
* http://www.spinics.net/lists/arm-kernel/msg218641.html
*/
pr_warn
(
"OMAP4 PM: u-boot >= v2012.07 is required for full PM support
\n
"
);
ret
=
pwrdm_for_each
(
pwrdms_setup
,
NULL
);
ret
=
pwrdm_for_each
(
pwrdms_setup
,
NULL
);
if
(
ret
)
{
if
(
ret
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录