From: Shenwei Wang Date: Tue, 20 Aug 2019 20:07:36 +0000 (-0500) Subject: MLK-21499 arm: imx: put pads into OFF state before entering VLLS X-Git-Tag: rel_imx_4.19.35_1.1.0~106 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=49e338251f8ea175605da007c1afe6212b1be084;p=linux.git MLK-21499 arm: imx: put pads into OFF state before entering VLLS 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 Reviewed-by: Jacky Bai --- diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c index 866598f43889..ce303fa6400a 100644 --- a/arch/arm/mach-imx/pm-imx7ulp.c +++ b/arch/arm/mach-imx/pm-imx7ulp.c @@ -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)