]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: tegra30: cpuidle: add powered-down state for CPU0
authorJoseph Lo <josephl@nvidia.com>
Wed, 31 Oct 2012 09:41:21 +0000 (17:41 +0800)
committerStephen Warren <swarren@nvidia.com>
Wed, 31 Oct 2012 20:18:55 +0000 (14:18 -0600)
commitf1249349408f5490689667a6abd07a2ccdecfc02
tree520c298966f603494e67b3aa000383c12f20a0dc
parentb02e37d23a194356bcc9e3735cdab4b17b68c188
ARM: tegra30: cpuidle: add powered-down state for CPU0

This is a power gating idle mode. It support power gating vdd_cpu rail
after all cpu cores in "powered-down" status. For Tegra30, the CPU0 can
enter this state only when all secondary CPU is offline. We need to take
care and make sure whole secondary CPUs were offline and checking the
CPU power gate status. After that, the CPU0 can go into "powered-down"
state safely. Then shut off the CPU rail.

Be aware of that, you may see the legacy power state "LP2" in the code
which is exactly the same meaning of "CPU power down".

Base on the work by:
Scott Williams <scwilliams@nvidia.com>

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/cpuidle-tegra30.c
arch/arm/mach-tegra/pm.c
arch/arm/mach-tegra/pm.h
arch/arm/mach-tegra/sleep-tegra30.S
arch/arm/mach-tegra/sleep.S
arch/arm/mach-tegra/sleep.h