ARM: imx6ull: Make suspend/resume work like on 6ul
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 6 Jun 2017 17:50:43 +0000 (20:50 +0300)
committerShawn Guo <shawnguo@kernel.org>
Wed, 7 Jun 2017 03:38:40 +0000 (11:38 +0800)
Suspend and resume on imx6ull is currenty not working because of some
missed checks where behavior should match imx6ul.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/pm-imx6.c

index e61b1d1027e12d5c5284f74f4480dbba70b47b05..ecdf071653d4dc6c5f9845f4b39dc72b84dd027a 100644 (file)
@@ -295,7 +295,8 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode)
                val &= ~BM_CLPCR_SBYOS;
                if (cpu_is_imx6sl())
                        val |= BM_CLPCR_BYPASS_PMIC_READY;
-               if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul())
+               if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul() ||
+                   cpu_is_imx6ull())
                        val |= BM_CLPCR_BYP_MMDC_CH0_LPM_HS;
                else
                        val |= BM_CLPCR_BYP_MMDC_CH1_LPM_HS;
@@ -312,7 +313,8 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode)
                val |= BM_CLPCR_SBYOS;
                if (cpu_is_imx6sl() || cpu_is_imx6sx())
                        val |= BM_CLPCR_BYPASS_PMIC_READY;
-               if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul())
+               if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul() ||
+                   cpu_is_imx6ull())
                        val |= BM_CLPCR_BYP_MMDC_CH0_LPM_HS;
                else
                        val |= BM_CLPCR_BYP_MMDC_CH1_LPM_HS;