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:50 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2018-09-20 17:22:43 +0200
commit9967afe7f2bdc9473667f3f059828f22ecb8bc8b (patch)
treeb74df3ce3d5709afea68754ba8afa09a3bc4420c /arch/arm/include/asm/arch-mx6/mx6-ddr.h
parent2c7e3da3c2545bbb97e89db3b8ab061c9a3388d4 (diff)
ARM: mx6: ddr: use Kconfig for inclusion of DDR calibration routines
The DDR calibration routines are gated by conditionals for the i.MX6DQ SOCs, but with the use of the sysinfo parameter, these are usable on at least i.MX6SDL and i.MX6SL variants with DDR3. Also, since only the Novena board currently uses the dynamic DDR calibration routines, these routines waste space on other boards using SPL. Add a KConfig entry to allow boards to selectively include the DDR calibration routines. Signed-off-by: Eric Nelson <eric@nelint.com> (cherry picked from commit a425bf72816abbc3996540e42c33a386e8b8a221)
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/mx6-ddr.h')
-rw-r--r--arch/arm/include/asm/arch-mx6/mx6-ddr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index 99b3ba98f9..b47c1278b9 100644
--- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@ -458,7 +458,7 @@ void mx6sl_dram_iocfg(unsigned width,
const struct mx6sl_iomux_ddr_regs *,
const struct mx6sl_iomux_grp_regs *);
-#if defined(CONFIG_MX6QDL) || defined(CONFIG_MX6Q) || defined(CONFIG_MX6D)
+#if defined(CONFIG_MX6_DDRCAL)
int mmdc_do_write_level_calibration(struct mx6_ddr_sysinfo const *sysinfo);
int mmdc_do_dqs_calibration(struct mx6_ddr_sysinfo const *sysinfo);
void mmdc_read_calibration(struct mx6_ddr_sysinfo const *sysinfo,