arch: imxrt: Set the low power mode to 'remain in run mode'

NOTE: now imxrt can wake up from wfi
This commit is contained in:
Masayuki Ishikawa 2020-05-26 21:29:01 +09:00 committed by Alin Jerpelea
parent 6a9b3de0bb
commit 8dda796e6a
1 changed files with 6 additions and 0 deletions

View File

@ -678,5 +678,11 @@ void imxrt_clockconfig(void)
reg = getreg32(IMXRT_CCM_CGPR); reg = getreg32(IMXRT_CCM_CGPR);
reg |= CCM_CGPR_INT_MEM_CLK_LPM; reg |= CCM_CGPR_INT_MEM_CLK_LPM;
putreg32(reg, IMXRT_CCM_CGPR); putreg32(reg, IMXRT_CCM_CGPR);
/* Remain in run mode */
modifyreg32(IMXRT_CCM_CLPCR,
CCM_CLPCR_LPM_MASK,
CCM_CLPCR_LPM_RUN);
#endif #endif
} }