]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/freescale/bsc9131rdb/spl_minimal.c
fdt: Allow ft_board_setup() to report failure
[karo-tx-uboot.git] / board / freescale / bsc9131rdb / spl_minimal.c
index dd5ea95e331e4586762920eeccb12537c6703ac2..bd8560b55550474de84d7c98ab97f890a5ef98f9 100644 (file)
@@ -10,7 +10,7 @@
 #include <nand.h>
 #include <linux/compiler.h>
 #include <asm/fsl_law.h>
-#include <asm/fsl_ddr_sdram.h>
+#include <fsl_ddr_sdram.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -20,7 +20,8 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 static void sdram_init(void)
 {
-       ccsr_ddr_t *ddr = (ccsr_ddr_t *)CONFIG_SYS_MPC8xxx_DDR_ADDR;
+       struct ccsr_ddr __iomem *ddr =
+               (struct ccsr_ddr __iomem *)CONFIG_SYS_FSL_DDR_ADDR;
 
        __raw_writel(CONFIG_SYS_DDR_CS0_BNDS, &ddr->cs0_bnds);
        __raw_writel(CONFIG_SYS_DDR_CS0_CONFIG, &ddr->cs0_config);