aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-04-19 12:36:48 +0200
committerMichal Simek <michal.simek@xilinx.com>2018-05-11 09:23:43 +0200
commit57213c5f3711254934736637b59989c9b7ba7f2b (patch)
tree2adbfddcaf58360a1a4adf5b99876c7fdb9839d9
parentda342f06b30399fbbebbb53aadfc018713c65c24 (diff)
downloadu-boot-57213c5f3711254934736637b59989c9b7ba7f2b.zip
u-boot-57213c5f3711254934736637b59989c9b7ba7f2b.tar.gz
u-boot-57213c5f3711254934736637b59989c9b7ba7f2b.tar.bz2
arm: zynq: Enable debug_uart_init in spl when enabled
In past this code was commented and was used for debug purpose. But there is no reason not to enabled it based on macros. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--arch/arm/mach-zynq/spl.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c
index 48e3d8d..83297d6 100644
--- a/arch/arm/mach-zynq/spl.c
+++ b/arch/arm/mach-zynq/spl.c
@@ -17,11 +17,12 @@ void board_init_f(ulong dummy)
ps7_init();
arch_cpu_init();
- /*
- * The debug UART can be used from this point:
- * debug_uart_init();
- * printch('x');
- */
+
+#ifdef CONFIG_DEBUG_UART
+ /* Uart debug for sure */
+ debug_uart_init();
+ puts("Debug uart enabled\n"); /* or printch() */
+#endif
}
#ifdef CONFIG_SPL_BOARD_INIT