[U-Boot] [PATCH] ARM: zynq: Call ps7_post_config() for SPL
Michal Simek
michal.simek at xilinx.com
Tue May 10 09:57:31 CEST 2016
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 at xilinx.com>
---
Depends on:
spl: Introduce new function spl_board_prepare_for_boot
---
arch/arm/mach-zynq/spl.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c
index 998896519baa..6c5415ac8f53 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)
{
--
1.9.1
More information about the U-Boot
mailing list