]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc83xx/cpu_init.c
board_f: Drop board_type parameter from initdram()
[u-boot] / arch / powerpc / cpu / mpc83xx / cpu_init.c
index f911275b25f92e7c698dfc4c9238d816065a480a..2a9db0c51b8908ee5ad231d5ef04a02e7b1e43f9 100644 (file)
@@ -8,6 +8,7 @@
 #include <mpc83xx.h>
 #include <ioports.h>
 #include <asm/io.h>
+#include <asm/processor.h>
 #ifdef CONFIG_USB_EHCI_FSL
 #include <usb/ehci-ci.h>
 #endif
@@ -205,8 +206,7 @@ void cpu_init_f (volatile immap_t * im)
        /* 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 */
-       memset ((void *) gd, 0, sizeof (gd_t));
+       /* global data region was cleared in start.S */
 
        /* system performance tweaking */
        clrsetbits_be32(&im->arbiter.acr, acr_mask, acr_val);