File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -501,11 +501,15 @@ static int sys_clock_driver_init(void)
501501 z_nrf_clock_control_lf_on (mode );
502502#endif
503503
504- #if defined(CONFIG_NRF_GRTC_TIMER_CLOCK_MANAGEMENT ) && \
505- DT_NODE_HAS_STATUS (DT_NODELABEL (lfxo ), okay ) && NRF_GRTC_HAS_CLKSEL
504+ #if defined(CONFIG_NRF_GRTC_TIMER_CLOCK_MANAGEMENT ) && NRF_GRTC_HAS_CLKSEL
505+ #if defined(CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC )
506+ /* Switch to LFPRC as the low-frequency clock source. */
507+ nrfx_grtc_clock_source_set (NRF_GRTC_CLKSEL_LFLPRC );
508+ #elif DT_NODE_HAS_STATUS (DT_NODELABEL (lfxo ), okay )
506509 /* Switch to LFXO as the low-frequency clock source. */
507510 nrfx_grtc_clock_source_set (NRF_GRTC_CLKSEL_LFXO );
508511#endif
512+ #endif
509513
510514#if defined(CONFIG_NRF_GRTC_ALWAYS_ON )
511515 nrfx_grtc_active_request_set (true);
You can’t perform that action at this time.
0 commit comments