[PATCH] ARM: stm32: Add missing build of debug UART init code on DH STM32MP1 DHSOM
Tom Rini
trini at konsulko.com
Wed Nov 19 01:09:49 CET 2025
On Wed, Nov 19, 2025 at 12:17:23AM +0100, Marek Vasut wrote:
> 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")
> Signed-off-by: Marek Vasut <marek.vasut at mailbox.org>
> ---
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at dh-electronics.com
> Cc: u-boot at lists.denx.de
> Cc: uboot-stm32 at st-md-mailman.stormreply.com
> ---
> board/dhelectronics/dh_stm32mp1/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/dhelectronics/dh_stm32mp1/Makefile b/board/dhelectronics/dh_stm32mp1/Makefile
> index 2f4a301d1a0..429e01453bb 100644
> --- a/board/dhelectronics/dh_stm32mp1/Makefile
> +++ b/board/dhelectronics/dh_stm32mp1/Makefile
> @@ -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/.../
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251118/52b9830e/attachment.sig>
More information about the U-Boot
mailing list