]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pm856/pm856.c
FSL DDR: Convert PM856 to new DDR code.
[karo-tx-uboot.git] / board / pm856 / pm856.c
index bf325f89efc57fb821bd4ed8007733b362994435..bd4c0651ae917524a713078f2409c592cb9b375b 100644 (file)
@@ -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