drivers/clock_control: stm32_common: Fixed PLL configuration

-Kept getting an error on STM32g0xx chips that didn't have q-divisor.
-Changed to set prescaler only if it's being used.

Signed-off-by: Dan Higginbotham <daniel@dedesignworks.com>
This commit is contained in:
Dan Higginbotham 2022-06-15 08:57:28 -05:00 committed by Maureen Helm
commit 922e83ecf9

View file

@ -391,7 +391,7 @@ static void set_up_plls(void)
}
#endif
#if STM32_PLL_Q_DIVISOR
#if STM32_PLL_Q_ENABLED
MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLQ,
STM32_PLL_Q_DIVISOR
<< RCC_PLLCFGR_PLLQ_Pos);