mx6: ddr: add routine to return DDR calibration data
authorEric Nelson <eric@nelint.com>
Sun, 30 Oct 2016 23:33:49 +0000 (16:33 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:40:25 +0000 (16:40 +0100)
commit48c7d4379bcf70ce331e441b135cfbf3546dd574
tree291d4b4dc6bfd06bf847b2ff6f5e3a202f681bbe
parent7f17fb7400ff091dd48f86977655c6a57d06b17c
mx6: ddr: add routine to return DDR calibration data

Add routine mmdc_read_calibration() to return the output of DDR
calibration. This can be used for debugging or to aid in construction
of static memory configuration.

This routine will be used in a subsequent patch set adding a virtual
"mx6memcal" board, but could also be useful when gathering statistics
during an initial production run.

Signed-off-by: Eric Nelson <eric@nelint.com>
arch/arm/cpu/armv7/mx6/ddr.c
arch/arm/include/asm/arch-mx6/mx6-ddr.h