nios2: set up the debug UART early
PATCH 1/1 nios2: set up the debug UART early
Set up the debug UART early if enabled, so that it is ready to use.
Signed-off-by Thomas Chou <[email protected]>
--- arch/nios2/cpu/start.S | 7 +++++++ 1 file changed, 7 insertions(+)
arch/nios2/cpu/start.S +7 -0
@@ -106,6 +106,13 @@ _reloc: stw r0, 4(sp) mov fp, sp +#ifdef CONFIG_DEBUG_UART + /* Set up the debug UART */ + movhi r2, %hi(debug_uart_init at h) + ori r2, r2, %lo(debug_uart_init at h) + callr r2 +#endif + /* Allocate and zero GD, update SP */ mov r4, sp movhi r2, %hi(board_init_f_mem at h)
Signature · 1 line
2.5.0
PATCH 1/1 nios2: set up the debug UART early
Quoted 8 lines · Thomas Chou
Set up the debug UART early if enabled, so that it is ready to use.
Signed-off-by Thomas Chou <[email protected]>--- arch/nios2/cpu/start.S | 7 +++++++ 1 file changed, 7 insertions(+)
Acked-by Chin Liang See <[email protected]>
Thanks
Chin Liang
PATCH 1/1 nios2: set up the debug UART early
In reply to Thomas ChouQuoted 7 lines · Thomas Chou
Set up the debug UART early if enabled, so that it is ready to use.
Signed-off-by Thomas Chou <[email protected]>--- arch/nios2/cpu/start.S | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to u-boot-nios.