]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/socrates/sdram.c
net: fec_mxc: use some more appropriate return values
[karo-tx-uboot.git] / board / socrates / sdram.c
index 313efae90f0cacc71fbd5c4b6d97b7f27531a14a..aebd02f76cfb1ce05602c12cdd618e40dad873b0 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
-#include <asm/fsl_ddr_sdram.h>
+#include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <spd_sdram.h>
@@ -24,7 +24,8 @@
  */
 phys_size_t fixed_sdram(void)
 {
-       volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC8xxx_DDR_ADDR);
+       struct ccsr_ddr __iomem *ddr =
+               (struct ccsr_ddr __iomem *)(CONFIG_SYS_FSL_DDR_ADDR);
 
        /*
         * Disable memory controller.