* [PATCH] arm: pdu001: Fix early debugging UART
@ 2022-02-15 14:27 Felix Brack
2022-02-15 19:30 ` Tom Rini
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Felix Brack @ 2022-02-15 14:27 UTC (permalink / raw)
To: u-boot; +Cc: Simon Glass, Felix Brack, Tom Rini
The changes from commit 0dba45864b2a ("arm: Init the debug UART")
prevent the early debug UART from being initialized correctly.
To fix this we not just configure the pin multiplexer but add setting up
early clocks.
Signed-off-by: Felix Brack <fb@ltec.ch>
---
board/eets/pdu001/Makefile | 6 +-----
board/eets/pdu001/board.c | 2 ++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/board/eets/pdu001/Makefile b/board/eets/pdu001/Makefile
index a5990ce3ad..35ea3978fe 100644
--- a/board/eets/pdu001/Makefile
+++ b/board/eets/pdu001/Makefile
@@ -6,8 +6,4 @@
# SPDX-License-Identifier: GPL-2.0+
#
-ifeq ($(CONFIG_$(SPL_)SKIP_LOWLEVEL_INIT),)
-obj-y := mux.o
-endif
-
-obj-y += board.o
+obj-y := board.o mux.o
diff --git a/board/eets/pdu001/board.c b/board/eets/pdu001/board.c
index 9f3cfd4f84..8612c09d40 100644
--- a/board/eets/pdu001/board.c
+++ b/board/eets/pdu001/board.c
@@ -240,6 +240,8 @@ void sdram_init(void)
#ifdef CONFIG_DEBUG_UART
void board_debug_uart_init(void)
{
+ setup_early_clocks();
+
/* done by pin controller driver if not debugging */
enable_uart_pin_mux(CONFIG_DEBUG_UART_BASE);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: pdu001: Fix early debugging UART
2022-02-15 14:27 [PATCH] arm: pdu001: Fix early debugging UART Felix Brack
@ 2022-02-15 19:30 ` Tom Rini
2022-02-23 22:59 ` Simon Glass
2022-02-28 20:46 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-02-15 19:30 UTC (permalink / raw)
To: Felix Brack; +Cc: u-boot, Simon Glass
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
On Tue, Feb 15, 2022 at 03:27:23PM +0100, Felix Brack wrote:
> The changes from commit 0dba45864b2a ("arm: Init the debug UART")
> prevent the early debug UART from being initialized correctly.
> To fix this we not just configure the pin multiplexer but add setting up
> early clocks.
>
> Signed-off-by: Felix Brack <fb@ltec.ch>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: pdu001: Fix early debugging UART
2022-02-15 14:27 [PATCH] arm: pdu001: Fix early debugging UART Felix Brack
2022-02-15 19:30 ` Tom Rini
@ 2022-02-23 22:59 ` Simon Glass
2022-02-28 20:46 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2022-02-23 22:59 UTC (permalink / raw)
To: Felix Brack; +Cc: U-Boot Mailing List, Tom Rini
On Tue, 15 Feb 2022 at 07:27, Felix Brack <fb@ltec.ch> wrote:
>
> The changes from commit 0dba45864b2a ("arm: Init the debug UART")
> prevent the early debug UART from being initialized correctly.
> To fix this we not just configure the pin multiplexer but add setting up
> early clocks.
>
> Signed-off-by: Felix Brack <fb@ltec.ch>
> ---
>
> board/eets/pdu001/Makefile | 6 +-----
> board/eets/pdu001/board.c | 2 ++
> 2 files changed, 3 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: pdu001: Fix early debugging UART
2022-02-15 14:27 [PATCH] arm: pdu001: Fix early debugging UART Felix Brack
2022-02-15 19:30 ` Tom Rini
2022-02-23 22:59 ` Simon Glass
@ 2022-02-28 20:46 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-02-28 20:46 UTC (permalink / raw)
To: Felix Brack; +Cc: u-boot, Simon Glass
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
On Tue, Feb 15, 2022 at 03:27:23PM +0100, Felix Brack wrote:
> The changes from commit 0dba45864b2a ("arm: Init the debug UART")
> prevent the early debug UART from being initialized correctly.
> To fix this we not just configure the pin multiplexer but add setting up
> early clocks.
>
> Signed-off-by: Felix Brack <fb@ltec.ch>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-28 20:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-15 14:27 [PATCH] arm: pdu001: Fix early debugging UART Felix Brack
2022-02-15 19:30 ` Tom Rini
2022-02-23 22:59 ` Simon Glass
2022-02-28 20:46 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox