powerpc/mpc85xx: Add board support for ucp1020
[oweals/u-boot.git] / arch / powerpc / cpu / ppc4xx / cpu_init.c
index 22561231cb8d2d1f18cf39e69d042e7d45b65582..5f5c72002e444b134fa2fc138df2fc1c840e1f31 100644 (file)
@@ -450,7 +450,12 @@ cpu_init_f (void)
              PLB4Ax_ACR_RDP_4DEEP);
 #endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */
 
+#ifndef CONFIG_SYS_GENERIC_BOARD
        gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
+
+       /* Clear initial global data */
+       memset((void *)gd, 0, sizeof(gd_t));
+#endif
 }
 
 /*