MLK-13362 ARM: imx: fix audio bus mode hang on imx6sx/ul/sll
authorBai Ping <ping.bai@nxp.com>
Wed, 19 Oct 2016 00:48:34 +0000 (08:48 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:28 +0000 (14:52 -0500)
commitf9d3193d338c17f4ff4d4f6905bb1a9f2afd2a7f
tree4d6d636976a0e741b7eab3bc1acb170b746431fd
parent66e1b3e18030f232f460a4bd24cbf10a17607195
MLK-13362 ARM: imx: fix audio bus mode hang on imx6sx/ul/sll

When MMDC runs at a low frequency, it is not recommended to
perform "force measurement", the MMDC measure unit may return
a wrong measurement value when running below 100MHz.

Additionally, 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 issue.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
arch/arm/mach-imx/busfreq_lpddr2.c
arch/arm/mach-imx/lpddr2_freq_imx6.S
arch/arm/mach-imx/lpddr2_freq_imx6sll.S
arch/arm/mach-imx/lpddr2_freq_imx6sx.S