summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2016-09-21 10:25:56 +0800
committerMarek Vasut <marex@denx.de>2016-10-27 08:03:07 +0200
commit89a54abf1bd1a8a9ebbea9808199ec8ee3d902bd (patch)
tree35830c1c2691e0a2058793a03ee78fc932d92229 /drivers/ddr
parent5ac5861c4ba851b473e6a24940b412b397627d8d (diff)
downloadu-boot-imx-89a54abf1bd1a8a9ebbea9808199ec8ee3d902bd.zip
u-boot-imx-89a54abf1bd1a8a9ebbea9808199ec8ee3d902bd.tar.gz
u-boot-imx-89a54abf1bd1a8a9ebbea9808199ec8ee3d902bd.tar.bz2
ddr: altera: Configuring SDRAM extra cycles timing parameters
To enable configuration of sdr.ctrlcfg.extratime1 register which enable extra clocks for read to write command timing. This is critical to ensure successful LPDDR2 interface Signed-off-by: Chin Liang See <clsee@altera.com> Cc: Marek Vasut <marex@denx.de> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'drivers/ddr')
-rw-r--r--drivers/ddr/altera/sdram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index 7e4606d..e74c5b0 100644
--- a/drivers/ddr/altera/sdram.c
+++ b/drivers/ddr/altera/sdram.c
@@ -418,6 +418,9 @@ static void sdr_load_regs(const struct socfpga_sdram_config *cfg)
debug("Configuring DRAMODT\n");
writel(cfg->dram_odt, &sdr_ctrl->dram_odt);
+
+ debug("Configuring EXTRATIME1\n");
+ writel(cfg->extratime1, &sdr_ctrl->extratime1);
}
/**