MLK-21499 arm: imx: put pads into OFF state before entering VLLS
authorShenwei Wang <shenwei.wang@nxp.com>
Tue, 20 Aug 2019 20:07:36 +0000 (15:07 -0500)
committerShenwei Wang <shenwei.wang@nxp.com>
Thu, 22 Aug 2019 14:05:31 +0000 (09:05 -0500)
Due to the hardware limitation, the power supply for the PADs could not
be off during VLLS mode. To reduce the power consumption under VLLS
state, put all the PADs on iomuxc1 into OFF state before the
system enters into VLLS mode.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
arch/arm/mach-imx/pm-imx7ulp.c

index 866598f..ce303fa 100644 (file)
@@ -351,6 +351,10 @@ static inline void imx7ulp_iomuxc_save(void)
                pm_info->select_input_val[i] =
                        readl_relaxed(iomuxc1_base +
                                SELECT_INPUT_START + i * 0x4);
+
+       /* Put all the PADs to OFF state */
+       for (i = 0; i < pm_info->iomux_num; i++)
+               writel_relaxed(0, (iomuxc1_base + IOMUX_START + i * 0x4));
 }
 
 static void imx7ulp_lpuart_save(void)