Commit 3f61150d authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Carles Cufi
Browse files

drivers: clock_control: stm32wba: set regu voltage after clk configuration



Call to set_regu_voltage() is required also after the clock configuration
has been performed.


Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@st.com>
parent 79599a15
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -551,6 +551,9 @@ int stm32_clock_control_init(const struct device *dev)
		LL_SetFlashLatency(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
	}

	/* Set voltage regulator to comply with targeted system frequency */
	set_regu_voltage(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);

	SystemCoreClock = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;

	/* Set bus prescalers prescaler */