summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-01-14 14:21:52 +0100
committerMichal Simek <michal.simek@xilinx.com>2014-02-19 09:41:22 +0100
commitd7e269cfbdd5fe0bbc0961bcf89845484bf28de7 (patch)
tree456ef6fb228016067ad3351edb7bd20edff675fb /board
parent96a5d4dc1ec1ce26b32a3fa294816a47b62ae68a (diff)
downloadu-boot-imx-d7e269cfbdd5fe0bbc0961bcf89845484bf28de7.zip
u-boot-imx-d7e269cfbdd5fe0bbc0961bcf89845484bf28de7.tar.gz
u-boot-imx-d7e269cfbdd5fe0bbc0961bcf89845484bf28de7.tar.bz2
zynq: Add support for U-BOOT SPL
SPL is using ps7_init.c/h files which are generated from design tools which have to be copied to boards/xilinx/zynq folder before compilation. BSS section is moved to SDRAM because fat support requires more space than SRAM size. Added: - MMC and QSPI support - Boot OS directly from SPL - Enable SPL command Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/xilinx/zynq/Makefile1
-rw-r--r--board/xilinx/zynq/ps7_init.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/board/xilinx/zynq/Makefile b/board/xilinx/zynq/Makefile
index 6301a8c..3f19a1c 100644
--- a/board/xilinx/zynq/Makefile
+++ b/board/xilinx/zynq/Makefile
@@ -6,3 +6,4 @@
#
obj-y := board.o
+obj-$(CONFIG_SPL_BUILD) += ps7_init.o
diff --git a/board/xilinx/zynq/ps7_init.c b/board/xilinx/zynq/ps7_init.c
new file mode 100644
index 0000000..c47da09
--- /dev/null
+++ b/board/xilinx/zynq/ps7_init.c
@@ -0,0 +1,12 @@
+/*
+ * (C) Copyright 2014 Xilinx, Inc. Michal Simek
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+#include <common.h>
+#include <asm/arch/spl.h>
+
+__weak void ps7_init(void)
+{
+ puts("Please copy ps7_init.c/h from hw project\n");
+}