summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynq/spl.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-11-08 16:14:47 +0100
committerMichal Simek <michal.simek@xilinx.com>2017-11-29 08:02:39 +0100
commitf0b619ec2937b12be698984ee153e293f07fc890 (patch)
treef83222a0db5f78ca2a32cecf13386d2e0abfa752 /arch/arm/mach-zynq/spl.c
parenta3b36c8424c529a3a1a5cf6eb9da6e30ae16360b (diff)
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/spl.c')
-rw-r--r--arch/arm/mach-zynq/spl.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c
index e8added155..1672fa05c2 100644
--- a/arch/arm/mach-zynq/spl.c
+++ b/arch/arm/mach-zynq/spl.c
@@ -11,6 +11,7 @@
#include <asm/spl.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
+#include <asm/arch/ps7_init_gpl.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -83,23 +84,6 @@ int spl_start_uboot(void)
}
#endif
-__weak void ps7_init(void)
-{
- /*
- * This function is overridden by the one in
- * board/xilinx/zynq/(platform)/ps7_init_gpl.c, if it exists.
- */
-}
-
-__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;
-}
-
void spl_board_prepare_for_boot(void)
{
ps7_post_config();