]> 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)
commitc3a4692f7dddc19295b70131eb38fc048b9356c4
tree7f1639c49f5ab8c034222ec7b66794b0f60bda52
parentf5c4776cd5b591eea4e9be9f421e34f61b98ebb2
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