Skip to content

Commit 63d56ad

Browse files
konradybcioandersson
authored andcommitted
clk: qcom: dispcc-qcm2290: Fix GPLL0_OUT_DIV handling
GPLL0_OUT_DIV (.fw_name = "gcc_disp_gpll0_div_clk_src") was previously made to reuse the same parent enum entry as GPLL0_OUT_MAIN (.fw_name = "gcc_disp_gpll0_clk_src") in parent_map_2. Resolve it by introducing its own entry in the parent enum and correctly assigning it in disp_cc_parent_map_2[]. Fixes: cc517ea ("clk: qcom: Add display clock controller driver for QCM2290") Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230412-topic-qcm_dispcc-v2-2-bce7dd512fe4@linaro.org
1 parent 92dfee0 commit 63d56ad

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/clk/qcom/dispcc-qcm2290.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ enum {
2828
P_DISP_CC_PLL0_OUT_MAIN,
2929
P_DSI0_PHY_PLL_OUT_BYTECLK,
3030
P_DSI0_PHY_PLL_OUT_DSICLK,
31+
P_GPLL0_OUT_DIV,
3132
P_GPLL0_OUT_MAIN,
3233
P_SLEEP_CLK,
3334
};
@@ -84,7 +85,7 @@ static const struct clk_parent_data disp_cc_parent_data_1[] = {
8485

8586
static const struct parent_map disp_cc_parent_map_2[] = {
8687
{ P_BI_TCXO_AO, 0 },
87-
{ P_GPLL0_OUT_MAIN, 4 },
88+
{ P_GPLL0_OUT_DIV, 4 },
8889
};
8990

9091
static const struct clk_parent_data disp_cc_parent_data_2[] = {
@@ -153,8 +154,8 @@ static struct clk_regmap_div disp_cc_mdss_byte0_div_clk_src = {
153154

154155
static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] = {
155156
F(19200000, P_BI_TCXO_AO, 1, 0, 0),
156-
F(37500000, P_GPLL0_OUT_MAIN, 8, 0, 0),
157-
F(75000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
157+
F(37500000, P_GPLL0_OUT_DIV, 8, 0, 0),
158+
F(75000000, P_GPLL0_OUT_DIV, 4, 0, 0),
158159
{ }
159160
};
160161

0 commit comments

Comments
 (0)