diff options
author | Sricharan R <sricharan@codeaurora.org> | 2018-08-14 15:12:31 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-10-17 23:15:05 +0300 |
commit | 77612720a2362230af726baa4149c40ec7a7fb05 (patch) | |
tree | 5c59d147a2debda901d6db8a2cb2e8ce90a4de5f /drivers/clk/qcom/clk-krait.h | |
parent | bf4503ccf321811192cb07f9711556237c3cf668 (diff) | |
download | linux-77612720a2362230af726baa4149c40ec7a7fb05.tar.xz |
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.h | 3 |
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; |