From: Michal Simek Date: Tue, 10 May 2016 05:55:52 +0000 (+0200) Subject: ARM: zynq: Call ps7_post_config() for SPL X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=454c751db078e3080860f036783440b0b9a2e296;p=thirdparty%2Fu-boot.git 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 --- diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 723019d2527..bf8bd91d5a2 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -90,3 +90,18 @@ __weak void ps7_init(void) * 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(); + debug("SPL bye\n"); +}