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:
parent
6a9b3de0bb
commit
8dda796e6a
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue