Skip to content

Commit 2be724d

Browse files
yangbolu1991kartben
authored andcommitted
soc: nxp: imxrt118x: keep AHB clock running when CM7 is sleeping
Keep AHB clock running when CM7 is sleeping and TCM is accessible. Otherwise, NETC transmission will fail. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
1 parent 0970aa2 commit 2be724d

File tree

1 file changed

+3
-0
lines changed
  • soc/nxp/imxrt/imxrt118x

1 file changed

+3
-0
lines changed

soc/nxp/imxrt/imxrt118x/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ __weak void clock_init(void)
641641
/* Let the core clock still running in WAIT mode */
642642
BLK_CTRL_S_AONMIX->M7_CFG |= BLK_CTRL_S_AONMIX_M7_CFG_CORECLK_FORCE_ON_MASK;
643643

644+
/* Make AHB clock run (enabled) when CM7 is sleeping and TCM is accessible */
645+
BLK_CTRL_S_AONMIX->M7_CFG |= BLK_CTRL_S_AONMIX_M7_CFG_HCLK_FORCE_ON_MASK;
646+
644647
/* Keep the system clock running so SYSTICK can wake up
645648
* the system from wfi.
646649
*/

0 commit comments

Comments
 (0)