]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Fix debug uart initialization
authorMichal Simek <michal.simek@xilinx.com>
Thu, 17 Feb 2022 13:28:42 +0000 (14:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 21 Feb 2022 12:20:29 +0000 (13:20 +0100)
commit11381fba99dcadf9fa59dec08d78b730042ab134
tree5a2b15409061ada8e6070cac6ea4459b209e41bc
parent05f0f269b7a6e5c9b65e88bb8b691e28cb49da84
arm64: zynqmp: Fix debug uart initialization

The commit 0dba45864b2a ("arm: Init the debug UART") calls
debug_uart_init() from crt0.S but it won't work because SOC is not
configured yet. That's why create board_debug_uart_init() which calls
psu_init() via new psu_uboot_init() earlier before the first access to UART
in SPL. In full U-Boot call psu_uboot_init() only when
CONFIG_ZYNQMP_PSU_INIT_ENABLED is enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/878dc2daaa8685346f889989fbfb98b2e44da7fb.1645104518.git.michal.simek@xilinx.com
arch/arm/Kconfig
arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h
arch/arm/mach-zynqmp/spl.c
board/xilinx/zynqmp/zynqmp.c