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)
commit395717ee0d010a172c17c9e27a9483388d0f8e4c
tree6f5134be10a9bbc90ab4a35f7da810abcdd27e10
parent86c654d41a52e3d17e9bc2c2ba37f3c963e66a4a
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