u-boot/board/engicam/stm32mp1
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
..
Kconfig board: stmp32mp1: split board and SOC STM32MP15 configuration 2021-11-10 17:03:36 +01:00
MAINTAINERS board: stm32: Add Engicam MicroGEA STM32MP1 MicroDev 2.0 7" OF 2021-04-09 11:53:00 +02:00
Makefile stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
spl.c stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
stm32mp1.c board: engicam: stm32mp1: convert to livetree 2022-06-17 14:12:27 +02:00