All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [Patch v2 1/2] common/board_f: Preserve global data for mpc85xx and mpc86xx
@ 2014-04-30 21:31 York Sun
  2014-04-30 21:31 ` [U-Boot] [Patch v2 2/2] common/board_f: Fix size variable York Sun
  2014-04-30 22:45 ` [U-Boot] [Patch v2 1/2] common/board_f: Preserve global data for mpc85xx and mpc86xx Scott Wood
  0 siblings, 2 replies; 17+ messages in thread
From: York Sun @ 2014-04-30 21:31 UTC (permalink / raw)
  To: u-boot

For powerpc SoCs (including mpc85xx, mpc86xx), global data is used for
initializing LAWs, before calling function baord_inti_f(). This data
should not be cleared later.

Signed-off-by: York Sun <yorksun@freescale.com>
---
Change log
 v2: Instead of adding back gd init for all PPC, preserve gd for mpc85xx and mpc86xx.

 Note, need other maintainers to fix 83xx, 5xxx, 512x as I don't have boards to verify.

 common/board_f.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index cbdf06f..eebb377 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -970,7 +970,11 @@ static init_fnc_t init_sequence_f[] = {
 
 void board_init_f(ulong boot_flags)
 {
-#ifndef CONFIG_X86
+	/*
+	 * For MPC85xx, global data is initialized in cpu_init_early_f() and
+	 * used for init_law(). gd should not be cleared in this function.
+	 */
+#if !defined(CONFIG_X86) && !defined(CONFIG_MPC85xx) && !defined(CONFIG_MPC86xx)
 	gd_t data;
 
 	gd = &data;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-05-01  0:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 21:31 [U-Boot] [Patch v2 1/2] common/board_f: Preserve global data for mpc85xx and mpc86xx York Sun
2014-04-30 21:31 ` [U-Boot] [Patch v2 2/2] common/board_f: Fix size variable York Sun
2014-04-30 22:45 ` [U-Boot] [Patch v2 1/2] common/board_f: Preserve global data for mpc85xx and mpc86xx Scott Wood
2014-04-30 22:48   ` York Sun
2014-04-30 22:51     ` Scott Wood
2014-04-30 22:56       ` York Sun
2014-04-30 22:57         ` Scott Wood
2014-04-30 23:40           ` York Sun
2014-04-30 23:44             ` Scott Wood
2014-04-30 23:48               ` York Sun
2014-04-30 23:52                 ` Scott Wood
2014-05-01  0:01                   ` York Sun
2014-05-01  0:02                     ` Scott Wood
2014-05-01  0:05                       ` York Sun
2014-05-01  0:11                         ` Scott Wood
2014-05-01  0:17                           ` York Sun
2014-05-01  0:19                             ` Scott Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.