summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/ppc4xx/cpu_init.c
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2014-07-25 10:10:23 +0200
committerStefan Roese <sr@denx.de>2014-07-25 10:55:49 +0200
commitd29437aa7709a0bb77c8eec47b151267721db8ff (patch)
tree479a04d00e3be488b24bf1d140dc4b9329eb9383 /arch/powerpc/cpu/ppc4xx/cpu_init.c
parentfbe79a17fddb7f0b11aa15b9c93e9a4a26165ed8 (diff)
downloadtalos-obmc-uboot-d29437aa7709a0bb77c8eec47b151267721db8ff.tar.gz
talos-obmc-uboot-d29437aa7709a0bb77c8eec47b151267721db8ff.zip
ppc: Make ppc4xx ready for CONFIG_SYS_GENERIC_BOARD
The generic board infrastructure assumes that gd is set by arch code. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/powerpc/cpu/ppc4xx/cpu_init.c')
-rw-r--r--arch/powerpc/cpu/ppc4xx/cpu_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c b/arch/powerpc/cpu/ppc4xx/cpu_init.c
index d465dcda8b..0b27d2912d 100644
--- a/arch/powerpc/cpu/ppc4xx/cpu_init.c
+++ b/arch/powerpc/cpu/ppc4xx/cpu_init.c
@@ -12,9 +12,7 @@
#include <asm/ppc4xx-gpio.h>
#include <asm/ppc4xx.h>
-#if defined(CONFIG_405GP) || defined(CONFIG_405EP)
DECLARE_GLOBAL_DATA_PTR;
-#endif
#ifndef CONFIG_SYS_PLL_RECONFIG
#define CONFIG_SYS_PLL_RECONFIG 0
@@ -451,6 +449,8 @@ cpu_init_f (void)
mtdcr(PLB4A1_ACR, (mfdcr(PLB4A1_ACR) & ~PLB4Ax_ACR_RDP_MASK) |
PLB4Ax_ACR_RDP_4DEEP);
#endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */
+
+ gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
}
/*
OpenPOWER on IntegriCloud