Skip to content

Commit a354b4a

Browse files
committed
[nrf fromlist] drivers: clock_control: Compatibility patch for nrfx HFCLK separation.
Added compatibility patch for nrfx HFCLK separation. Upstream PR #: 98417 Signed-off-by: Michal Frankiewicz <[email protected]>
1 parent 019e3de commit a354b4a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/clock_control/clock_control_nrf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static void hfclk_start(void)
316316
hf_start_tstamp = k_uptime_get();
317317
}
318318

319-
nrfx_clock_hfclk_start();
319+
nrfx_clock_start(NRF_CLOCK_DOMAIN_HFCLK);
320320
}
321321

322322
static void hfclk_stop(void)
@@ -325,7 +325,7 @@ static void hfclk_stop(void)
325325
hf_stop_tstamp = k_uptime_get();
326326
}
327327

328-
nrfx_clock_hfclk_stop();
328+
nrfx_clock_stop(NRF_CLOCK_DOMAIN_HFCLK);
329329
}
330330

331331
#if NRF_CLOCK_HAS_HFCLK24M

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_PRS ${SRC_DIR}/prs/nrfx_prs.c)
133133

134134
zephyr_library_sources_ifdef(CONFIG_NRFX_ADC ${SRC_DIR}/nrfx_adc.c)
135135
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock.c)
136+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_hfclk.c)
136137
zephyr_library_sources_ifdef(CONFIG_NRFX_COMP ${SRC_DIR}/nrfx_comp.c)
137138
zephyr_library_sources_ifdef(CONFIG_NRFX_CRACEN ${SRC_DIR}/nrfx_cracen.c)
138139
zephyr_library_sources_ifdef(CONFIG_NRFX_DPPI ${SRC_DIR}/nrfx_dppi.c)

0 commit comments

Comments
 (0)