diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2018-05-03 15:01:58 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2018-05-24 15:59:17 +0300 |
commit | 429fa25e171a35a74e7676acb45f3f706a038722 (patch) | |
tree | 14bef14262274a0d6e54a68c2b563bc9e53579b5 | |
parent | 8a9dc16e4d07d29fff08b7caca36f0865065f7f7 (diff) |
ARC: init debug uart in early common arc code
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@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
-rw-r--r-- | arch/arc/lib/start.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arc/lib/start.S b/arch/arc/lib/start.S index 3fb05606c7..e573ce7718 100644 --- a/arch/arc/lib/start.S +++ b/arch/arc/lib/start.S @@ -75,6 +75,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 |