MLK-13361-3 arm: imx6q: busfreq: restore mmdc timing settings for 100MHz
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Wed, 19 Oct 2016 17:32:10 +0000 (12:32 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:29 +0000 (14:52 -0500)
commit53dc71289f97b561627ab4f959d57acabe0504f6
tree37546378e08c28ae0d0e9959ba81682930191d6e
parentf34e2dc4ce95a1e0352c0812453eedca948bf2b8
MLK-13361-3 arm: imx6q: busfreq: restore mmdc timing settings for 100MHz

The timing settings for 100MHz are almost the same as the ones for
400MHz except for the MMDCx_MISC[RALAT] parameter which needs to be
set to 2 cycles.

For the 100MHz case the restoration of the mmdc setting should be performed
in 2 steps: restore the mmdc setting and then overwrite the RALAT setting
for 2 cycles.

A decision code within the "mmdc_clk_lower_equal_100MHz" macro is added
to go to the "equal to 100MHz" or to the "lower to 100MHz" case

Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Signed-off-by: Alejandro Lozano <alejandro.lozano@nxp.com>
arch/arm/mach-imx/lpddr2_freq_imx6q.S