summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTang Yuantian <yuantian.tang@freescale.com>2014-07-23 17:27:52 +0800
committerYork Sun <yorksun@freescale.com>2014-08-12 12:26:47 -0700
commit3067547502873281b19e01c7bc25da63c9b42b1e (patch)
tree4547389585e507b18309d8a7404e5dffbae51f87 /arch
parentcf8ddacffce84376380260c9b0bbe03a39b8884d (diff)
downloadu-boot-imx-3067547502873281b19e01c7bc25da63c9b42b1e.zip
u-boot-imx-3067547502873281b19e01c7bc25da63c9b42b1e.tar.gz
u-boot-imx-3067547502873281b19e01c7bc25da63c9b42b1e.tar.bz2
powerpc/mpc85xx: Make boot flag effective
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/lib/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c
index 0296205..6eaab88 100644
--- a/arch/powerpc/lib/board.c
+++ b/arch/powerpc/lib/board.c
@@ -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();