]> git.sur5r.net Git - u-boot/commit
sandbox: Set up global data before board_init_f()
authorSimon Glass <sjg@chromium.org>
Fri, 11 Jul 2014 04:23:27 +0000 (22:23 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:05:39 +0000 (14:05 +0100)
commit4d94dfa0594260245813ea150e276908cc677199
treedd76c6a8cfeb5daee2b8ede36804aa9034696e44
parentd93041a4ca0e421dd2a5683563de10e4694e6394
sandbox: Set up global data before board_init_f()

At present sandbox defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that
the global_data pointer is set up in board_init_f().

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

Make this change to simplify the init process.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/include/asm/config.h