summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-02 18:15:55 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 21:06:11 -0600
commit7fb57396e632126867c360e0dc0700db3d059aef (patch)
treeea84e6ad697eaa6efb6820d243e0d2fb15f19dea /arch
parentbf6e702232e3b8c38fe0934c1f0240958eaabed3 (diff)
downloadtalos-obmc-uboot-7fb57396e632126867c360e0dc0700db3d059aef.tar.gz
talos-obmc-uboot-7fb57396e632126867c360e0dc0700db3d059aef.zip
exynos: Enable the debug UART in SPL
As a debugging aid, allow UART3 to be used as a debug UART in SPL. This is a precursor to proper UART support, which requires a substantial refactor. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/exynos/lowlevel_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/exynos/lowlevel_init.c b/arch/arm/cpu/armv7/exynos/lowlevel_init.c
index 120aaf8b96..3774607848 100644
--- a/arch/arm/cpu/armv7/exynos/lowlevel_init.c
+++ b/arch/arm/cpu/armv7/exynos/lowlevel_init.c
@@ -25,6 +25,7 @@
#include <common.h>
#include <config.h>
+#include <debug_uart.h>
#include <asm/arch/cpu.h>
#include <asm/arch/dmc.h>
#include <asm/arch/power.h>
@@ -216,6 +217,10 @@ int do_lowlevel_init(void)
if (actions & DO_CLOCKS) {
system_clock_init();
+#ifdef CONFIG_DEBUG_UART
+ exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE);
+ debug_uart_init();
+#endif
mem_ctrl_init(actions & DO_MEM_RESET);
tzpc_init();
}
OpenPOWER on IntegriCloud