[PATCH] ARM: imx6: add missing BM_CLPCR_BYPASS_PMIC_READY setting for imx6sx
Peter Chen
peter.chen at nxp.com
Mon Aug 22 01:26:47 PDT 2016
>i.MX6SX has bypass PMIC ready function, as this function is normally NOT enabled
>on the board design, so we need to bypass the PMIC ready pin check during DSM
>mode resume flow, otherwise, the internal DSM resume logic will be waiting for this
>signal to be ready forever and cause resume fail.
>
>Signed-off-by: Anson Huang <Anson.Huang at nxp.com>
>---
> arch/arm/mach-imx/pm-imx6.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index
>67bab74..fe708e2 100644
>--- a/arch/arm/mach-imx/pm-imx6.c
>+++ b/arch/arm/mach-imx/pm-imx6.c
>@@ -310,7 +310,7 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode)
> val |= 0x3 << BP_CLPCR_STBY_COUNT;
> val |= BM_CLPCR_VSTBY;
> val |= BM_CLPCR_SBYOS;
>- if (cpu_is_imx6sl())
>+ if (cpu_is_imx6sl() || cpu_is_imx6sx())
> val |= BM_CLPCR_BYPASS_PMIC_READY;
> if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul())
> val |= BM_CLPCR_BYP_MMDC_CH0_LPM_HS;
>--
With above changes, the suspend mode "mem" can work well.
Tested-by: Peter Chen <peter.chen at nxp.com>
You can consider add below tag:
Cc: <stable at vger.kernel.org> # 4.1+
Peter
More information about the linux-arm-kernel
mailing list