MLK-13362-2 ARM: imx: fix audio bus mode hang for imx6dq lpddr2
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Tue, 21 Feb 2017 01:24:25 +0000 (19:24 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:46 +0000 (15:10 -0500)
commit461e802ff077e271357bd7971f7b4bd24d22733f
tree7da2c48769306df1adeb76f88cdf2958c556e8ce
parent8be4b9e4eacc02d210eac209029bba39268197cd
MLK-13362-2 ARM: imx: fix audio bus mode hang for imx6dq lpddr2

The double MU count operations should be only done when changing the
MMDC frequency from 400MHz to a low frequency(100MHz or 24MHz).
Otherwise, the MU count may overflow and lead to system hang/panic issue.

This is basically a porting of 4d09bf110b878a6f720ee9d19c8b64ceace95fbe
to imx6dq lppdr2.

Also a member "freq" has been added to the mmdc_settings_info structure
to store the current ddr frequency on iram settings to be able to execute
the double MU count, only on 400MHz mode and bypass the operation
otherwise within the update freq routine.

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