Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
658ce97e
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
658ce97e
编写于
11月 04, 2008
作者:
K
Kevin Hilman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OMAP3: PM: decouple PER and CORE context save and restore
Signed-off-by:
N
Kevin Hilman
<
khilman@deeprootsystems.com
>
上级
d7814e4d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
29 addition
and
22 deletion
+29
-22
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/pm34xx.c
+29
-22
未找到文件。
arch/arm/mach-omap2/pm34xx.c
浏览文件 @
658ce97e
...
...
@@ -338,19 +338,20 @@ static void omap_sram_idle(void)
if
(
pwrdm_read_pwrst
(
neon_pwrdm
)
==
PWRDM_POWER_ON
)
set_pwrdm_state
(
neon_pwrdm
,
mpu_next_state
);
/* CORE & PER */
/* PER */
per_next_state
=
pwrdm_read_next_pwrst
(
per_pwrdm
);
if
(
per_next_state
<
PWRDM_POWER_ON
)
{
omap2_gpio_prepare_for_retention
();
omap_uart_prepare_idle
(
2
);
if
(
per_next_state
==
PWRDM_POWER_OFF
)
omap3_per_save_context
();
}
/* CORE */
core_next_state
=
pwrdm_read_next_pwrst
(
core_pwrdm
);
if
(
core_next_state
<
PWRDM_POWER_ON
)
{
omap2_gpio_prepare_for_retention
();
omap_uart_prepare_idle
(
0
);
omap_uart_prepare_idle
(
1
);
/* PER changes only with core */
per_next_state
=
pwrdm_read_next_pwrst
(
per_pwrdm
);
if
(
per_next_state
<
PWRDM_POWER_ON
)
{
omap_uart_prepare_idle
(
2
);
if
(
per_next_state
==
PWRDM_POWER_OFF
)
omap3_per_save_context
();
}
if
(
core_next_state
==
PWRDM_POWER_OFF
)
{
omap3_core_save_context
();
omap3_prcm_save_context
();
...
...
@@ -392,14 +393,8 @@ static void omap_sram_idle(void)
if
(
pwrdm_read_prev_pwrst
(
mpu_pwrdm
)
==
PWRDM_POWER_OFF
)
restore_table_entry
();
/* CORE */
if
(
core_next_state
<
PWRDM_POWER_ON
)
{
if
(
per_next_state
<
PWRDM_POWER_ON
)
omap_uart_resume_idle
(
2
);
omap_uart_resume_idle
(
1
);
omap_uart_resume_idle
(
0
);
/* Disable IO-PAD wakeup */
prm_clear_mod_reg_bits
(
OMAP3430_EN_IO
,
WKUP_MOD
,
PM_WKEN
);
core_prev_state
=
pwrdm_read_prev_pwrst
(
core_pwrdm
);
if
(
core_prev_state
==
PWRDM_POWER_OFF
)
{
omap3_core_restore_context
();
...
...
@@ -407,15 +402,27 @@ static void omap_sram_idle(void)
omap3_sram_restore_context
();
omap2_sms_restore_context
();
}
if
(
per_next_state
<
PWRDM_POWER_ON
)
{
per_prev_state
=
pwrdm_read_prev_pwrst
(
per_pwrdm
);
if
(
per_prev_state
==
PWRDM_POWER_OFF
)
omap3_per_restore_context
();
}
omap_uart_resume_idle
(
0
);
omap_uart_resume_idle
(
1
);
if
(
core_next_state
==
PWRDM_POWER_OFF
)
prm_clear_mod_reg_bits
(
OMAP3430_AUTO_OFF
,
OMAP3430_GR_MOD
,
OMAP3_PRM_VOLTCTRL_OFFSET
);
}
/* PER */
if
(
per_next_state
<
PWRDM_POWER_ON
)
{
per_prev_state
=
pwrdm_read_prev_pwrst
(
per_pwrdm
);
omap_uart_resume_idle
(
2
);
if
(
per_prev_state
==
PWRDM_POWER_OFF
)
omap3_per_restore_context
();
omap2_gpio_resume_after_retention
();
}
/* Disable IO-PAD wakeup */
if
(
core_next_state
<
PWRDM_POWER_ON
)
prm_clear_mod_reg_bits
(
OMAP3430_EN_IO
,
WKUP_MOD
,
PM_WKEN
);
pwrdm_post_transition
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录