summaryrefslogtreecommitdiffstats
path: root/board/freescale/mpc8544ds/mpc8544ds.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-08-28 00:26:52 +0200
committerWolfgang Denk <wd@denx.de>2008-08-28 00:26:52 +0200
commit0ba6bfef061872dbe04e6bebbb225806c7fa34ec (patch)
tree25d0e07c2d902998c3a679aaf6bf4ffedff9289c /board/freescale/mpc8544ds/mpc8544ds.c
parentd26b739afe5a6760bd345743188759cd9d0f3b47 (diff)
parent9cff4448a9cb882defe6c8bde73b77fc0c636799 (diff)
downloadtalos-obmc-uboot-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.tar.gz
talos-obmc-uboot-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.zip
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/mpc8544ds/mpc8544ds.c')
-rw-r--r--board/freescale/mpc8544ds/mpc8544ds.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c
index c39ce11723..4e976b78fc 100644
--- a/board/freescale/mpc8544ds/mpc8544ds.c
+++ b/board/freescale/mpc8544ds/mpc8544ds.c
@@ -24,10 +24,11 @@
#include <command.h>
#include <pci.h>
#include <asm/processor.h>
+#include <asm/mmu.h>
#include <asm/immap_85xx.h>
#include <asm/immap_fsl_pci.h>
+#include <asm/fsl_ddr_sdram.h>
#include <asm/io.h>
-#include <spd_sdram.h>
#include <miiphy.h>
#include <libfdt.h>
#include <fdt_support.h>
@@ -38,8 +39,6 @@
extern void ddr_enable_ecc(unsigned int dram_size);
#endif
-void sdram_init(void);
-
int checkboard (void)
{
volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
@@ -69,7 +68,11 @@ initdram(int board_type)
puts("Initializing\n");
- dram_size = spd_sdram();
+ dram_size = fsl_ddr_sdram();
+
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+
+ dram_size *= 0x100000;
#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
/*
OpenPOWER on IntegriCloud