]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/cpu/start.S
MIPS: call debug_uart_init right before board_init_f
[u-boot] / arch / mips / cpu / start.S
index 6740fdf9ed272eda6bc7213ad02db57fc68f7d7b..a6b7a04757d0d594c8472f6062d41c44b82c6cfb 100644 (file)
@@ -237,6 +237,13 @@ wr_done:
 #ifdef CONFIG_MIPS_INIT_STACK_IN_SRAM
        /* Set up initial stack and global data */
        setup_stack_gd
+
+# ifdef CONFIG_DEBUG_UART
+       /* Earliest point to set up debug uart */
+       PTR_LA  t9, debug_uart_init
+       jalr    t9
+        nop
+# endif
 #endif
 
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
@@ -263,6 +270,13 @@ wr_done:
 #ifndef CONFIG_MIPS_INIT_STACK_IN_SRAM
        /* Set up initial stack and global data */
        setup_stack_gd
+
+# ifdef CONFIG_DEBUG_UART
+       /* Earliest point to set up debug uart */
+       PTR_LA  t9, debug_uart_init
+       jalr    t9
+        nop
+# endif
 #endif
 
        move    a0, zero                # a0 <-- boot_flags = 0