]> git.sur5r.net Git - u-boot/commitdiff
ARM: zynq: Call zynq board_init() in SPL
authorMichal Simek <monstr@monstr.eu>
Fri, 25 Apr 2014 10:15:40 +0000 (12:15 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 14 May 2014 05:43:34 +0000 (07:43 +0200)
Call board_init() if SPL is configured with CONFIG_SPL_BOARD_INIT.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/arm/cpu/armv7/zynq/spl.c
include/configs/zynq-common.h

index fcad762c030644d3d004cebbbdba9670a9b638a4..c3ea221549ffdcd4d6df2a95d03d12d1baff20f0 100644 (file)
@@ -28,6 +28,13 @@ void board_init_f(ulong dummy)
        board_init_r(NULL, 0);
 }
 
+#ifdef CONFIG_SPL_BOARD_INIT
+void spl_board_init(void)
+{
+       board_init();
+}
+#endif
+
 u32 spl_boot_device(void)
 {
        u32 mode;
index 731e69b5fd89dcb2aa275f38f04d7e87dcfa1def..2080a612bbd49242d0042ee2e0e6c814b3096bdf 100644 (file)
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
 #define CONFIG_SPL_LIBGENERIC_SUPPORT
 #define CONFIG_SPL_SERIAL_SUPPORT
+#define CONFIG_SPL_BOARD_INIT
 
 #define CONFIG_SPL_LDSCRIPT    "arch/arm/cpu/armv7/zynq/u-boot-spl.lds"