We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b77ec commit 08656d6Copy full SHA for 08656d6
drivers/timer/nrf_grtc_timer.c
@@ -517,6 +517,11 @@ static int sys_clock_driver_init(void)
517
system_timeout_set_relative(CYC_PER_TICK);
518
}
519
520
+ return 0;
521
+}
522
+
523
+static int grtc_post_init(void)
524
+{
525
#if defined(CONFIG_CLOCK_CONTROL_NRF)
526
static const enum nrf_lfclk_start_mode mode =
527
IS_ENABLED(CONFIG_SYSTEM_CLOCK_NO_WAIT)
@@ -590,5 +595,6 @@ int nrf_grtc_timer_clock_driver_init(void)
590
595
return sys_clock_driver_init();
591
596
592
597
#else
593
-SYS_INIT(sys_clock_driver_init, PRE_KERNEL_2, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
598
+SYS_INIT(sys_clock_driver_init, EARLY, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
599
+SYS_INIT(grtc_post_init, PRE_KERNEL_2, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
594
600
#endif
0 commit comments