]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/mpc85xx: Make boot flag effective
authorTang Yuantian <yuantian.tang@freescale.com>
Wed, 23 Jul 2014 09:27:52 +0000 (17:27 +0800)
committerYork Sun <yorksun@freescale.com>
Tue, 12 Aug 2014 19:26:47 +0000 (12:26 -0700)
bootflag as a parameter is passed to board_init_f().
But it is not actually used in this function.
Make it effective by assigned it to gd->flags.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/powerpc/lib/board.c

index 02962054f69edb9afc384a52522efb4c4d2d01da..6eaab882437dda464db83c2943669203a26f2998 100644 (file)
@@ -366,6 +366,8 @@ void board_init_f(ulong bootflag)
        memset((void *) gd, 0, sizeof(gd_t));
 #endif
 
+       gd->flags = bootflag;
+
        for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr)
                if ((*init_fnc_ptr) () != 0)
                        hang();