u-boot/board/engicam
Patrick Delaunay c37a668481 stm32mp: fix compilation issue with DEBUG_UART
Fix the compilation issue when CONFIG_DEBUG_UART is activated

 drivers/serial/serial_stm32.o: in function `debug_uart_init':
 drivers/serial/serial_stm32.c:291: undefined reference to \
    `board_debug_uart_init'

The board_debug_uart_init is needed for SPL boot, called in
cpu.c::mach_cpu_init(); it is defined in board/st/stm32mp1/spl.c.

But with the removal #ifdefs patch, the function debug_uart_init() is
always compiled even if not present in the final U-Boot image.

This patch adds a file to provided this function when DEBUG_UART and SPL
are activated.

Fixes: c8b2eef52b ("stm32mp15: tidy up #ifdefs in cpu.c")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2022-10-18 08:40:59 +02:00
..
common common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx6q board: engicam: Attach i.MX6 common code 2020-10-30 23:31:26 +08:00
imx6ul board: engicam: Attach i.MX6 common code 2020-10-30 23:31:26 +08:00
imx8mm nxp: Make board/freescale/common/Kconfig safe to include once in arch/Kconfig 2022-07-05 17:03:02 -04:00
px30_core engicam: px30: Add Engicam PX30.Core C.TOUCH 2.0 10.1" OF 2021-12-24 14:56:58 +08:00
stm32mp1 stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00