summaryrefslogtreecommitdiff
path: root/board/pm856/pm856.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-26 23:52:07 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-08-27 11:43:51 -0500
commit6bfa8f723cfd82c55e3ef5620ade396916470a70 (patch)
tree10afcccbcc815720e225b1df18aeebdeb86fcbb6 /board/pm856/pm856.c
parentd53bd3e17bd4f460257c19255569ea6dcfaae817 (diff)
downloadu-boot-imx-6bfa8f723cfd82c55e3ef5620ade396916470a70.zip
u-boot-imx-6bfa8f723cfd82c55e3ef5620ade396916470a70.tar.gz
u-boot-imx-6bfa8f723cfd82c55e3ef5620ade396916470a70.tar.bz2
FSL DDR: Convert PM856 to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/pm856/pm856.c')
-rw-r--r--board/pm856/pm856.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/pm856/pm856.c b/board/pm856/pm856.c
index bf325f8..bd4c065 100644
--- a/board/pm856/pm856.c
+++ b/board/pm856/pm856.c
@@ -28,7 +28,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 <spd_sdram.h>
#include <miiphy.h>
@@ -260,7 +262,9 @@ initdram(int board_type)
#endif
#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 = fixed_sdram ();
#endif