summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2014-05-02 17:28:04 -0700
committerTom Rini <trini@ti.com>2014-05-12 15:20:05 -0400
commit2a1680e30e3fa8257b60cb9dbd7add32539ac470 (patch)
treecc8ddc1f7e452ba131820fd872833855f440d82d /arch/sandbox
parent7e18a1b9586e4d992f49bcd0728a93f8828b9f98 (diff)
downloadu-boot-imx-2a1680e30e3fa8257b60cb9dbd7add32539ac470.zip
u-boot-imx-2a1680e30e3fa8257b60cb9dbd7add32539ac470.tar.gz
u-boot-imx-2a1680e30e3fa8257b60cb9dbd7add32539ac470.tar.bz2
common/board_f: Initialized global data for generic board
Some platforms (tested on mpc85xx, mpc86xx) use global data before calling function baord_inti_f(). The data should not be cleared later. Any arch which uses global data in generic board board_init_f() should define CONFIG_SYS_GENERIC_GLOBAL_DATA. Signed-off-by: York Sun <yorksun@freescale.com> CC: Scott Wood <scottwood@freescale.com> CC: Simon Glass <sjg@chromium.org> CC: Albert ARIBAUD <albert.u.boot@aribaud.net> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/include/asm/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/config.h b/arch/sandbox/include/asm/config.h
index ec7729e..6c1bff9 100644
--- a/arch/sandbox/include/asm/config.h
+++ b/arch/sandbox/include/asm/config.h
@@ -7,6 +7,7 @@
#ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_
+#define CONFIG_SYS_GENERIC_GLOBAL_DATA
#define CONFIG_SANDBOX_ARCH
/* Used by drivers/spi/sandbox_spi.c and arch/sandbox/include/asm/state.h */