summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/spl.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-05-10 07:55:52 +0200
committerMichal Simek <michal.simek@xilinx.com>2016-05-24 11:15:01 +0200
commitf44e603f73ea43268f0858b9aa4daf962f1eb347 (patch)
tree8aa6e66e975c4b2615fec20c41e2e8ea206e9153 /arch/arm/mach-zynq/spl.c
parent27640fda55bf998d1eb5109b3410bf62e445e191 (diff)
downloadblackbird-obmc-uboot-f44e603f73ea43268f0858b9aa4daf962f1eb347.tar.gz
blackbird-obmc-uboot-f44e603f73ea43268f0858b9aa4daf962f1eb347.zip
ARM: zynq: Call ps7_post_config() for SPL
If ps7_post_config() is defined call it. It is enabling for example level shifters for PL bitstreams. 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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c
index 998896519b..6c5415ac8f 100644
--- a/arch/arm/mach-zynq/spl.c
+++ b/arch/arm/mach-zynq/spl.c
@@ -91,6 +91,21 @@ __weak void ps7_init(void)
*/
}
+__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();
+ debug("SPL bye\n");
+}
+
#ifdef CONFIG_SPL_LOAD_FIT
int board_fit_config_name_match(const char *name)
{
OpenPOWER on IntegriCloud