Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
72e27c14
Commit
72e27c14
authored
Nov 25, 2008
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OMAP3: PM: Force IVA2 into idle during bootup
Signed-off-by:
Kevin Hilman
<
khilman@deeprootsystems.com
>
parent
67268006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/pm34xx.c
+46
-0
arch/arm/plat-omap/include/mach/control.h
arch/arm/plat-omap/include/mach/control.h
+5
-0
No files found.
arch/arm/mach-omap2/pm34xx.c
View file @
72e27c14
...
...
@@ -30,6 +30,7 @@
#include <mach/clockdomain.h>
#include <mach/powerdomain.h>
#include <mach/serial.h>
#include <mach/control.h>
#include "cm.h"
#include "cm-regbits-34xx.h"
...
...
@@ -378,6 +379,49 @@ 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
);
/* 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
)
{
/* XXX Reset all wkdeps. This should be done when initializing
...
...
@@ -531,6 +575,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
,
OMAP2_PRM_IRQENABLE_MPU_OFFSET
);
omap3_iva_idle
();
}
static
int
__init
pwrdms_setup
(
struct
powerdomain
*
pwrdm
)
...
...
arch/arm/plat-omap/include/mach/control.h
View file @
72e27c14
...
...
@@ -212,6 +212,11 @@
#define OMAP3_PADCONF_WAKEUPEVENT0 (1 << 15)
#define OMAP3_PADCONF_WAKEUPENABLE0 (1 << 14)
/* 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment