arch/arm/stm32: fix stm32g4 enable pll code.

In the file stm32g474xxxx_rcc.c, the enable PLL
code, according to the intent of the comment,
wants to keep the reserved bit, but the code
clears the reserved bit.

Signed-off-by: jerryslhao <jerryslhao@gmail.com>
This commit is contained in:
jerryslhao 2025-01-08 09:50:22 +08:00 committed by Xiang Xiao
parent fabf4a5142
commit 1bcaacd5cc

View file

@ -702,7 +702,7 @@ static inline bool stm32_rcc_enablepll(void)
/* Preserve reserved bits when altering the PLLCFGR register */
regval = getreg32(STM32_RCC_PLLCFGR);
regval &= ~(RCC_PLLCFGR_RESERVED_MASK);
regval &= RCC_PLLCFGR_RESERVED_MASK;
/* Configure PLL source and enables */