]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: socfpga: Do not call board_init_r() from board_init_f()
authorMarek Vasut <marex@denx.de>
Sat, 29 Aug 2015 08:16:20 +0000 (10:16 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 4 Sep 2015 09:54:20 +0000 (11:54 +0200)
Instead of calling board_init_r() directly from board_init_f(), just
return from board_init_f(). This will make the code continue executing
in crt0.S _main(), from which the board_init_r() is called. This patch
aligns the SoCFPGA SPL with the correct SPL design as well as reduces
the stack utilisation slightly.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/mach-socfpga/spl.c

index 13ec24bc169ef2ffb32fe4affa58985756dee5c6..775a82780f7fb9b2aac63d859f829ca08f2c125f 100644 (file)
@@ -180,6 +180,4 @@ void board_init_f(ulong dummy)
 
        /* Configure simple malloc base pointer into RAM. */
        gd->malloc_base = CONFIG_SYS_TEXT_BASE + (1024 * 1024);
-
-       board_init_r(NULL, 0);
 }