ARM: imx: add suspend/resume support for i.mx6ul
authorAnson Huang <b20788@freescale.com>
Tue, 4 Aug 2015 17:48:37 +0000 (01:48 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 17 Sep 2015 00:54:35 +0000 (08:54 +0800)
commitee4a5f838c8437484c9387e9ef9256332f07f3dd
tree29ae88eb6027eddaeaa6f036a0dc98f66281ac6f
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ARM: imx: add suspend/resume support for i.mx6ul

This patch adds suspend function for i.MX6UL, it supports
"standby" and "mem" mode, for "standby" mode, SoC will
enter STOP mode only, while for "mem" mode, SoC will
enter STOP mode and DDR IO will be set to low power
mode.

As i.MX6UL contains a "Cortex-A7" ARM core which has no
PL310, so we need to avoid any PL310 operations during
suspend/resume, also, we need to flush Cortex-A7's inernal
L2 cache before suspend.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-imx/common.h
arch/arm/mach-imx/mach-imx6ul.c
arch/arm/mach-imx/pm-imx6.c
arch/arm/mach-imx/suspend-imx6.S