summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera/sdram_gen5.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-02-06 23:18:42 -0500
committerTom Rini <trini@konsulko.com>2020-02-06 23:18:42 -0500
commit457faef262c5c9533c344f25eafb10e757149a34 (patch)
tree9c1b2e777e37d997410b5f4e97b883fa0bb2ad7d /drivers/ddr/altera/sdram_gen5.c
parent8a6ffeda97dfda5263ef40e1a4efb25b032ce04c (diff)
parent9a5a90ad9b3234c4739427cbe11219c51f0e9bd1 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
- Gen 5 and Watchdog fixes
Diffstat (limited to 'drivers/ddr/altera/sdram_gen5.c')
-rw-r--r--drivers/ddr/altera/sdram_gen5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c
index a3b914fdfc0..3ea5a7c0c0d 100644
--- a/drivers/ddr/altera/sdram_gen5.c
+++ b/drivers/ddr/altera/sdram_gen5.c
@@ -434,8 +434,10 @@ static void sdr_load_regs(struct socfpga_sdr_ctrl *sdr_ctrl,
debug("Configuring DRAMODT\n");
writel(cfg->dram_odt, &sdr_ctrl->dram_odt);
- debug("Configuring EXTRATIME1\n");
- writel(cfg->extratime1, &sdr_ctrl->extratime1);
+ if (dram_is_ddr(3)) {
+ debug("Configuring EXTRATIME1\n");
+ writel(cfg->extratime1, &sdr_ctrl->extratime1);
+ }
}
/**