]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/t104xrdb/ddr.c
board/freescale: Use unified setup_ddr_tlbs for spl boot and non-spl boot
[people/ms/u-boot.git] / board / freescale / t104xrdb / ddr.c
index cf79d2ddb2d462b7051ee473cbfc5909952f22e7..22d6a5f617693c71bca2050627aa46788a4b66a3 100644 (file)
@@ -124,15 +124,12 @@ phys_size_t initdram(int board_type)
 
 #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
        dram_size =  fsl_ddr_sdram_size();
 #endif
+       dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+       dram_size *= 0x100000;
 
 #if defined(CONFIG_DEEP_SLEEP) && !defined(CONFIG_SPL_BUILD)
        fsl_dp_resume();