[U-Boot] [PATCH 1/2] ARC: init debug uart in early common arc code
Eugeniy Paltsev
Eugeniy.Paltsev at synopsys.com
Thu May 3 12:01:58 UTC 2018
The debug UART is intended for use very early in U-Boot to debug
problems before serial drivers are up.
Call debug_uart_init right before board_init_f.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
---
arch/arc/lib/start.S | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arc/lib/start.S b/arch/arc/lib/start.S
index c78dd001d81..cb8ea0fd363 100644
--- a/arch/arc/lib/start.S
+++ b/arch/arc/lib/start.S
@@ -76,6 +76,11 @@ ENTRY(_start)
/* Initialize reserved area - note: r0 already contains address */
bl board_init_f_init_reserve
+#ifdef CONFIG_DEBUG_UART
+ /* Earliest point to set up early debug uart */
+ bl debug_uart_init
+#endif
+
/* Zero the one and only argument of "board_init_f" */
mov_s %r0, 0
bl board_init_f
--
2.14.3
More information about the U-Boot
mailing list