]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm: mvebu: Do not call board_init_r() from board_init_f()
authorStefan Roese <sr@denx.de>
Mon, 31 Aug 2015 05:20:12 +0000 (07:20 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Wed, 21 Oct 2015 00:25:01 +0000 (02:25 +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 MVEBU SPL with the correct SPL design as well as reduces
the stack utilisation slightly.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/mach-mvebu/spl.c

index 26ff1a24ac103458307014ddea30ac41b9b87e3c..e273339648fb542863ba400be3b53eb69a083ad9 100644 (file)
@@ -78,6 +78,4 @@ void board_init_f(ulong dummy)
         */
        return_to_bootrom();
 #endif
-
-       board_init_r(NULL, 0);
 }