]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: tegra: retain L2 content over CPU suspend/resume
authorJoseph Lo <josephl@nvidia.com>
Tue, 13 Nov 2012 02:04:48 +0000 (10:04 +0800)
committerStephen Warren <swarren@nvidia.com>
Tue, 13 Nov 2012 18:42:00 +0000 (11:42 -0700)
commitb2e127baecc919d8aecf769b64f849a183c371ef
treec1b28053c1b5cc3bbf1938c24ea70e7e9768a922
parent01e734d28533fccc9a3d43aa045fe1e628d1d7b8
ARM: tegra: retain L2 content over CPU suspend/resume

The L2 RAM is in different power domain from the CPU cluster. So the
L2 content can be retained over CPU suspend/resume. To do that, we
need to disable L2 after the MMU is disabled, and enable L2 before
the MMU is enabled. But the L2 controller is in the same power domain
with the CPU cluster. We need to restore it's settings and re-enable
it after the power be resumed.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/headsmp.S
arch/arm/mach-tegra/pm.c
arch/arm/mach-tegra/pm.h
arch/arm/mach-tegra/sleep.S
arch/arm/mach-tegra/sleep.h