summaryrefslogtreecommitdiff
path: root/board/socrates/sdram.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/socrates/sdram.c
parentd26b739afe5a6760bd345743188759cd9d0f3b47 (diff)
parent9cff4448a9cb882defe6c8bde73b77fc0c636799 (diff)
downloadu-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.zip
u-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.tar.gz
u-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/socrates/sdram.c')
-rw-r--r--board/socrates/sdram.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c
index 768fe05..12d1b8a 100644
--- a/board/socrates/sdram.c
+++ b/board/socrates/sdram.c
@@ -25,6 +25,7 @@
#include <common.h>
#include <asm/processor.h>
#include <asm/immap_85xx.h>
+#include <asm/fsl_ddr_sdram.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <spd_sdram.h>
@@ -80,7 +81,9 @@ phys_size_t initdram (int board_type)
{
long dram_size = 0;
#if defined(CONFIG_SPD_EEPROM)
- dram_size = spd_sdram ();
+ dram_size = fsl_ddr_sdram();
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+ dram_size *= 0x100000;
#else
dram_size = sdram_setup(CONFIG_DDR_DEFAULT_CL);
#endif