drivers: clock_control: siwx91x: Fix clock init

New versions of the Wiseconnect HAL require a clock manager init
function to be called as part of clock configuration.

Without this, the default reference clock isn't configured correctly
for use with peripherals.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
Aksel Skauge Mellbye 2025-06-05 13:30:53 +02:00 committed by Benjamin Cabé
commit 837b0d303a

View file

@ -239,6 +239,8 @@ static int siwx91x_clock_init(const struct device *dev)
{ {
SystemCoreClockUpdate(); SystemCoreClockUpdate();
sl_si91x_clock_manager_init();
/* Use SoC PLL at configured frequency as core clock */ /* Use SoC PLL at configured frequency as core clock */
sl_si91x_clock_manager_m4_set_core_clk(M4_SOCPLLCLK, CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC); sl_si91x_clock_manager_m4_set_core_clk(M4_SOCPLLCLK, CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);