Skip to content

Commit e88c533

Browse files
konradybcioandersson
authored andcommitted
clk: qcom: gcc-sm6115: Add missing PLL config properties
When the driver was ported upstream, PLL ctl register values were omitted. Add them to ensure the PLLs are fully configured like we expect them to. Fixes: cbe63bf ("clk: qcom: Add Global Clock controller (GCC) driver for SM6115") Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Iskren Chernev <me@iskren.info> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230601-topic-alpha_ctl-v1-2-b6a932dfcf68@linaro.org
1 parent 5016243 commit e88c533

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-sm6115.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static const struct alpha_pll_config gpll10_config = {
119119
.vco_mask = GENMASK(21, 20),
120120
.main_output_mask = BIT(0),
121121
.config_ctl_val = 0x4001055b,
122+
.test_ctl_hi1_val = 0x1,
123+
.test_ctl_hi_mask = 0x1,
122124
};
123125

124126
static struct clk_alpha_pll gpll10 = {
@@ -170,6 +172,8 @@ static const struct alpha_pll_config gpll11_config = {
170172
.vco_val = 0x2 << 20,
171173
.vco_mask = GENMASK(21, 20),
172174
.config_ctl_val = 0x4001055b,
175+
.test_ctl_hi1_val = 0x1,
176+
.test_ctl_hi_mask = 0x1,
173177
};
174178

175179
static struct clk_alpha_pll gpll11 = {
@@ -362,6 +366,8 @@ static const struct alpha_pll_config gpll8_config = {
362366
.post_div_val = 0x1 << 8,
363367
.post_div_mask = GENMASK(11, 8),
364368
.config_ctl_val = 0x4001055b,
369+
.test_ctl_hi1_val = 0x1,
370+
.test_ctl_hi_mask = 0x1,
365371
};
366372

367373
static struct clk_alpha_pll gpll8 = {
@@ -413,6 +419,8 @@ static const struct alpha_pll_config gpll9_config = {
413419
.post_div_mask = GENMASK(9, 8),
414420
.main_output_mask = BIT(0),
415421
.config_ctl_val = 0x00004289,
422+
.test_ctl_mask = GENMASK(31, 0),
423+
.test_ctl_val = 0x08000000,
416424
};
417425

418426
static struct clk_alpha_pll gpll9 = {

0 commit comments

Comments
 (0)