summaryrefslogtreecommitdiffstats
path: root/board/st
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2016-01-26 18:12:20 -0800
committerTom Rini <trini@konsulko.com>2016-02-08 10:10:36 -0500
commitdffceb4b15e4c5fd2487e625a08062a8120bd17f (patch)
tree05a29103a2e5f7ae1b580d9b53cc75dcd9919d8c /board/st
parent334a994a3c09607bc0a8f746ee2bbda5eaec3ede (diff)
downloadblackbird-obmc-uboot-dffceb4b15e4c5fd2487e625a08062a8120bd17f.tar.gz
blackbird-obmc-uboot-dffceb4b15e4c5fd2487e625a08062a8120bd17f.zip
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>
Diffstat (limited to 'board/st')
-rw-r--r--board/st/stm32f429-discovery/stm32f429-discovery.c3
1 files changed, 3 insertions, 0 deletions
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 <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;
}
OpenPOWER on IntegriCloud