stm32: pll: disable before configuring

This commit is contained in:
Alfred Klomp
2018-11-09 18:51:57 +01:00
parent 8b13977ea0
commit f0e5c73d98
4 changed files with 16 additions and 0 deletions

View File

@@ -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);