OMAP3: PM: prevent module wakeups from waking IVA2
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 5 May 2009 23:34:25 +0000 (16:34 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 17:59:10 +0000 (10:59 -0700)
By default, prevent functional wakeups from inside a module from
waking up the IVA2.  Let DSP Bridge code handle this when loaded.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/prm.h

index 8b8a2dd..841d4c5 100644 (file)
@@ -595,6 +595,12 @@ static void __init prcm_setup_regs(void)
        prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN,
                          OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET);
 
+       /* Don't attach IVA interrupts */
+       prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL);
+       prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1);
+       prm_write_mod_reg(0, CORE_MOD, OMAP3430ES2_PM_IVAGRPSEL3);
+       prm_write_mod_reg(0, OMAP3430_PER_MOD, OMAP3430_PM_IVAGRPSEL);
+
        /* Clear any pending 'reset' flags */
        prm_write_mod_reg(0xffffffff, MPU_MOD, RM_RSTST);
        prm_write_mod_reg(0xffffffff, CORE_MOD, RM_RSTST);
index 7c8e0c4..9937e28 100644 (file)
 
 #define OMAP3430_PM_MPUGRPSEL                          0x00a4
 #define OMAP3430_PM_MPUGRPSEL1                         OMAP3430_PM_MPUGRPSEL
+#define OMAP3430ES2_PM_MPUGRPSEL3                      0x00f8
 
 #define OMAP3430_PM_IVAGRPSEL                          0x00a8
 #define OMAP3430_PM_IVAGRPSEL1                         OMAP3430_PM_IVAGRPSEL
+#define OMAP3430ES2_PM_IVAGRPSEL3                      0x00f4
 
 #define OMAP3430_PM_PREPWSTST                          0x00e8