serial: serial_stm32: move clock config from driver to board
This patch removes the uart clock enable from serial driver & move it in the board code. Signed-off-by: Vikas Manocha <vikas.manocha@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#include <asm/arch/fmc.h>
|
||||
#include <dm/platdata.h>
|
||||
#include <dm/platform_data/serial_stm32.h>
|
||||
#include <asm/arch/stm32_periph.h>
|
||||
#include <asm/arch/stm32_defs.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
@@ -286,6 +288,7 @@ int board_early_init_f(void)
|
||||
res = uart_setup_gpio();
|
||||
if (res)
|
||||
return res;
|
||||
clock_setup(USART1_CLOCK_CFG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user