From: Wolfgang Denk Date: Wed, 19 Nov 2014 13:09:49 +0100 Subject: [U-Boot] [PATCH 3/3] powerpc: mpc52xx: Clear GD in the main U-Boot stage for SPL usage In-Reply-To: <1416386268-31398-3-git-send-email-sr@denx.de> References: <1416386268-31398-1-git-send-email-sr@denx.de> <1416386268-31398-3-git-send-email-sr@denx.de> Message-ID: <20141119120949.59F69382B9D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan Roese, In message <1416386268-31398-3-git-send-email-sr@denx.de> you wrote: > When an MPC5200 based board is used with SPL support, the main > U-Boot needs to clear the GD (global data) struct again. > > Otherwise the generic board init code in board_init_f (when > CONFIG_SYS_GENERIC_BOARD is defined) will not initialize all > GD variables correctly. Resulting in a hangup on the a4m2k > board. > > Signed-off-by: Stefan Roese > Cc: Wolfgang Denk > --- > arch/powerpc/cpu/mpc5xxx/start.S | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Do not simplify the design of a program if a way can be found to make it complex and wonderful.