Commit 4be8fc04 authored by Stephen Boyd's avatar Stephen Boyd Committed by Michael Turquette

clk: qcom: Add PLL4 vote clock

This clock is needed for most audio clock frequencies. Add it.
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMichael Turquette <mturquette@linaro.org>
parent 84b919fd
...@@ -48,6 +48,17 @@ static struct clk_pll pll3 = { ...@@ -48,6 +48,17 @@ static struct clk_pll pll3 = {
}, },
}; };
static struct clk_regmap pll4_vote = {
.enable_reg = 0x34c0,
.enable_mask = BIT(4),
.hw.init = &(struct clk_init_data){
.name = "pll4_vote",
.parent_names = (const char *[]){ "pll4" },
.num_parents = 1,
.ops = &clk_pll_vote_ops,
},
};
static struct clk_pll pll8 = { static struct clk_pll pll8 = {
.l_reg = 0x3144, .l_reg = 0x3144,
.m_reg = 0x3148, .m_reg = 0x3148,
...@@ -3023,6 +3034,7 @@ static struct clk_branch rpm_msg_ram_h_clk = { ...@@ -3023,6 +3034,7 @@ static struct clk_branch rpm_msg_ram_h_clk = {
static struct clk_regmap *gcc_msm8960_clks[] = { static struct clk_regmap *gcc_msm8960_clks[] = {
[PLL3] = &pll3.clkr, [PLL3] = &pll3.clkr,
[PLL4_VOTE] = &pll4_vote,
[PLL8] = &pll8.clkr, [PLL8] = &pll8.clkr,
[PLL8_VOTE] = &pll8_vote, [PLL8_VOTE] = &pll8_vote,
[PLL14] = &pll14.clkr, [PLL14] = &pll14.clkr,
...@@ -3247,6 +3259,7 @@ static const struct qcom_reset_map gcc_msm8960_resets[] = { ...@@ -3247,6 +3259,7 @@ static const struct qcom_reset_map gcc_msm8960_resets[] = {
static struct clk_regmap *gcc_apq8064_clks[] = { static struct clk_regmap *gcc_apq8064_clks[] = {
[PLL3] = &pll3.clkr, [PLL3] = &pll3.clkr,
[PLL4_VOTE] = &pll4_vote,
[PLL8] = &pll8.clkr, [PLL8] = &pll8.clkr,
[PLL8_VOTE] = &pll8_vote, [PLL8_VOTE] = &pll8_vote,
[PLL14] = &pll14.clkr, [PLL14] = &pll14.clkr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment