]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
m68k: m680x0: Initialise the debug uart
authorDaniel Palmer <daniel@0x0f.com>
Mon, 9 Mar 2026 10:51:09 +0000 (19:51 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 14 Apr 2026 19:25:13 +0000 (13:25 -0600)
Once the stack is ready we can init the debug uart to help
with debugging so do that.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Acked-by: Angelo Dureghello <angelo@kernel-space.org>
arch/m68k/cpu/m680x0/start.S

index 0802ca1fca2c8ce8c4d10dd8b555887379087410..fdfcd66f7785b438fd93022d96b0049ea516366c 100644 (file)
@@ -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