]> git.sur5r.net Git - u-boot/commitdiff
ARM: zynq: Call ps7_post_config() for SPL
authorMichal Simek <michal.simek@xilinx.com>
Tue, 10 May 2016 05:55:52 +0000 (07:55 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 24 May 2016 09:15:01 +0000 (11:15 +0200)
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>
arch/arm/mach-zynq/spl.c

index 998896519baa52f7e500e22d9109d258d4369642..6c5415ac8f5360a936f2219e512f2258b8778061 100644 (file)
@@ -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)
 {