summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc83xx/spl_minimal.c
diff options
context:
space:
mode:
authormario.six@gdsys.cc <mario.six@gdsys.cc>2017-01-17 08:33:48 +0100
committerYork Sun <york.sun@nxp.com>2017-01-31 17:50:35 -0800
commitdbcb2c0e2ba28fc61ab03f57de14f1085e69834f (patch)
tree4873d3a844459a5fc6dea2ee43494cb7479c543d /arch/powerpc/cpu/mpc83xx/spl_minimal.c
parente80311a5f09967b2c33a772c26983abfbc821140 (diff)
powerpc: mpc83xx: Enable pre-relocation malloc
To enable DM on MPC83xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six <mario.six@gdsys.cc> [York S: Fixed compiling warning for unused variable 'i'] Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc83xx/spl_minimal.c')
-rw-r--r--arch/powerpc/cpu/mpc83xx/spl_minimal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/spl_minimal.c b/arch/powerpc/cpu/mpc83xx/spl_minimal.c
index 845861eea7..1c65e4cb78 100644
--- a/arch/powerpc/cpu/mpc83xx/spl_minimal.c
+++ b/arch/powerpc/cpu/mpc83xx/spl_minimal.c
@@ -18,14 +18,10 @@ DECLARE_GLOBAL_DATA_PTR;
*/
void cpu_init_f (volatile immap_t * im)
{
- int i;
-
/* Pointer is writable since we allocated a register for it */
gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
- /* Clear initial global data */
- for (i = 0; i < sizeof(gd_t); i++)
- ((char *)gd)[i] = 0;
+ /* global data region was cleared in start.S */
/* system performance tweaking */