From: Eugen Hristev <eugen.hristev@linaro.org>
To: Fabio Estevam <festevam@gmail.com>
Cc: u-boot@lists.denx.de, trini@konsulko.com,
Fabio Estevam <festevam@denx.de>
Subject: Re: [PATCH] board: atmel: sama5d2_wlsom1_ek: Fix spurious serial output
Date: Fri, 4 Apr 2025 10:03:57 +0300 [thread overview]
Message-ID: <97b00a14-e866-4d23-88b8-e84410ebe036@linaro.org> (raw)
In-Reply-To: <20250404023642.3793338-1-festevam@gmail.com>
On 4/4/25 05:36, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Currently, there are always some spurious characters showing up
> right before SPL banner is shown:
>
> RomBOOT
> ���=������
> U-Boot SPL 2025.04-rc5-00023-g9ed4e2c45f25 (Apr 03 2025 - 23:23:17 -0300)
> Trying to boot from MMC1
>
> <debug_uart>
> ...
>
> Fix this problem by removing the redundant UART iomux and clock
> initialization from the board code, as they are handled by DM code.
If it's a redundant initialization, how does that lead to spurious
characters ?
My take on this is that the UART is initialized too late, and the lines
are floating for some time.
... or wrongly initialized vs baud, etc, for a certain amount of time.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
> index 04de1257eca0..a0ecc4f42a90 100644
> --- a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
> +++ b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
> @@ -41,17 +41,8 @@ int board_late_init(void)
> #endif
>
> #ifdef CONFIG_DEBUG_UART_BOARD_INIT
> -static void board_uart0_hw_init(void)
> -{
> - atmel_pio4_set_c_periph(AT91_PIO_PORTB, 26, ATMEL_PIO_PUEN_MASK); /* URXD0 */
> - atmel_pio4_set_c_periph(AT91_PIO_PORTB, 27, 0); /* UTXD0 */
> -
> - at91_periph_clk_enable(ATMEL_ID_UART0);
> -}
> -
> void board_debug_uart_init(void)
> {
> - board_uart0_hw_init();
> }
> #endif
>
prev parent reply other threads:[~2025-04-04 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 2:36 [PATCH] board: atmel: sama5d2_wlsom1_ek: Fix spurious serial output Fabio Estevam
2025-04-04 7:03 ` Eugen Hristev [this message]
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=97b00a14-e866-4d23-88b8-e84410ebe036@linaro.org \
--to=eugen.hristev@linaro.org \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=trini@konsulko.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