MLK-9678 arm: imx6: switch to analog bypass before entering DSM
authorBai Ping <b51503@freescale.com>
Tue, 14 Oct 2014 02:17:16 +0000 (10:17 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:42 +0000 (14:48 -0500)
commit827b69e0e0e8840122284a7882477363aaaba1ad
treea407c23b3fe9d0ac95da72c3a98dae68b8e34c58
parenta8b42ccc6ef3d38e48c3bb2f6acda91853a4728f
MLK-9678 arm: imx6: switch to analog bypass before entering DSM

this patch implements the workaround for ERR005852:

ERR005852 Analog: Transition from Deep Sleep Mode to LDO Bypass
Mode may cause the slow response of the VDDARM_CAP output.

    Normally, the VDDARM_CAP supply takes only approximately 40 us
    to raise to the correct voltage when exiting from Deep Sleep(DSM)
    mode, if the LDO is enabled. If the LDO bypass mode is selected,
    the VDDARM_CAP supply voltage will drop to approximately 0V when
    entering and when exiting from DSM,even though the VDDARM_IN
    supply is already stable, the VDDARM_CAP supply will take about
    2 ms to rise to the correct voltage.

software workaround:

if internal LDO bypass, switch to analog bypass mode(0x1E), prior
to entering DSM, and then, revert to the normal bypass mode, when
exiting from DSM.

Signed-off-by: Bai Ping <b51503@freescale.com>
(cherry picked from commit e43b7ad7c9b8fa987daa539543c5060c97922eb2)
arch/arm/mach-imx/suspend-imx6.S