diff options
author | Biwen Li <biwen.li@nxp.com> | 2019-10-21 12:23:30 +0530 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2019-10-21 15:34:18 +0530 |
commit | d20f184ce3a012ab2c0abe4792bc130c238fa5b0 (patch) | |
tree | 2f4f8b3ac5169fea6b38c269d0df04f8775a63b5 /arch | |
parent | 1936841b11759957f78ed1c30e9d728aa9bb6c0c (diff) | |
download | u-boot-d20f184ce3a012ab2c0abe4792bc130c238fa5b0.zip u-boot-d20f184ce3a012ab2c0abe4792bc130c238fa5b0.tar.gz u-boot-d20f184ce3a012ab2c0abe4792bc130c238fa5b0.tar.bz2 |
armv7: ls102xa: Don't power down OCRAM1 during deep sleep
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c index 86693ed..df64f54 100644 --- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c +++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c @@ -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 | |