Skip to content

Commit

Permalink
soc: nxp: rw: Update system core clock frequency
Browse files Browse the repository at this point in the history
After updating the main_clk, need to update the frequency tracked in
HAL MCUXpresso SDK framework for other drivers.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
(cherry picked from commit 793e44a)
  • Loading branch information
DerekSnell authored and mmahadevan108 committed Feb 26, 2025
1 parent a50476c commit 7eab725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soc/nxp/rw/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ __ramfunc void clock_init(void)
CLOCK_SetClkDiv(kCLOCK_DivSystickClk, 1U);
CLOCK_AttachClk(kSYSTICK_DIV_to_SYSTICK_CLK);

SystemCoreClockUpdate();

/* Set PLL FRG clock to 20MHz. */
CLOCK_SetClkDiv(kCLOCK_DivPllFrgClk, 13U);

Expand Down

0 comments on commit 7eab725

Please sign in to comment.