clk: qcom: add parent map for regmap mux
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 13 Dec 2017 14:25:33 +0000 (19:55 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 22 Dec 2017 00:03:22 +0000 (16:03 -0800)
commitdf964016490b2cf630b1b926a1d5c610833aaa84
treed6d813cc879153ee02e15d478e28ecbfad0a5026
parentf933d383df6b42e3262426d35593f18ff21aad57
clk: qcom: add parent map for regmap mux

Currently the driver assumes the register configuration value
is identical to its index in the parent map. This patch adds
the parent map field in regmap mux clock node which contains
the mapping of parent index with actual register configuration
value. If regmap node contains this parent map then the
configuration value will be taken from this
parent map instead of simply writing the index value.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/clk-regmap-mux.c
drivers/clk/qcom/clk-regmap-mux.h
drivers/clk/qcom/common.h