Skip to content

Commit 38ef939

Browse files
committed
[nrf noup] boot: zephyr: nrf_cleanup HFCLK
turn off PLL and HFXO at cleanup Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
1 parent b709feb commit 38ef939

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

boot/zephyr/nrf_cleanup.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ static NRF_UARTE_Type *nrf_uarte_to_clean[] = {
116116
#if defined(CONFIG_NRFX_CLOCK)
117117
static void nrf_cleanup_clock(void)
118118
{
119+
nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_HFCLKSTOP);
120+
#if NRF_CLOCK_HAS_PLL
121+
nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_PLLSTOP);
122+
#endif
119123
nrf_clock_int_disable(NRF_CLOCK, 0xFFFFFFFF);
120124
}
121125
#endif

0 commit comments

Comments
 (0)