diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2016-01-27 02:12:20 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-08 15:10:36 (GMT) |
commit | dffceb4b15e4c5fd2487e625a08062a8120bd17f (patch) | |
tree | 05a29103a2e5f7ae1b580d9b53cc75dcd9919d8c /board/st/stm32f429-discovery/stm32f429-discovery.c | |
parent | 334a994a3c09607bc0a8f746ee2bbda5eaec3ede (diff) | |
download | u-boot-fsl-qoriq-dffceb4b15e4c5fd2487e625a08062a8120bd17f.tar.xz |
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/stm32f429-discovery/stm32f429-discovery.c')
-rw-r--r-- | board/st/stm32f429-discovery/stm32f429-discovery.c | 3 |
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 8bc2d9e..fb8475f 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; } |