]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170508 Need to zero REG_BYPASS_CNT on exit from STOP mode
authorMahesh Mahadevan <r9aadq@freescale.com>
Fri, 16 Dec 2011 12:39:38 +0000 (06:39 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:40 +0000 (08:33 +0200)
Per e-mail from design team, the count needs to be zeroed and
reconfigured on exit from low power mode

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
arch/arm/mach-mx6/pm.c

index bdf337144554da259e9bb747df9cb5e5393e7433..381cc1d7a573474a9cbdaf90c51a1597225565d9 100644 (file)
@@ -161,6 +161,10 @@ static void mx6_suspend_restore(void)
        /* restore settings after suspend */
        __raw_writel(anatop[0], anatop_base + ANATOP_REG_2P5_OFFSET);
        __raw_writel(anatop[1], anatop_base + ANATOP_REG_CORE_OFFSET);
+       /* Per spec, the count needs to be zeroed and reconfigured on exit from
+        * low power mode
+        */
+       __raw_writel(ccm_ccr & ~MXC_CCM_CCR_REG_BYPASS_CNT_MASK, MXC_CCM_CCR);
        udelay(50);
        __raw_writel(ccm_ccr, MXC_CCM_CCR);
        __raw_writel(ccm_clpcr, MXC_CCM_CLPCR);