summaryrefslogtreecommitdiff
path: root/board/atum8548/atum8548.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/atum8548/atum8548.c')
-rw-r--r--board/atum8548/atum8548.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/atum8548/atum8548.c b/board/atum8548/atum8548.c
index 34f4599..337cf31 100644
--- a/board/atum8548/atum8548.c
+++ b/board/atum8548/atum8548.c
@@ -29,7 +29,9 @@
#include <asm/processor.h>
#include <asm/immap_85xx.h>
#include <asm/immap_fsl_pci.h>
+#include <asm/fsl_ddr_sdram.h>
#include <asm/io.h>
+#include <asm/mmu.h>
#include <spd_sdram.h>
#include <miiphy.h>
#include <libfdt.h>
@@ -106,8 +108,10 @@ initdram(int board_type)
puts("Initializing\n");
#if defined(CONFIG_SPD_EEPROM)
- puts("spd_sdram\n");
- dram_size = spd_sdram ();
+ puts("fsl_ddr_sdram\n");
+ dram_size = fsl_ddr_sdram();
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+ dram_size *= 0x100000;
#else
puts("fixed_sdram\n");
dram_size = fixed_sdram ();