u-boot/board/st
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 blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
stih410-b2260 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f429-discovery doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32f429-evaluation doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32f469-discovery doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32f746-disco doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32h743-disco doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32h743-eval doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32h750-art-pi doc: Add documentation for STM32 MCUs 2022-05-10 13:56:12 +02:00
stm32mp1 stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
stv0991 bootstage: Eliminate when not enabled 2021-07-07 10:17:54 -04:00