]> git.baikalelectronics.ru Git - uboot.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)
commitfd75e6351de49cacbb831a2c1bfbf26395d48efd
tree5a2b15409061ada8e6070cac6ea4459b209e41bc
parentdad655021f441799d6f036aef5e79c59053dacfe
arm64: zynqmp: Fix debug uart initialization

The commit f4d0c01c88e5 ("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