Skip to content
Snippets Groups Projects
Commit bd44758a authored by Simon Glass's avatar Simon Glass Committed by Michal Simek
Browse files

arm: zynq: Drop unnecessary code in SPL board_init_f()


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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent fa43f69e
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <spl.h> #include <spl.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/spl.h> #include <asm/spl.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -17,11 +17,7 @@ void board_init_f(ulong dummy) ...@@ -17,11 +17,7 @@ void board_init_f(ulong dummy)
{ {
ps7_init(); ps7_init();
/* Clear the BSS. */
memset(__bss_start, 0, __bss_end - __bss_start);
arch_cpu_init(); arch_cpu_init();
board_init_r(NULL, 0);
} }
#ifdef CONFIG_SPL_BOARD_INIT #ifdef CONFIG_SPL_BOARD_INIT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment