summaryrefslogtreecommitdiff
path: root/board/xilinx
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-01-15 12:52:59 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-01-30 14:29:12 +0100
commit88f05a926d52a4b05eac2e325bb600fa83f8eee1 (patch)
tree122858bc7d208883ce3224b8beebea3c470091fb /board/xilinx
parent9753c4f886e22c9166ef0d918ef7a6f1c88de7e8 (diff)
arm64: zynqmp: Call psu_init() only when ZYNQMP_PSU_INIT_ENABLED
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>
Diffstat (limited to 'board/xilinx')
-rw-r--r--board/xilinx/zynqmp/zynqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index db557e8806..6c8254b982 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -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