arm64: zynqmp: Move timeout for clock propagation below psu_init
authorMichal Simek <michal.simek@xilinx.com>
Fri, 20 Mar 2020 07:59:02 +0000 (08:59 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Apr 2020 10:52:45 +0000 (12:52 +0200)
Delay required for clock propagation is tighly coupled with initialization
done in psu_init(). That's why call it also for u-boot proper with
CONFIG_ZYNQMP_PSU_INIT_ENABLED enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynqmp/spl.c
board/xilinx/zynqmp/zynqmp.c

index c53945e..68df0a7 100644 (file)
@@ -19,9 +19,6 @@ void board_init_f(ulong dummy)
 {
        board_early_init_f();
        board_early_init_r();
-
-       /* Delay is required for clocks to be propagated */
-       udelay(1000000);
 }
 
 static void ps_mode_reset(ulong mode)
index 04fd3bd..eb1bc08 100644 (file)
@@ -326,6 +326,9 @@ int board_early_init_f(void)
        ret = psu_init();
        if (ret)
                return ret;
+
+       /* Delay is required for clocks to be propagated */
+       udelay(1000000);
 #endif
 
 #ifdef CONFIG_DEBUG_UART