From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Wed, 18 Jul 2018 15:55:41 +0200 Subject: [U-Boot] [RFC PATCH 3/4] arm: zynq: spl: fix FPGA initialization In-Reply-To: <20180718074141.16539-4-luaraneda@gmail.com> References: <20180718074141.16539-1-luaraneda@gmail.com> <20180718074141.16539-4-luaraneda@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18.7.2018 09:41, Luis Araneda wrote: > commit 4aba5fb857c1 ("arm: zynq: Rework FPGA initialization") > moved FPGA initialization from board_init() to arch_early_init_r(), > which is not called as part of the SPL > > Fix this by calling arch_early_init_r() in the spl_board_init() > function, so the FPGA is correctly initialized > > Signed-off-by: Luis Araneda > --- > arch/arm/mach-zynq/spl.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c > index 83297d6c69..9b7c0be951 100644 > --- a/arch/arm/mach-zynq/spl.c > +++ b/arch/arm/mach-zynq/spl.c > @@ -29,6 +29,9 @@ void board_init_f(ulong dummy) > void spl_board_init(void) > { > preloader_console_init(); > +#if defined(CONFIG_ARCH_EARLY_INIT_R) && defined(CONFIG_SPL_FPGA_SUPPORT) > + arch_early_init_r(); > +#endif > board_init(); > } > #endif > This looks good. M