summaryrefslogtreecommitdiffstats
path: root/board/freescale/t208xqds
diff options
context:
space:
mode:
authorShengzhou Liu <Shengzhou.Liu@nxp.com>2016-05-31 15:39:06 +0800
committerYork Sun <york.sun@nxp.com>2016-06-03 22:12:54 -0700
commit534992827756c3a1ab49823ca487702a954fe433 (patch)
treef00bfe6d3ebd02c921963584bb491fa63c7aa151 /board/freescale/t208xqds
parented4708aaeaf74008d199866bfbd450d91439a9cf (diff)
downloadblackbird-obmc-uboot-534992827756c3a1ab49823ca487702a954fe433.tar.gz
blackbird-obmc-uboot-534992827756c3a1ab49823ca487702a954fe433.zip
board/freescale: Use unified setup_ddr_tlbs for spl boot and non-spl boot
We should use unified setup_ddr_tlbs() for spl boot and non-spl boot to make sure 'M' bit is set for DDR TLB to maintain cache coherence. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/t208xqds')
-rw-r--r--board/freescale/t208xqds/ddr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/freescale/t208xqds/ddr.c b/board/freescale/t208xqds/ddr.c
index f1aff5481e..f96470f020 100644
--- a/board/freescale/t208xqds/ddr.c
+++ b/board/freescale/t208xqds/ddr.c
@@ -108,13 +108,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
/* DDR has been initialised by first stage boot loader */
dram_size = fsl_ddr_sdram_size();
#endif
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+ dram_size *= 0x100000;
return dram_size;
}
OpenPOWER on IntegriCloud