MLK-13361-2 arm: imx6q: busfreq: wrap ralat settings on a macro
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Wed, 19 Oct 2016 17:06:50 +0000 (12:06 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:29 +0000 (14:52 -0500)
commitf34e2dc4ce95a1e0352c0812453eedca948bf2b8
tree48011d2467b9317807a1ce187b575c5e7357dfbc
parent86207be8400b895dad9f6b79e8a4f5c269101783
MLK-13361-2 arm: imx6q: busfreq: wrap ralat settings on a macro

Setting the Read Additional Latency (RALAT) to 2 cycles,
MMDCx_MDMISC[RALAT] = 2, is needed for 24MHz operation point.

Currently this is set within the "set_timings_below_100MHz_operation"
macro, which is use for the 24MHz case.

In order to provide a generic way for setting RALAT=2 the code
is wrapped in this new macro: "set_mmdc_misc_ralat_2_cycles", so
other set points (besides the below 100MHz case) can reuse this code.

As an example, for 100Mhz operation the RALAT should be set to 2 cycles,
however, the rest of the MMDCFG parameter are not the same as in the
"below_100MHz" case. So, this macro can be reused for its RALAT part.

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