stm32/powerctrl: Reenable PLL3 on H7 MCUs when waking from stop mode.

So that USB can work.
pull/5598/head
Damien George 2020-01-31 23:23:56 +11:00
rodzic 2c8c2b935e
commit af88e70414
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -504,6 +504,13 @@ void powerctrl_enter_stop_mode(void) {
}
#endif
#if defined(STM32H7)
// Enable PLL3 for USB
RCC->CR |= RCC_CR_PLL3ON;
while (!(RCC->CR & RCC_CR_PLL3RDY)) {
}
#endif
#if defined(STM32L4)
// Enable PLLSAI1 for peripherals that use it
RCC->CR |= RCC_CR_PLLSAI1ON;