]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/t208xqds/ddr.c
board/t208xqds: Add support of 2-stage NAND/SPI/SD boot
[people/ms/u-boot.git] / board / freescale / t208xqds / ddr.c
index ed1334d98593e9eed17bfb0f6eca43964c3a1898..3348971b01eb00211acd8654c096f043037728db 100644 (file)
@@ -107,13 +107,16 @@ phys_size_t initdram(int board_type)
 {
        phys_size_t dram_size;
 
+#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_RAMBOOT_PBL)
        puts("Initializing....using SPD\n");
-
        dram_size = fsl_ddr_sdram();
 
        dram_size = setup_ddr_tlbs(dram_size / 0x100000);
        dram_size *= 0x100000;
+#else
+       /* DDR has been initialised by first stage boot loader */
+       dram_size =  fsl_ddr_sdram_size();
+#endif
 
-       puts("    DDR: ");
        return dram_size;
 }