From e82024def64569bd7cabb430b4cef9a4c102f2be Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 3 Dec 2019 15:02:50 +0100 Subject: arm64: zynqmp: Do not assing MIO34 that early on zcu100 MIO34 is connected to POWER_KILL signal. When MIO configuration is done in psu_init() and this pin is assigned to PMU but PMU configuration is not loaded yet. PMU gpio output is high that means board is powered off immediately. The patch is fixing this sequence that MIO34 stays assing to ps gpio IP. PMU config is loaded in SPL and then pin assigned to PMU through psu_post_config_data(). Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/spl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/mach-zynqmp/spl.c') diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c index a2079535a58..527646875a9 100644 --- a/arch/arm/mach-zynqmp/spl.c +++ b/arch/arm/mach-zynqmp/spl.c @@ -13,6 +13,7 @@ #include #include #include +#include #include void board_init_f(ulong dummy) @@ -53,6 +54,7 @@ void spl_board_init(void) preloader_console_init(); ps_mode_reset(MODE_RESET); board_init(); + psu_post_config_data(); } #endif -- cgit v1.2.3