]> git.sur5r.net Git - u-boot/commit
arm: Set up global data before board_init_f()
authorSimon Glass <sjg@chromium.org>
Fri, 11 Jul 2014 04:23:26 +0000 (22:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 4 Aug 2014 11:23:59 +0000 (05:23 -0600)
commitaae2aef9c807a13ec9074efe48fae5bb5e3c6039
tree3b537768461423e5eccec8cc43aa5a47d423189b
parent25b4adbba018633b943a99322bfb2fb819c0bafb
arm: Set up global data before board_init_f()

At present arm defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that
the global_data pointer is set up in board_init_f(). However it is
actually set up before this, it just isn't zeroed.

If we zero the global data before calling board_init_f() then we
don't need to define CONFIG_SYS_GENERIC_GLOBAL_DATA.

Make this change (on arm32 only) to simplify the init process. I
don't have the ability to test aarch64 yet.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Tom Rini <trini@ti.com>
arch/arm/include/asm/config.h
arch/arm/lib/crt0.S