Skip to contentSkip to conversation

arm: pdu001: Fix early debugging UART

PATCH In review Felix Brack 3 participants 4 messages Feb 15, 2022 – Feb 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: pdu001: Fix early debugging UART

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.

---

 board/eets/pdu001/Makefile | 6 +-----
 board/eets/pdu001/board.c  | 2 ++
 2 files changed, 3 insertions(+), 5 deletions(-)
board/eets/pdu001/Makefile +1 -5
index a5990ce3ad..35ea3978fe 100644
@@ -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
board/eets/pdu001/board.c +2 -0
index 9f3cfd4f84..8612c09d40 100644
@@ -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);
 }
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Felix Brack

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.

Signature · 1 line
Tom
Reviewed-by on v1 1/1
#2 lore raw
In reply to Felix Brack
Quoted 6 lines · Felix Brack

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.

Quoted 6 lines

---

 board/eets/pdu001/Makefile | 6 +-----
 board/eets/pdu001/board.c  | 2 ++
 2 files changed, 3 insertions(+), 5 deletions(-)