aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2009-04-27 19:14:54 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-05 12:10:52 -0400
commit3a07ae30a0bfa93ff2b242acf670c6d8e2de35de (patch)
tree74dec3a1819d60c247c1ca588b420263528434cc /arch/arm/mach-omap2
parent3a6667acf916b3e32be4682196882fc2ed0ec23e (diff)
OMAP3: PM: Clear pending PRCM reset flags on init
Any pending reset flags can prevent retention. Ensure they are all cleared during boot. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/pm34xx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index cc83dfc39a8b..1422e931f57f 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -613,6 +613,15 @@ static void __init prcm_setup_regs(void)
613 /* Clear any pending PRCM interrupts */ 613 /* Clear any pending PRCM interrupts */
614 prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); 614 prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET);
615 615
616 /* Clear any pending 'reset' flags */
617 prm_write_mod_reg(0xffffffff, MPU_MOD, RM_RSTST);
618 prm_write_mod_reg(0xffffffff, CORE_MOD, RM_RSTST);
619 prm_write_mod_reg(0xffffffff, OMAP3430_PER_MOD, RM_RSTST);
620 prm_write_mod_reg(0xffffffff, OMAP3430_EMU_MOD, RM_RSTST);
621 prm_write_mod_reg(0xffffffff, OMAP3430_NEON_MOD, RM_RSTST);
622 prm_write_mod_reg(0xffffffff, OMAP3430_DSS_MOD, RM_RSTST);
623 prm_write_mod_reg(0xffffffff, OMAP3430ES2_USBHOST_MOD, RM_RSTST);
624
616 /* Clear any pending PRCM interrupts */ 625 /* Clear any pending PRCM interrupts */
617 prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); 626 prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET);
618 627