diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-12-30 20:29:18 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2016-02-06 15:14:25 +0800 |
commit | e4f348ba6f070789e6505cc65cf6683421674637 (patch) | |
tree | d43dab837abc4f0f62aaf40ca51c04c46fde07d2 /arch/nios2 | |
parent | 94985cc9d3d7ed991ca8b2627d5894df5ea68f49 (diff) | |
download | u-boot-imx-e4f348ba6f070789e6505cc65cf6683421674637.zip u-boot-imx-e4f348ba6f070789e6505cc65cf6683421674637.tar.gz u-boot-imx-e4f348ba6f070789e6505cc65cf6683421674637.tar.bz2 |
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 <thomas@wytron.com.tw>
Acked-by: Chin Liang See <clsee@altera.com>
Diffstat (limited to 'arch/nios2')
-rw-r--r-- | arch/nios2/cpu/start.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S index 204d0cd..3e1b0c9 100644 --- a/arch/nios2/cpu/start.S +++ b/arch/nios2/cpu/start.S @@ -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) |