projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da342f0
)
arm: zynq: Enable debug_uart_init in spl when enabled
author
Michal Simek
<michal.simek@xilinx.com>
Thu, 19 Apr 2018 10:36:48 +0000
(12:36 +0200)
committer
Michal Simek
<michal.simek@xilinx.com>
Fri, 11 May 2018 07:23:43 +0000
(09:23 +0200)
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>
arch/arm/mach-zynq/spl.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-zynq/spl.c
b/arch/arm/mach-zynq/spl.c
index 48e3d8d57f01e3a242524c1e09de253e8d6962b1..83297d6c694722366d6238c1c1fa3ba614430392 100644
(file)
--- 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