]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: ipq4019: Add the cpu clock frequency change notifier
authorAbhishek Sahu <absahu@codeaurora.org>
Thu, 22 Dec 2016 14:40:54 +0000 (20:10 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 27 Dec 2016 21:44:34 +0000 (13:44 -0800)
commit8e5c07b9d40afa9b55dd57f63006e9cccad285d7
tree6f5134be10a9bbc90ab4a35f7da810abcdd27e10
parentcb15ff78c634ef255bb2b686c81861a58a138b53
clk: qcom: ipq4019: Add the cpu clock frequency change notifier

The current driver code gives the crash or gets hang while switching
the CPU frequency some time. The APSS CPU Clock divider is not glitch
free so it the APPS clock need to be switched for stable clock during
the change.

This patch adds the frequency change notifier for APSS CPU clock. It
changes the parent of this clock to stable PLL FEPLL500 for
PRE_RATE_CHANGE event. This event will be generated before actual
clock set operations. The clock set operation will again change its
corresponding parent by getting the same from frequency table.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
[sboyd@codeaurora.org: Indent less in probe]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/gcc-ipq4019.c