From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sun, 23 Apr 2017 12:50:43 +0200 Subject: [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f In-Reply-To: <1492944643-859-1-git-send-email-noltari@gmail.com> References: <1492944643-859-1-git-send-email-noltari@gmail.com> Message-ID: <1492944643-859-5-git-send-email-noltari@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de From: Daniel Schwierzeck All MIPS boards that support debug uart are calling debug_uart_init right at the beginning of board_early_init_f. Instead of doing that, let's provide a generic call to debug_uart_init right before the call to board_init_f if debug uart is enabled. Signed-off-by: Daniel Schwierzeck Signed-off-by: Álvaro Fernández Rojas --- arch/mips/cpu/start.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S index 6740fdf..f7dee81 100644 --- a/arch/mips/cpu/start.S +++ b/arch/mips/cpu/start.S @@ -265,6 +265,12 @@ wr_done: setup_stack_gd #endif +#ifdef CONFIG_DEBUG_UART + PTR_LA t9, debug_uart_init + jalr t9 + nop +#endif + move a0, zero # a0 <-- boot_flags = 0 PTR_LA t9, board_init_f -- 2.1.4