arm64: zynqmp: Do not call bss init and board_init_r from board_init_f
authorMichal Simek <michal.simek@xilinx.com>
Thu, 19 Dec 2019 12:56:33 +0000 (13:56 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 14 Jan 2020 08:05:53 +0000 (09:05 +0100)
There is no reason to clear bss and call board_init_r() from board_init_f()
beca it can be called directly from crt0_64.S with also support for SPL
stack relocation to SDRAM.
For more information please take a look at arch/arm/lib/crt0_64.S

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynqmp/spl.c

index 6ba42bb42f62d04c6a8bd3c7d6257917190a18e7..a2079535a58b380d2f9d7680beaf8f125561a817 100644 (file)
@@ -27,13 +27,6 @@ void board_init_f(ulong dummy)
 #endif
        /* Delay is required for clocks to be propagated */
        udelay(1000000);
-
-       debug("Clearing BSS 0x%p - 0x%p\n", __bss_start, __bss_end);
-       /* Clear the BSS */
-       memset(__bss_start, 0, __bss_end - __bss_start);
-
-       /* No need to call timer init - it is empty for ZynqMP */
-       board_init_r(NULL, 0);
 }
 
 static void ps_mode_reset(ulong mode)