]> git.sur5r.net Git - u-boot/commitdiff
arm64: zynqmp: Call psu_init() only when ZYNQMP_PSU_INIT_ENABLED
authorMichal Simek <michal.simek@xilinx.com>
Mon, 15 Jan 2018 11:52:59 +0000 (12:52 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jan 2018 13:29:12 +0000 (14:29 +0100)
Remove SPL_BUILD dependency from zynqmp.c and move it to header file.
Use only one symbol for including psu_init.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c
include/configs/xilinx_zynqmp.h

index db557e88067447dca3669254aad5bc2a0c090002..6c8254b9824b2fca5693180f6ce1d67509129b66 100644 (file)
@@ -242,7 +242,7 @@ int board_early_init_f(void)
        zynqmp_pmufw_version();
 #endif
 
-#if defined(CONFIG_SPL_BUILD) || defined(CONFIG_ZYNQMP_PSU_INIT_ENABLED)
+#if defined(CONFIG_ZYNQMP_PSU_INIT_ENABLED)
        ret = psu_init();
 #endif
 
index d883897c6cc2d522803359fcac2bd09a53d16620..dddfe274fbd2315a984582a5497ba36b97caaee5 100644 (file)
 # define CONFIG_MTD_DEVICE
 #endif
 
+#if defined(CONFIG_SPL_BUILD)
+#define CONFIG_ZYNQMP_PSU_INIT_ENABLED
+#endif
+
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_LOAD_ADDR           0x8000000