[U-Boot,v2,3/3] ddr: vybrid: Add calibration code to memory controler's (DDRMC) setup code
diff mbox series

Message ID 20181205160404.3463-4-lukma@denx.de
State Superseded
Delegated to: Stefano Babic
Headers show
  • ddr: vybrid: Support for vf610 built-in DDR3 memory calibration
Related show

Commit Message

Lukasz Majewski Dec. 5, 2018, 4:04 p.m. UTC
This patch extends the vf610 DDR memory controller code to support SW

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Stefan Agner <stefan.agner@toradex.com>


Changes in v2:
 - Remove not needed #ifdef

 arch/arm/mach-imx/ddrmc-vf610.c | 5 +++++
 1 file changed, 5 insertions(+)

diff mbox series

diff --git a/arch/arm/mach-imx/ddrmc-vf610.c b/arch/arm/mach-imx/ddrmc-vf610.c
index ea6a49e0fa..2f59ec907f 100644
--- a/arch/arm/mach-imx/ddrmc-vf610.c
+++ b/arch/arm/mach-imx/ddrmc-vf610.c
@@ -10,6 +10,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-vf610.h>
 #include <asm/arch/ddrmc-vf610.h>
+#include "ddrmc-vf610-calibration.h"
 void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count)
@@ -233,4 +234,8 @@  void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings,
 	while (!(readl(&ddrmr->cr[80]) & 0x100))
+	ddrmc_calibration(ddrmr);