ddr: vybrid: Provide code to perform on-boot calibration
authorLukasz Majewski <lukma@denx.de>
Wed, 5 Dec 2018 16:04:02 +0000 (17:04 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 15 Feb 2019 11:16:50 +0000 (12:16 +0100)
commit548cc1095f290a0787476d61de32213a9195ff7b
treec6734207c165bd38a469537247052df67c5c73fa
parentc5b22a5360662597511bebf95058c9dc777ee788
ddr: vybrid: Provide code to perform on-boot calibration

This patch provides the code to calibrate the DDR's
DQS to DQ signals (RDLVL).

It is based on:
VFxxx Controller Reference Manual, Rev. 0, 10/2016, page 1600
10.1.6.16.4.1 "Software Read Leveling in MC Evaluation Mode"

and NXP's community thread:
"Vybrid: About DDR leveling feature on DDRMC."
https://community.nxp.com/thread/395323

Signed-off-by: Lukasz Majewski <lukma@denx.de>
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/ddrmc-vf610-calibration.c [new file with mode: 0644]
arch/arm/mach-imx/ddrmc-vf610-calibration.h [new file with mode: 0644]