public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f
Date: Sun, 23 Apr 2017 12:50:43 +0200	[thread overview]
Message-ID: <1492944643-859-5-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1492944643-859-1-git-send-email-noltari@gmail.com>

From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

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 <daniel.schwierzeck@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 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

  parent reply	other threads:[~2017-04-23 10:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 10:50 [U-Boot] [PATCH 0/4] MIPS: call debug_uart_init right before board_init_f Álvaro Fernández Rojas
2017-04-23 10:50 ` [U-Boot] [PATCH 1/4] MIPS: QCA AP121: remove debug_uart_init call Álvaro Fernández Rojas
2017-04-23 10:50 ` [U-Boot] [PATCH 2/4] MIPS: QCA AP143: " Álvaro Fernández Rojas
2017-04-23 10:50 ` [U-Boot] [PATCH 3/4] MIPS: tl-wdr4300: " Álvaro Fernández Rojas
2017-04-23 10:50 ` Álvaro Fernández Rojas [this message]
2017-04-23 11:09   ` [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f Marek Vasut
2017-04-23 11:31     ` Álvaro Fernández Rojas
2017-04-23 11:44       ` Marek Vasut
2017-04-23 12:04         ` Álvaro Fernández Rojas
2017-04-23 17:08           ` Marek Vasut
2017-04-23 19:04             ` Daniel Schwierzeck
2017-04-23 19:40               ` Marek Vasut
2017-04-23 19:09   ` Daniel Schwierzeck
2017-04-24 17:03 ` [U-Boot] [PATCH 0/4] " Álvaro Fernández Rojas
2017-04-24 17:03   ` [U-Boot] [PATCH 1/4] MIPS: QCA AP121: remove debug_uart_init call Álvaro Fernández Rojas
2017-04-30 18:22     ` Daniel Schwierzeck
2017-04-24 17:03   ` [U-Boot] [PATCH 2/4] MIPS: QCA AP143: " Álvaro Fernández Rojas
2017-04-30 18:22     ` Daniel Schwierzeck
2017-04-24 17:03   ` [U-Boot] [PATCH 3/4] MIPS: tl-wdr4300: " Álvaro Fernández Rojas
2017-04-30 18:22     ` Daniel Schwierzeck
2017-04-24 17:03   ` [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f Álvaro Fernández Rojas
2017-04-30 18:22     ` Daniel Schwierzeck
2017-04-25 15:48   ` [U-Boot] [PATCH 0/4] " Álvaro Fernández Rojas
2017-04-25 16:32     ` Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492944643-859-5-git-send-email-noltari@gmail.com \
    --to=noltari@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox