Skip to content

Commit 9650d8b

Browse files
committed
[nrf fromtree] soc: nordic: nrf54l: Set SystemCoreClock using frequency from DT
Use cpu clock source frequency as system core clock. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit df32919)
1 parent 34963bf commit 9650d8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

soc/nordic/nrf54l/soc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include <nrf_erratas.h>
3434
#include <system_nrf54l.h>
35+
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
3536

3637
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
3738

@@ -43,9 +44,9 @@ LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
4344
static int nordicsemi_nrf54l_init(void)
4445
{
4546
/* Update the SystemCoreClock global variable with current core clock
46-
* retrieved from hardware state.
47+
* retrieved from the DT.
4748
*/
48-
SystemCoreClockUpdate();
49+
SystemCoreClock = NRF_PERIPH_GET_FREQUENCY(DT_NODELABEL(cpu));
4950

5051
#if defined(NRF_APPLICATION)
5152
/* Enable ICACHE */

0 commit comments

Comments
 (0)