diff options
author | Rajendra Nayak <rnayak@codeaurora.org> | 2016-09-29 10:35:43 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-11-02 02:39:16 +0100 |
commit | 9f4e627702c852954b66f221c6c75c54ab78146a (patch) | |
tree | 9425d305527230a738a7fe6371cbb25b7d30feb7 /drivers/clk/qcom/clk-alpha-pll.h | |
parent | clk: qcom: Add support for alpha pll hwfsm ops (diff) | |
download | linux-9f4e627702c852954b66f221c6c75c54ab78146a.tar.xz linux-9f4e627702c852954b66f221c6c75c54ab78146a.zip |
clk: qcom: Add support to initialize alpha plls
Add a function to do initial configuration of the alpha plls
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/clk-alpha-pll.h')
-rw-r--r-- | drivers/clk/qcom/clk-alpha-pll.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h index 0deb286da7e3..2f48530ec102 100644 --- a/drivers/clk/qcom/clk-alpha-pll.h +++ b/drivers/clk/qcom/clk-alpha-pll.h @@ -53,8 +53,28 @@ struct clk_alpha_pll_postdiv { struct clk_regmap clkr; }; +struct alpha_pll_config { + u32 l; + u32 alpha; + u32 config_ctl_val; + u32 config_ctl_hi_val; + u32 main_output_mask; + u32 aux_output_mask; + u32 aux2_output_mask; + u32 early_output_mask; + u32 pre_div_val; + u32 pre_div_mask; + u32 post_div_val; + u32 post_div_mask; + u32 vco_val; + u32 vco_mask; +}; + extern const struct clk_ops clk_alpha_pll_ops; extern const struct clk_ops clk_alpha_pll_hwfsm_ops; extern const struct clk_ops clk_alpha_pll_postdiv_ops; +void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap, + const struct alpha_pll_config *config); + #endif |