summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/clk-krait.h
diff options
context:
space:
mode:
authorSricharan R <sricharan@codeaurora.org>2018-08-14 17:42:31 +0530
committerStephen Boyd <sboyd@kernel.org>2018-10-17 13:15:05 -0700
commit77612720a2362230af726baa4149c40ec7a7fb05 (patch)
tree5c59d147a2debda901d6db8a2cb2e8ce90a4de5f /drivers/clk/qcom/clk-krait.h
parentbf4503ccf321811192cb07f9711556237c3cf668 (diff)
clk: qcom: Add safe switch hook for krait mux clocks
When the Hfplls are reprogrammed during the rate change, the primary muxes which are sourced from the same hfpll for higher frequencies, needs to be switched to the 'safe secondary mux' as the parent for that small window. This is done by registering a clk notifier for the muxes and switching to the safe parent in the PRE_RATE_CHANGE notifier and back to the original parent in the POST_RATE_CHANGE notifier. Signed-off-by: Sricharan R <sricharan@codeaurora.org> Tested-by: Craig Tatlor <ctatlor97@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/clk-krait.h')
-rw-r--r--drivers/clk/qcom/clk-krait.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-krait.h b/drivers/clk/qcom/clk-krait.h
index 441ba1e18b81..9120bd2f5297 100644
--- a/drivers/clk/qcom/clk-krait.h
+++ b/drivers/clk/qcom/clk-krait.h
@@ -12,6 +12,9 @@ struct krait_mux_clk {
u32 shift;
u32 en_mask;
bool lpl;
+ u8 safe_sel;
+ u8 old_index;
+ bool reparent;
struct clk_hw hw;
struct notifier_block clk_nb;