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)
committerJacky Bai <ping.bai@nxp.com>
Wed, 21 Apr 2021 08:02:38 +0000 (16:02 +0800)
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 7e17c7a..0a7f7eb 100644 (file)
@@ -370,6 +370,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)