summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-03-26 21:40:55 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2021-04-15 11:52:22 +0300
commit019438e4fd6c63dc9c093a812faa98dcdfd7f970 (patch)
tree919974921e9b52548779b8460695bd34fa6b61b4 /arch/arm/cpu
parent8ff123a685d203d4da1325a6aeeb8e04262d19ac (diff)
downloadu-boot-019438e4fd6c63dc9c093a812faa98dcdfd7f970.tar.xz
armv8: fsl-layerscape: spl: add debug UART support
To use the debug UART we have to call debug_uart_init() in the SPL. Do so as soon as possible. As an example, here is how you can use it on a LS1028A SoC: CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_BASE=0x21c0500 CONFIG_DEBUG_UART_CLOCK=200000000 Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv8/fsl-layerscape/spl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
index d5131bcf4b..888c02f6c5 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
+#include <debug_uart.h>
#include <env.h>
#include <image.h>
#include <init.h>
@@ -70,6 +71,8 @@ void board_init_f(ulong dummy)
icache_enable();
/* Clear global data */
memset((void *)gd, 0, sizeof(gd_t));
+ if (IS_ENABLED(CONFIG_DEBUG_UART))
+ debug_uart_init();
board_early_init_f();
timer_init();
#ifdef CONFIG_ARCH_LS2080A