Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
1155e426
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看板
提交
1155e426
编写于
11月 25, 2008
作者:
K
Kevin Hilman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OMAP3: PM: Force IVA2 into idle during bootup
Signed-off-by:
N
Kevin Hilman
<
khilman@deeprootsystems.com
>
上级
94434535
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
55 addition
and
0 deletion
+55
-0
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/pm34xx.c
+50
-0
arch/arm/plat-omap/include/mach/control.h
arch/arm/plat-omap/include/mach/control.h
+5
-0
未找到文件。
arch/arm/mach-omap2/pm34xx.c
浏览文件 @
1155e426
...
...
@@ -352,6 +352,54 @@ static struct platform_suspend_ops omap_pm_ops = {
.
valid
=
suspend_valid_only_mem
,
};
/**
* omap3_iva_idle(): ensure IVA is in idle so it can be put into
* retention
*
* In cases where IVA2 is activated by bootcode, it may prevent
* full-chip retention or off-mode because it is not idle. This
* function forces the IVA2 into idle state so it can go
* into retention/off and thus allow full-chip retention/off.
*
**/
static
void
__init
omap3_iva_idle
(
void
)
{
/* ensure IVA2 clock is disabled */
cm_write_mod_reg
(
0
,
OMAP3430_IVA2_MOD
,
CM_FCLKEN
);
/* if no clock activity, nothing else to do */
if
(
!
(
cm_read_mod_reg
(
OMAP3430_IVA2_MOD
,
OMAP3430_CM_CLKSTST
)
&
OMAP3430_CLKACTIVITY_IVA2_MASK
))
return
;
/* Reset IVA2 */
prm_write_mod_reg
(
OMAP3430_RST1_IVA2
|
OMAP3430_RST2_IVA2
|
OMAP3430_RST3_IVA2
,
OMAP3430_IVA2_MOD
,
RM_RSTCTRL
);
/* Enable IVA2 clock */
cm_write_mod_reg
(
OMAP3430_CM_FCLKEN_IVA2_EN_IVA2
,
OMAP3430_IVA2_MOD
,
CM_FCLKEN
);
/* Set IVA2 boot mode to 'idle' */
omap_ctrl_writel
(
OMAP3_IVA2_BOOTMOD_IDLE
,
OMAP343X_CONTROL_IVA2_BOOTMOD
);
/* Un-reset IVA2 */
prm_write_mod_reg
(
0
,
OMAP3430_IVA2_MOD
,
RM_RSTCTRL
);
/* Disable IVA2 clock */
cm_write_mod_reg
(
0
,
OMAP3430_IVA2_MOD
,
CM_FCLKEN
);
/* Reset IVA2 */
prm_write_mod_reg
(
OMAP3430_RST1_IVA2
|
OMAP3430_RST2_IVA2
|
OMAP3430_RST3_IVA2
,
OMAP3430_IVA2_MOD
,
RM_RSTCTRL
);
}
static
void
__init
prcm_setup_regs
(
void
)
{
/* reset modem */
...
...
@@ -511,6 +559,8 @@ static void __init prcm_setup_regs(void)
* it is selected to mpu wakeup goup */
prm_write_mod_reg
(
OMAP3430_IO_EN
|
OMAP3430_WKUP_EN
,
OCP_MOD
,
OMAP3_PRM_IRQENABLE_MPU_OFFSET
);
omap3_iva_idle
();
}
static
int
__init
pwrdms_setup
(
struct
powerdomain
*
pwrdm
)
...
...
arch/arm/plat-omap/include/mach/control.h
浏览文件 @
1155e426
...
...
@@ -189,6 +189,11 @@
#define OMAP2_PBIASLITEPWRDNZ0 (1 << 1)
#define OMAP2_PBIASLITEVMODE0 (1 << 0)
/* CONTROL_IVA2_BOOTMOD bits */
#define OMAP3_IVA2_BOOTMOD_SHIFT 0
#define OMAP3_IVA2_BOOTMOD_MASK (0xf << 0)
#define OMAP3_IVA2_BOOTMOD_IDLE (0x1 << 0)
#ifndef __ASSEMBLY__
#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
extern
void
__iomem
*
omap_ctrl_base_get
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录