diff mbox

[U-Boot,1/2] powerpc/mpc85xx: Make boot flag effective

Message ID 1406107673-33257-1-git-send-email-Yuantian.Tang@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

tang yuantian July 23, 2014, 9:27 a.m. UTC
From: Tang Yuantian <yuantian.tang@freescale.com>

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>
---
 arch/powerpc/lib/board.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

York Sun Aug. 20, 2014, 7:34 p.m. UTC | #1
On 07/23/2014 02:27 AM, Yuantian.Tang@freescale.com wrote:
> From: Tang Yuantian <yuantian.tang@freescale.com>
> 
> 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>
> ---

Applied to u-boot-mpc85xx master branch, awaiting for upstream.

York
diff mbox

Patch

diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c
index 50eb820..62a97a8 100644
--- a/arch/powerpc/lib/board.c
+++ b/arch/powerpc/lib/board.c
@@ -363,6 +363,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();