cpufreq: tegra124: Add suspend and resume support
authorSowjanya Komatineni <skomatineni@nvidia.com>
Fri, 16 Aug 2019 19:41:57 +0000 (12:41 -0700)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 12:25:29 +0000 (13:25 +0100)
commit0fb438eed10ca13d212a5675363beb5a5cd721f2
tree7f1639c49f5ab8c034222ec7b66794b0f60bda52
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
cpufreq: tegra124: Add suspend and resume support

This patch adds suspend and resume pm ops for cpufreq driver.

PLLP is the safe clock source for CPU during system suspend and
resume as PLLP rate is below the CPU Fmax at Vmin.

CPUFreq driver suspend switches the CPU clock source to PLLP and
disables the DFLL clock.

During system resume, warmboot code powers up the CPU with PLLP
clock source. So CPUFreq driver resume enabled DFLL clock and
switches CPU back to DFLL clock source.

Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/cpufreq/tegra124-cpufreq.c