stm32h7x7xx: Setup UART1 and UART6 clocks as part of APB2 bringup if enabled.

This commit is contained in:
Anthony Merlino 2021-03-07 22:10:13 -05:00 committed by Xiang Xiao
parent 3705202b85
commit 892b6393e3

View File

@ -492,6 +492,18 @@ static inline void rcc_enableapb2(void)
regval |= RCC_APB2ENR_SDMMC2EN;
#endif
#ifdef CONFIG_STM32H7_USART1
/* USART1 clock enable */
regval |= RCC_APB2ENR_USART1EN;
#endif
#ifdef CONFIG_STM32H7_USART6
/* USART1 clock enable */
regval |= RCC_APB2ENR_USART6EN;
#endif
putreg32(regval, STM32_RCC_APB2ENR); /* Enable peripherals */
}