Skip to content

Commit

Permalink
nios2: set up the debug UART early
Browse files Browse the repository at this point in the history
Set up the debug UART early if enabled, so that it is ready to use.

Signed-off-by: Thomas Chou <[email protected]>
Acked-by: Chin Liang See <[email protected]>
  • Loading branch information
hippo5329 committed Feb 6, 2016
1 parent 94985cc commit e4f348b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/nios2/cpu/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -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@h)
ori r2, r2, %lo(debug_uart_init@h)
callr r2
#endif

/* Allocate and initialize reserved area, update SP */
mov r4, sp
movhi r2, %hi(board_init_f_alloc_reserve@h)
Expand Down

0 comments on commit e4f348b

Please sign in to comment.