From dffceb4b15e4c5fd2487e625a08062a8120bd17f Mon Sep 17 00:00:00 2001 From: Vikas Manocha Date: Tue, 26 Jan 2016 18:12:20 -0800 Subject: 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 Reviewed-by: Simon Glass --- board/st/stm32f429-discovery/stm32f429-discovery.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/st/stm32f429-discovery/stm32f429-discovery.c') diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c index 8bc2d9e4c1..fb8475f65f 100644 --- a/board/st/stm32f429-discovery/stm32f429-discovery.c +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c @@ -19,6 +19,8 @@ #include #include #include +#include +#include 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; } -- cgit