u-boot/board/st/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
..
debug_uart.c stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
extlinux.conf stm32mp1: add example files for FIT generation 2019-08-27 11:19:23 +02:00
fit_copro_kernel_dtb.its board: st: stm32mp1: update load address for FIT examples 2020-11-25 14:27:19 +01:00
fit_kernel_dtb.its board: st: stm32mp1: update load address for FIT examples 2020-11-25 14:27:19 +01:00
Kconfig arm: stm32mp: add support of STM32MP13x 2022-06-17 09:58:21 +02:00
MAINTAINERS configs: add stm32mp13 defconfig 2022-06-17 10:41:16 +02:00
Makefile stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
README doc: add board documentation for stm32mp1 2020-03-02 09:41:32 +01:00
spl.c stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
stm32mp1.c board: st: stm32mp1: use of correct compatible string to add partitions 2022-09-23 14:26:57 +02:00

see doc/board/st/stm32mp1.rst