From: Thomas Chou Date: Wed, 30 Dec 2015 12:29:18 +0000 (+0800) Subject: nios2: set up the debug UART early X-Git-Tag: v2025.01-rc5-pxa1908~10336^2 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=e4f348ba6f070789e6505cc65cf6683421674637;p=u-boot.git 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 Acked-by: Chin Liang See --- diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S index 204d0cd9d4..3e1b0c9514 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)