armv7: ls102xa: Don't power down OCRAM1 during deep sleep
authorBiwen Li <biwen.li@nxp.com>
Mon, 21 Oct 2019 06:53:30 +0000 (12:23 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 21 Oct 2019 10:04:18 +0000 (15:34 +0530)
To allow OCRAM to be used as wakeup source in
deep sleep, do not power it down.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c

index 86693edf5d10f68d3178a568bca37f909e208026..df64f5415a588b06b2cc35aa2456393c79803ba7 100644 (file)
@@ -74,7 +74,12 @@ static void __secure ls1_deepsleep_irq_cfg(void)
         * is first saved to a spare register and then read from it
         */
        ippdexpcr1 = in_be32(&scfg->sparecr[7]);
-       out_be32(&rcpm->ippdexpcr1, ippdexpcr1);
+
+       /*
+        * To allow OCRAM to be used as wakeup source in deep sleep,
+        * do not power it down.
+        */
+       out_be32(&rcpm->ippdexpcr1, ippdexpcr1 | RCPM_IPPDEXPCR1_OCRAM1);
 
        if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)
                pmcintecr |= SCFG_PMCINTECR_ETSECRXG0 |