From 6bec1553aaf630b80c9239d8895d423843f31801 Mon Sep 17 00:00:00 2001 From: Shenwei Wang Date: Tue, 20 Aug 2019 15:07:36 -0500 Subject: [PATCH] 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 --- arch/arm/mach-imx/pm-imx7ulp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c index 7e17c7a43ce3..0a7f7eb1fe95 100644 --- a/arch/arm/mach-imx/pm-imx7ulp.c +++ b/arch/arm/mach-imx/pm-imx7ulp.c @@ -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) -- 2.17.1