Skip to content
Snippets Groups Projects
Commit b5be8f5e authored by Vikas Manocha's avatar Vikas Manocha Committed by Tom Rini
Browse files

stm32f7: clk: remove usart1 clock enable from board init


Before clock driver availability it was required to enable usart1 clock
for serial init but now with clock driver is taking care of usart1 clock.

Signed-off-by: default avatarVikas Manocha <vikas.manocha@st.com>
parent 84bfdc17
No related branches found
No related tags found
No related merge requests found
......@@ -380,7 +380,6 @@ int board_early_init_f(void)
int res;
res = uart_setup_gpio();
clock_setup(USART1_CLOCK_CFG);
if (res)
return res;
......
......@@ -228,9 +228,6 @@ static int stm32_clk_enable(struct clk *clk)
void clock_setup(int peripheral)
{
switch (peripheral) {
case USART1_CLOCK_CFG:
setbits_le32(&STM32_RCC->apb2enr, RCC_APB2ENR_USART1EN);
break;
case GPIO_A_CLOCK_CFG:
setbits_le32(&STM32_RCC->ahb1enr, RCC_AHB1ENR_GPIO_A_EN);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment