mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org, Sascha Hauer <s.hauer@pengutronix.de>
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>,
	 Bruno Knittel <bruno.knittel@bruker.com>
Subject: [PATCH 2/2] ARM: socfpga: arria10-init: setup uart earlier
Date: Fri, 14 Nov 2025 08:23:16 +0100	[thread overview]
Message-ID: <20251114-v2025-11-0-topic-socfpga-arria10-v1-2-e091cddacea5@pengutronix.de> (raw)
In-Reply-To: <20251114-v2025-11-0-topic-socfpga-arria10-v1-0-e091cddacea5@pengutronix.de>

From: Bruno Knittel <bruno.knittel@bruker.com>

Dedicated peripherals like GPIO but especially UART can be enabled and
used before the FPGA is configured.

This commit ensures socfpga_uart_setup_ll() is done before FPGA
configuration and allows to have UART debug output as early as possible.

Signed-off-by: Bruno Knittel <bruno.knittel@bruker.com>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-socfpga/arria10-init.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-socfpga/arria10-init.c b/arch/arm/mach-socfpga/arria10-init.c
index 14cee3196a..7b438a8947 100644
--- a/arch/arm/mach-socfpga/arria10-init.c
+++ b/arch/arm/mach-socfpga/arria10-init.c
@@ -146,10 +146,6 @@ void arria10_finish_io(uint32_t *pinmux)
 	arria10_reset_deassert_shared_peripherals();
 
 	arria10_reset_deassert_fpga_peripherals();
-
-	socfpga_uart_setup_ll();
-
-	puts_ll("lowlevel init done\n");
 }
 /*
  * First C function to initialize the critical hardware early
@@ -197,4 +193,8 @@ void arria10_init(struct arria10_mainpll_cfg *mainpll,
 
 	/* deassert peripheral resets */
 	arria10_reset_deassert_dedicated_peripherals();
+
+	socfpga_uart_setup_ll();
+
+	puts_ll("lowlevel init done\n");
 }

-- 
2.46.0




  parent reply	other threads:[~2025-11-14  7:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-14  7:23 [PATCH 0/2] ARM: socfpga: arria10: earlier debug output Steffen Trumtrar
2025-11-14  7:23 ` [PATCH 1/2] ARM: socfpga: arria10-reset-manager: release UART0 Steffen Trumtrar
2025-11-14  7:23 ` Steffen Trumtrar [this message]
2025-11-17  8:37 ` [PATCH 0/2] ARM: socfpga: arria10: earlier debug output Sascha Hauer

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=20251114-v2025-11-0-topic-socfpga-arria10-v1-2-e091cddacea5@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=bruno.knittel@bruker.com \
    --cc=s.hauer@pengutronix.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