clk: tegra: cclk: Add helpers for handling PLLX rate changes
authorDmitry Osipenko <digetx@gmail.com>
Thu, 19 Mar 2020 19:02:20 +0000 (22:02 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 12 May 2020 20:48:43 +0000 (22:48 +0200)
commitdec15c9901382f9a2ec548ff0a7ed639d4be0a38
tree18aa85491eea6b3639ef7a4016ed085a8e5d5ef2
parent9157abe74b05b9c2ede8f07ad4c7f89b717ff303
clk: tegra: cclk: Add helpers for handling PLLX rate changes

CCLK should be re-parented away from PLLX if PLLX's rate is changing.
The PLLP parent is a common safe CPU parent for all Tegra SoCs, thus
CCLK will be re-parented to PLLP before PLLX rate-change begins and then
switched back to PLLX after the rate-change completion. This patch adds
helper functions which perform CCLK re-parenting, these helpers will be
utilized by further patches.

Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Marcel Ziswiler <marcel@ziswiler.com>
Tested-by: Jasper Korten <jja2000@gmail.com>
Tested-by: David Heidelberg <david@ixit.cz>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-tegra-super-cclk.c
drivers/clk/tegra/clk.h