stm32: pll: disable before configuring
This commit is contained in:
@@ -535,6 +535,10 @@ void rcc_clock_setup_pll(const struct rcc_clock_scale *clock)
|
||||
flash_prefetch_enable();
|
||||
flash_set_ws(clock->flash_waitstates);
|
||||
|
||||
/* Disable PLL oscillator before changing its configuration. */
|
||||
rcc_osc_off(RCC_PLL);
|
||||
|
||||
/* Configure the PLL oscillator. */
|
||||
rcc_set_pll_configuration(clock->pll_source, clock->pll_mul,
|
||||
clock->pll_div);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user