clk: tegra: Add suspend and resume support on Tegra210
authorSowjanya Komatineni <skomatineni@nvidia.com>
Fri, 16 Aug 2019 19:42:00 +0000 (12:42 -0700)
committerThierry Reding <treding@nvidia.com>
Mon, 11 Nov 2019 13:53:04 +0000 (14:53 +0100)
commit535f296d47de327287fe65b5843713bd9b01a267
tree73cabf151af02f59d0fb50a7e4848d04c080c0d6
parent3214be6cb1e487b0f8c3bb2eac9b06df07a07e06
clk: tegra: Add suspend and resume support on Tegra210

All the CAR controller settings are lost on suspend when core power goes
off. This implement saving and restoring context for all PLLs and clocks
during system suspend and resume to have the clocks back to same state
for normal operation.

Clock driver suspend and resume are registered as syscore_ops as clocks
restore need to happen before the other drivers resume to have all their
clocks back to the same state as before suspend.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-tegra210.c
drivers/clk/tegra/clk.c
drivers/clk/tegra/clk.h