MLK-14513 ARM: imx: restore iomux/gpio settings before isoack on i.mx7ulp
authorAnson Huang <Anson.Huang@nxp.com>
Fri, 24 Mar 2017 11:33:02 +0000 (19:33 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:58 +0000 (15:21 -0500)
commit172a3d738599a88599339c225a07d37f01402796
tree016377d531edfb442433031a5f58bf3d1c95003c
parentc2a0817364bb9e982054aadc03f2fcd67ab044fd
MLK-14513 ARM: imx: restore iomux/gpio settings before isoack on i.mx7ulp

ISOACK must be done only after all IOMUX/GPIO settings done,
otherwise, some PADs can NOT keep state during VLLS
enter/exit and cause some pins toggling, and lead to
external devices in abnormal state, like reset etc..

This patch does all iomux/gpio settings restore in VLLS exit
flow, since DDR PADs need to be functioning before jump
to DDR, so isoack can only be done in ASM code, to save
OCRAM space, all pins in port C - F will be restored, even
some pins are reserved, but read/write these reserved pins
settings are OK on i.MX7ULP.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm/mach-imx/pm-imx7ulp.c
arch/arm/mach-imx/suspend-imx7ulp.S