ARM: mx6: ddr: use Kconfig for inclusion of DDR calibration routines
authorEric Nelson <eric@nelint.com>
Sun, 30 Oct 2016 23:33:50 +0000 (16:33 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:40:37 +0000 (16:40 +0100)
commita425bf72816abbc3996540e42c33a386e8b8a221
treeacdb411f74583f4764ece3332903e3c337f68511
parent48c7d4379bcf70ce331e441b135cfbf3546dd574
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>
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/cpu/armv7/mx6/ddr.c
arch/arm/include/asm/arch-mx6/mx6-ddr.h
configs/novena_defconfig