]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite77f9aa6928710e8e485ab69b0797d168929b244
tree7f1639c49f5ab8c034222ec7b66794b0f60bda52
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
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