summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynq/ps7_spl_init.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-11-08 18:14:47 +0300
committerMichal Simek <michal.simek@xilinx.com>2017-11-29 10:02:39 +0300
commitf0b619ec2937b12be698984ee153e293f07fc890 (patch)
treef83222a0db5f78ca2a32cecf13386d2e0abfa752 /arch/arm/mach-zynq/ps7_spl_init.c
parenta3b36c8424c529a3a1a5cf6eb9da6e30ae16360b (diff)
downloadu-boot-f0b619ec2937b12be698984ee153e293f07fc890.tar.xz
arm: zynq: Move ps7_* to separate file
Extract ps7_* from spl code to prepare for extension. And also return value. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/ps7_spl_init.c')
-rw-r--r--arch/arm/mach-zynq/ps7_spl_init.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/ps7_spl_init.c b/arch/arm/mach-zynq/ps7_spl_init.c
new file mode 100644
index 0000000000..6adf852578
--- /dev/null
+++ b/arch/arm/mach-zynq/ps7_spl_init.c
@@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2010-2017 Xilinx, Inc. All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <asm/io.h>
+#include <asm/spl.h>
+#include <asm/arch/ps7_init_gpl.h>
+
+__weak int ps7_init(void)
+{
+ /*
+ * This function is overridden by the one in
+ * board/xilinx/zynq/(platform)/ps7_init_gpl.c, if it exists.
+ */
+ return 0;
+}
+
+__weak int ps7_post_config(void)
+{
+ /*
+ * This function is overridden by the one in
+ * board/xilinx/zynq/(platform)/ps7_init_gpl.c, if it exists.
+ */
+ return 0;
+}