]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Call psu_init from board_early_init_f
authorMichal Simek <michal.simek@xilinx.com>
Wed, 12 Jul 2017 11:08:41 +0000 (13:08 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 2 Aug 2017 07:11:52 +0000 (09:11 +0200)
For some mini platforms there could be a need to include psu_init.
That's why move it to board file instead of spl only file.

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

index 26bf80ec52b49d5831d5092eb6531598a44ff8d7..468dc1dc4d54859275aacc5da24a6e5f240dc70b 100644 (file)
@@ -17,7 +17,7 @@
 
 void board_init_f(ulong dummy)
 {
-       psu_init();
+       board_early_init_f();
        board_early_init_r();
 
 #ifdef CONFIG_DEBUG_UART
index 51a3d9f276b79f06b6731483ce4cede6c6608b83..442637bcae2c438d69513934132e3aceb8937f50 100644 (file)
@@ -118,6 +118,11 @@ int board_early_init_f(void)
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CLK_ZYNQMP)
        zynqmp_pmufw_version();
 #endif
+
+#if defined(CONFIG_SPL_BUILD)
+       psu_init();
+#endif
+
        return 0;
 }