u-boot/arch/arm/mach-stm32mp
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
..
cmd_stm32prog stm32mp: stm32prog: improve the partitioning trace 2022-09-23 14:25:29 +02:00
include/mach stm32mp: add support of STM32MP13x Rev.Y 2022-07-12 11:47:34 +02:00
boot_params.c sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
bsec.c arm: stm32mp: move the get_otp helper function in bsec 2022-06-17 09:58:21 +02:00
cmd_stm32key.c arm: stm32mp: adapt the command stm32key for STM32MP13x 2022-09-23 14:28:25 +02:00
cpu.c arm: stm32mp: support 2 MAC address for STM32MP13 2022-06-17 09:58:21 +02:00
dram_init.c board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
ecdsa_romapi.c arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
fdt.c stm32mp: fdt: update etzpc for STM32MP13x 2022-06-17 10:41:17 +02:00
Kconfig arm: stm32mp: add support of STM32MP13x 2022-06-17 09:58:21 +02:00
Kconfig.13x arm: stm32mp: add support of STM32MP13x 2022-06-17 09:58:21 +02:00
Kconfig.15x stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
Makefile arm: stm32mp: add support of STM32MP13x 2022-06-17 09:58:21 +02:00
psci.c stm32mp: psci: Retain MCUDIVR, PLL3CR, PLL4CR, MSSCKSELR across suspend 2022-05-10 13:54:47 +02:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c arm: stm32mp: move code for STM32MP15x 2022-06-17 09:58:21 +02:00
stm32mp13x.c stm32mp: add support of STM32MP13x Rev.Y 2022-07-12 11:47:34 +02:00
stm32mp15x.c stm32mp: simplify the STM32MP15x package parsing code 2022-09-06 13:54:50 +02:00
syscon.c stm32mp: syscon: manage clock when present in device tree 2021-07-16 09:28:46 +02:00
tzc400.c arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +02:00