diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-07-10 20:40:47 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-07-10 20:40:47 +0200 |
commit | 630aacb0859c6e26b2b0311d8e245da5e5b8ac67 (patch) | |
tree | e9f6f6c28ae4a655f4519ca0db7bc882f8ee9abc /board/samsung/smdkv310/smdkv310.c | |
parent | 87bd05d78f0f5765f3d3e1517c76794c82dab7cc (diff) | |
parent | 1ae76d438b602fe8be1f0ef8b8ce47c89d371047 (diff) | |
download | u-boot-imx-630aacb0859c6e26b2b0311d8e245da5e5b8ac67.zip u-boot-imx-630aacb0859c6e26b2b0311d8e245da5e5b8ac67.tar.gz u-boot-imx-630aacb0859c6e26b2b0311d8e245da5e5b8ac67.tar.bz2 |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Diffstat (limited to 'board/samsung/smdkv310/smdkv310.c')
-rw-r--r-- | board/samsung/smdkv310/smdkv310.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/board/samsung/smdkv310/smdkv310.c b/board/samsung/smdkv310/smdkv310.c index 81ac8f6..015b920 100644 --- a/board/samsung/smdkv310/smdkv310.c +++ b/board/samsung/smdkv310/smdkv310.c @@ -26,6 +26,8 @@ #include <asm/arch/cpu.h> #include <asm/arch/gpio.h> #include <asm/arch/mmc.h> +#include <asm/arch/periph.h> +#include <asm/arch/pinmux.h> #include <asm/arch/sromc.h> DECLARE_GLOBAL_DATA_PTR; @@ -137,3 +139,47 @@ int board_mmc_init(bd_t *bis) return err; } #endif + +static int board_uart_init(void) +{ + int err; + + err = exynos_pinmux_config(PERIPH_ID_UART0, PINMUX_FLAG_NONE); + if (err) { + debug("UART0 not configured\n"); + return err; + } + + err = exynos_pinmux_config(PERIPH_ID_UART1, PINMUX_FLAG_NONE); + if (err) { + debug("UART1 not configured\n"); + return err; + } + + err = exynos_pinmux_config(PERIPH_ID_UART2, PINMUX_FLAG_NONE); + if (err) { + debug("UART2 not configured\n"); + return err; + } + + err = exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE); + if (err) { + debug("UART3 not configured\n"); + return err; + } + + return 0; +} + +#ifdef CONFIG_BOARD_EARLY_INIT_F +int board_early_init_f(void) +{ + int err; + err = board_uart_init(); + if (err) { + debug("UART init failed\n"); + return err; + } + return err; +} +#endif |