diff --git a/drivers/clock_control/clock_stm32_ll_h7.c b/drivers/clock_control/clock_stm32_ll_h7.c index 42977c65a50..d06000fd1ef 100644 --- a/drivers/clock_control/clock_stm32_ll_h7.c +++ b/drivers/clock_control/clock_stm32_ll_h7.c @@ -1011,15 +1011,15 @@ int stm32_clock_control_init(const struct device *dev) /* Set up individual enabled clocks */ set_up_fixed_clock_sources(); + /* Configure Voltage scale to comply with the desired system frequency */ + prepare_regulator_voltage_scale(); + /* Set up PLLs */ r = set_up_plls(); if (r < 0) { return r; } - /* Configure Voltage scale to comply with the desired system frequency */ - prepare_regulator_voltage_scale(); - /* Current hclk value */ old_hclk_freq = get_hclk_frequency(); /* AHB is HCLK clock to configure */