summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/clk-regmap-mux.h
diff options
context:
space:
mode:
authorAbhishek Sahu <absahu@codeaurora.org>2017-12-13 19:55:33 +0530
committerStephen Boyd <sboyd@codeaurora.org>2017-12-21 16:03:22 -0800
commitdf964016490b2cf630b1b926a1d5c610833aaa84 (patch)
treed6d813cc879153ee02e15d478e28ecbfad0a5026 /drivers/clk/qcom/clk-regmap-mux.h
parentf933d383df6b42e3262426d35593f18ff21aad57 (diff)
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>
Diffstat (limited to 'drivers/clk/qcom/clk-regmap-mux.h')
-rw-r--r--drivers/clk/qcom/clk-regmap-mux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-regmap-mux.h b/drivers/clk/qcom/clk-regmap-mux.h
index 5cec76154fda..7797cddabe6b 100644
--- a/drivers/clk/qcom/clk-regmap-mux.h
+++ b/drivers/clk/qcom/clk-regmap-mux.h
@@ -16,11 +16,13 @@
#include <linux/clk-provider.h>
#include "clk-regmap.h"
+#include "common.h"
struct clk_regmap_mux {
u32 reg;
u32 shift;
u32 width;
+ const struct parent_map *parent_map;
struct clk_regmap clkr;
};