projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94985cc
)
nios2: set up the debug UART early
author
Thomas Chou
<thomas@wytron.com.tw>
Wed, 30 Dec 2015 12:29:18 +0000
(20:29 +0800)
committer
Thomas Chou
<thomas@wytron.com.tw>
Sat, 6 Feb 2016 07:14:25 +0000
(15:14 +0800)
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>
arch/nios2/cpu/start.S
patch
|
blob
|
history
diff --git
a/arch/nios2/cpu/start.S
b/arch/nios2/cpu/start.S
index 204d0cd9d4a714a56198a7ed80c5ea3c99227ced..3e1b0c9514052f5a502994da9edfb440b2bd5fe5 100644
(file)
--- 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)