]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAP2+: PM: Fix the saving of CM_AUTOIDLE_PLL register on scratchpad area
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 13 Apr 2011 15:21:06 +0000 (18:21 +0300)
committerPaul Walmsley <paul@pwsan.com>
Wed, 20 Apr 2011 18:43:56 +0000 (12:43 -0600)
The saving of CCR.CM_AUTOIDLE_PLL is done in scratchpad area.

However, in current code, the saving is done for CM_AUTOIDLE2_PLL
(offset 0x34) instead of CM_AUTOIDLE_PLL (offset 0x30).

This patch changes the code to save the correct register.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/control.c

index 695279419020372cf16d2be18465734308d2c5c4..df0c75c31998631084ca3c85d62b3f14f5840017 100644 (file)
@@ -317,7 +317,7 @@ void omap3_save_scratchpad_contents(void)
        prcm_block_contents.cm_clken_pll =
                        omap2_cm_read_mod_reg(PLL_MOD, CM_CLKEN);
        prcm_block_contents.cm_autoidle_pll =
-                       omap2_cm_read_mod_reg(PLL_MOD, OMAP3430_CM_AUTOIDLE_PLL);
+                       omap2_cm_read_mod_reg(PLL_MOD, CM_AUTOIDLE);
        prcm_block_contents.cm_clksel1_pll =
                        omap2_cm_read_mod_reg(PLL_MOD, OMAP3430_CM_CLKSEL1_PLL);
        prcm_block_contents.cm_clksel2_pll =