summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mx6/mx6-ddr.h
diff options
context:
space:
mode:
authorEric Nelson <eric@nelint.com>2016-10-30 16:33:48 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2018-09-20 17:22:43 +0200
commit33f702b673dd919fd433270c4ecd5648b4f140c3 (patch)
treed118374d075e4596ff51902822c2319dbe643384 /arch/arm/include/asm/arch-mx6/mx6-ddr.h
parent9cfa6c4bf7755f7dd6aac46d880d5eb1c0eff529 (diff)
mx6: ddr: pass mx6_ddr_sysinfo to calibration routines
The DDR calibration routines have scattered support for bus widths other than 64-bits: -- The mmdc_do_write_level_calibration() routine assumes the presence of PHY1, and -- The mmdc_do_dqs_calibration() routine tries to determine whether one or two DDR PHYs are active by reading MDCTL. Since a caller of these routines must have a valid struct mx6_ddr_sysinfo for use in calling mx6_dram_cfg(), and the bus width is available in the "dsize" field, use this structure to inform the calibration routines which PHYs are active. This allows the use of the DDR calibration routines on CPU variants like i.MX6SL that only have a single MMDC port. Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Marek Vasut <marex@denx.de> (cherry picked from commit 7f17fb7400ff091dd48f86977655c6a57d06b17c)
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/mx6-ddr.h')
-rw-r--r--arch/arm/include/asm/arch-mx6/mx6-ddr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index 99224091ba..ff57157f73 100644
--- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@ -459,8 +459,8 @@ void mx6sl_dram_iocfg(unsigned width,
const struct mx6sl_iomux_grp_regs *);
#if defined(CONFIG_MX6QDL) || defined(CONFIG_MX6Q) || defined(CONFIG_MX6D)
-int mmdc_do_write_level_calibration(void);
-int mmdc_do_dqs_calibration(void);
+int mmdc_do_write_level_calibration(struct mx6_ddr_sysinfo const *sysinfo);
+int mmdc_do_dqs_calibration(struct mx6_ddr_sysinfo const *sysinfo);
#endif
/* configure mx6 mmdc registers */