summaryrefslogtreecommitdiffstats
path: root/board/stxssa/stxssa.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-27 01:04:07 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-08-27 11:43:53 -0500
commit0e7927db138976469e7257e29c1338050a50fcd9 (patch)
tree9480e5cc42c36f14fce058e743b36a40ebc66324 /board/stxssa/stxssa.c
parentc360d9b970fbb9c13744c355879671165bbb9b9e (diff)
downloadtalos-obmc-uboot-0e7927db138976469e7257e29c1338050a50fcd9.tar.gz
talos-obmc-uboot-0e7927db138976469e7257e29c1338050a50fcd9.zip
FSL DDR: Convert STXSSA to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/stxssa/stxssa.c')
-rw-r--r--board/stxssa/stxssa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/stxssa/stxssa.c b/board/stxssa/stxssa.c
index 2c4b54642a..124e1233b1 100644
--- a/board/stxssa/stxssa.c
+++ b/board/stxssa/stxssa.c
@@ -32,7 +32,9 @@
#include <common.h>
#include <pci.h>
#include <asm/processor.h>
+#include <asm/mmu.h>
#include <asm/immap_85xx.h>
+#include <asm/fsl_ddr_sdram.h>
#include <ioports.h>
#include <asm/io.h>
#include <spd_sdram.h>
@@ -308,7 +310,9 @@ initdram (int board_type)
}
#endif
- 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)
/* Initialize and enable DDR ECC.
OpenPOWER on IntegriCloud