summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Palmer <[email protected]>2026-03-09 19:51:09 +0900
committerTom Rini <[email protected]>2026-04-14 13:25:13 -0600
commit2df4926ca4f215d9b1a91d0c02c6fef49c845837 (patch)
tree764bebeb1800dc3fdc12b710680fbdfbfa34cfb9
parentcbfb9b3f2248ff30724a12583981e3e7523272d6 (diff)
m68k: m680x0: Initialise the debug uart
Once the stack is ready we can init the debug uart to help with debugging so do that. Signed-off-by: Daniel Palmer <[email protected]> Acked-by: Angelo Dureghello <[email protected]>
-rw-r--r--arch/m68k/cpu/m680x0/start.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68k/cpu/m680x0/start.S b/arch/m68k/cpu/m680x0/start.S
index 0802ca1fca2..fdfcd66f778 100644
--- a/arch/m68k/cpu/m680x0/start.S
+++ b/arch/m68k/cpu/m680x0/start.S
@@ -42,6 +42,11 @@ ENTRY(_start)
/* Setup initial stack pointer */
move.l #CFG_SYS_INIT_SP_ADDR, %sp
+ /* Setup the debug uart if enabled */
+#ifdef CONFIG_DEBUG_UART
+ bsr.l debug_uart_init
+#endif
+
/*
* Allocate Global Data (GD)
* board_init_f_alloc_reserve(top) returns the new top of stack in %d0