Skip to contentSkip to conversation

ARM: stm32: Add missing build of debug UART init code on DH STM32MP1 DHSOM

PATCH In review Marek Vasut 3 participants 4 messages Nov 18, 2025 – Dec 5, 2025 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: stm32: Add missing build of debug UART init code on DH STM32MP1 DHSOM

Commit c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART") split the debug UART initialization code into two files, but failed to update other non-ST boards. This did not lead to noticeable breakage until debug UART is enabled, which is not the default. Update the Makefile accordingly to allow debug UART to work.

Fixes c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 2 ++
 1 file changed, 2 insertions(+)
board/dhelectronics/dh_stm32mp1/Makefile +2 -0
index 2f4a301d1a0..429e01453bb 100644
@@ -3,6 +3,8 @@
 # Copyright (C) 2018, STMicroelectronics - All Rights Reserved
 #
 
+obj-$(CONFIG_DEBUG_UART_BOARD_INIT) += ../../st/stm32mp1/debug_uart.o
+
 obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 
Signature · 1 line
2.51.0
#1 lore raw
Quoted 24 lines · Marek Vasut

Commit c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART") split the debug UART initialization code into two files, but failed to update other non-ST boards. This did not lead to noticeable breakage until debug UART is enabled, which is not the default. Update the Makefile accordingly to allow debug UART to work.

Fixes c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 2 ++
 1 file changed, 2 insertions(+)
board/dhelectronics/dh_stm32mp1/Makefile +0 -0
index 2f4a301d1a0..429e01453bb 100644

board/dhelectronics/dh_stm32mp1/Makefile line 9

Quoted 7 lines
board/dhelectronics/dh_stm32mp1/Makefile +2 -0
@@ -3,6 +3,8 @@
 # Copyright (C) 2018, STMicroelectronics - All Rights Reserved
 #
 
+obj-$(CONFIG_DEBUG_UART_BOARD_INIT) += ../../st/stm32mp1/debug_uart.o
+
 obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o

As a future cleanup perhaps for ST folks, this feels to me like there should be more code under arch/arm/mach-stm32mp1/ somewhere and not board/st/.../

Signature · 1 line
Tom
Reviewed-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 24 lines · Marek Vasut

Commit c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART") split the debug UART initialization code into two files, but failed to update other non-ST boards. This did not lead to noticeable breakage until debug UART is enabled, which is not the default. Update the Makefile accordingly to allow debug UART to work.

Fixes c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 2 ++
 1 file changed, 2 insertions(+)
board/dhelectronics/dh_stm32mp1/Makefile +0 -0
index 2f4a301d1a0..429e01453bb 100644

board/dhelectronics/dh_stm32mp1/Makefile line 10

Quoted 8 lines
board/dhelectronics/dh_stm32mp1/Makefile +2 -0
@@ -3,6 +3,8 @@
 # Copyright (C) 2018, STMicroelectronics - All Rights Reserved
 #
 
+obj-$(CONFIG_DEBUG_UART_BOARD_INIT) += ../../st/stm32mp1/debug_uart.o
+
 obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 

Thanks
Patrice

#3 lore raw
Quoted 39 lines · Patrice CHOTARD
Quoted 24 lines · Marek Vasut

Commit c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART") split the debug UART initialization code into two files, but failed to update other non-ST boards. This did not lead to noticeable breakage until debug UART is enabled, which is not the default. Update the Makefile accordingly to allow debug UART to work.

Fixes c37a6684818d ("stm32mp: fix compilation issue with DEBUG_UART")

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 board/dhelectronics/dh_stm32mp1/Makefile | 2 ++
 1 file changed, 2 insertions(+)
board/dhelectronics/dh_stm32mp1/Makefile +0 -0
index 2f4a301d1a0..429e01453bb 100644

board/dhelectronics/dh_stm32mp1/Makefile line 10

Quoted 8 lines
board/dhelectronics/dh_stm32mp1/Makefile +2 -0
@@ -3,6 +3,8 @@
 # Copyright (C) 2018, STMicroelectronics - All Rights Reserved
 #
 
+obj-$(CONFIG_DEBUG_UART_BOARD_INIT) += ../../st/stm32mp1/debug_uart.o
+
 obj-$(CONFIG_PMIC_STPMIC1) += ../../st/common/stpmic1.o
 obj-y += board.o
 
Quoted 2 lines

Thanks
Patrice

Applied to u-boot-stm32/next

Thanks
Patrice