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:
parent
bd0f5f9816
commit
922e83ecf9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue