]> git.sur5r.net Git - u-boot/commitdiff
arm: zynq: Drop unnecessary code in SPL board_init_f()
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 01:41:21 +0000 (19:41 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Nov 2015 13:49:52 +0000 (14:49 +0100)
Move to the new way of starting up SPL. Clearing of BSS and calling
board_init_r() is now handled by crt0.S.

Also tidy up the header include order.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/spl.c

index 7bdac3b12d953be699608aea5b191ac8cfbc13cf..18054559f5a60cc0f3150aa1beae6a77d9e749e1 100644 (file)
@@ -7,8 +7,8 @@
 #include <spl.h>
 
 #include <asm/io.h>
-#include <asm/arch/hardware.h>
 #include <asm/spl.h>
+#include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -17,11 +17,7 @@ void board_init_f(ulong dummy)
 {
        ps7_init();
 
-       /* Clear the BSS. */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
        arch_cpu_init();
-       board_init_r(NULL, 0);
 }
 
 #ifdef CONFIG_SPL_BOARD_INIT