aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/prcm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c
index 56f77df1ffac..221eed11b73f 100644
--- a/arch/arm/mach-omap2/prcm.c
+++ b/arch/arm/mach-omap2/prcm.c
@@ -39,6 +39,7 @@ static void __iomem *cm_base;
39 39
40struct omap3_prcm_regs { 40struct omap3_prcm_regs {
41 u32 control_padconf_sys_nirq; 41 u32 control_padconf_sys_nirq;
42 u32 iva2_cm_clksel1;
42 u32 iva2_cm_clksel2; 43 u32 iva2_cm_clksel2;
43 u32 cm_sysconfig; 44 u32 cm_sysconfig;
44 u32 sgx_cm_clksel; 45 u32 sgx_cm_clksel;
@@ -262,6 +263,8 @@ void omap3_prcm_save_context(void)
262{ 263{
263 prcm_context.control_padconf_sys_nirq = 264 prcm_context.control_padconf_sys_nirq =
264 omap_ctrl_readl(OMAP343X_CONTROL_PADCONF_SYSNIRQ); 265 omap_ctrl_readl(OMAP343X_CONTROL_PADCONF_SYSNIRQ);
266 prcm_context.iva2_cm_clksel1 =
267 cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_CLKSEL1);
265 prcm_context.iva2_cm_clksel2 = 268 prcm_context.iva2_cm_clksel2 =
266 cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_CLKSEL2); 269 cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_CLKSEL2);
267 prcm_context.cm_sysconfig = __raw_readl(OMAP3430_CM_SYSCONFIG); 270 prcm_context.cm_sysconfig = __raw_readl(OMAP3430_CM_SYSCONFIG);
@@ -417,6 +420,8 @@ void omap3_prcm_restore_context(void)
417{ 420{
418 omap_ctrl_writel(prcm_context.control_padconf_sys_nirq, 421 omap_ctrl_writel(prcm_context.control_padconf_sys_nirq,
419 OMAP343X_CONTROL_PADCONF_SYSNIRQ); 422 OMAP343X_CONTROL_PADCONF_SYSNIRQ);
423 cm_write_mod_reg(prcm_context.iva2_cm_clksel1, OMAP3430_IVA2_MOD,
424 CM_CLKSEL1);
420 cm_write_mod_reg(prcm_context.iva2_cm_clksel2, OMAP3430_IVA2_MOD, 425 cm_write_mod_reg(prcm_context.iva2_cm_clksel2, OMAP3430_IVA2_MOD,
421 CM_CLKSEL2); 426 CM_CLKSEL2);
422 __raw_writel(prcm_context.cm_sysconfig, OMAP3430_CM_SYSCONFIG); 427 __raw_writel(prcm_context.cm_sysconfig, OMAP3430_CM_SYSCONFIG);