Skip to content

Commit 0456661

Browse files
[nrf fromlist] drivers: clock_control: global_hsfll: add custom init level
Add custom init level for global hsfll which has to send an IPC message at init, so it has to be very late compared to other clock drivers. Upstream PR #: 81735 Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 0f2b574 commit 0456661

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/clock_control/Kconfig.nrf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ config CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_REQ_LOW_FREQ
218218
unnecessary HIGH -> LOW -> HIGH cycle given some module will
219219
request a HIGH frequency on init anyway.
220220

221+
config CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_INIT_PRIORITY
222+
int "Init priority of global HSFLL device driver"
223+
default 52
224+
help
225+
Must be higher than NRFS backend
226+
221227
endif # CLOCK_CONTROL_NRF2_GLOBAL_HSFLL
222228

223229
endif # CLOCK_CONTROL_NRF2

drivers/clock_control/clock_control_nrf2_global_hsfll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,6 @@ DEVICE_DT_INST_DEFINE(
297297
&driver_data,
298298
&driver_config,
299299
POST_KERNEL,
300-
CONFIG_CLOCK_CONTROL_INIT_PRIORITY,
300+
CONFIG_CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_INIT_PRIORITY,
301301
&driver_api
302302
);

0 commit comments

Comments
 (0)