ARM: tegra: cpufreq: Disable cpufreq during suspend
authorColin Cross <ccross@android.com>
Fri, 6 Aug 2010 00:40:39 +0000 (17:40 -0700)
committerColin Cross <ccross@android.com>
Fri, 11 Feb 2011 01:50:40 +0000 (17:50 -0800)
commit1eb2ecf1d5b3c29ce86f098de4ad21fa757d2160
treeafe011518ccff676794ad459bf500009964d49c3
parent537f5af0f63eea9cd06f477e1c0fe363d1656e08
ARM: tegra: cpufreq: Disable cpufreq during suspend

On Tegra, calling clk_set_rate on the CPU clock may call into the
regulator API.  If the regulator driver that controls the CPU
voltage rail has been suspended, this can lead to attempted
communication with a hardware block that has already been turned
off.

Adds a SUSPEND_PREPARE notification hook to drop the frequency to
the lowest possible during suspend.

Also adds 216MHz (off of PLLP) as the lowest CPU frequency, which
allows PLLX to be turned off.

Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/cpu-tegra.c