aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
diff options
context:
space:
mode:
authorSowjanya Komatineni <skomatineni@nvidia.com>2019-08-16 12:41:56 -0700
committerThierry Reding <treding@nvidia.com>2019-11-11 14:53:03 +0100
commita99d744d8c9ca7e00adeb14dd11971b4b5b8271f (patch)
tree33bbb14e42e9160f53f5b3b763755575eef25ba4 /drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
parentclk: tegra: clk-super: Add restore-context support (diff)
downloadlinux-dev-a99d744d8c9ca7e00adeb14dd11971b4b5b8271f.tar.xz
linux-dev-a99d744d8c9ca7e00adeb14dd11971b4b5b8271f.zip
clk: tegra: clk-dfll: Add suspend and resume support
This patch implements DFLL suspend and resume operation. During system suspend entry, CPU clock will switch CPU to safe clock source of PLLP and disables DFLL clock output. DFLL driver suspend confirms DFLL disable state and errors out on being active. DFLL is re-initialized during the DFLL driver resume as it goes through complete reset during suspend entry. Acked-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-tegra124-dfll-fcpu.c')
-rw-r--r--drivers/clk/tegra/clk-tegra124-dfll-fcpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c b/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
index e84b6d52cbbd..2ac2679d696d 100644
--- a/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
+++ b/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
@@ -631,6 +631,7 @@ static int tegra124_dfll_fcpu_remove(struct platform_device *pdev)
static const struct dev_pm_ops tegra124_dfll_pm_ops = {
SET_RUNTIME_PM_OPS(tegra_dfll_runtime_suspend,
tegra_dfll_runtime_resume, NULL)
+ SET_SYSTEM_SLEEP_PM_OPS(tegra_dfll_suspend, tegra_dfll_resume)
};
static struct platform_driver tegra124_dfll_fcpu_driver = {