Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: camcc-sdm845: move clock parent tables down

Move clock parent tables down, after the PLL declrataions, so that we
can use pll hw clock fields in the next commit.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211228045415.20543-10-dmitry.baryshkov@linaro.org

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
b4e2d27e 6b7ef45f

+16 -16
+16 -16
drivers/clk/qcom/camcc-sdm845.c
··· 25 25 P_CAM_CC_PLL3_OUT_EVEN, 26 26 }; 27 27 28 - static const struct parent_map cam_cc_parent_map_0[] = { 29 - { P_BI_TCXO, 0 }, 30 - { P_CAM_CC_PLL2_OUT_EVEN, 1 }, 31 - { P_CAM_CC_PLL1_OUT_EVEN, 2 }, 32 - { P_CAM_CC_PLL3_OUT_EVEN, 5 }, 33 - { P_CAM_CC_PLL0_OUT_EVEN, 6 }, 34 - }; 35 - 36 - static const char * const cam_cc_parent_names_0[] = { 37 - "bi_tcxo", 38 - "cam_cc_pll2_out_even", 39 - "cam_cc_pll1_out_even", 40 - "cam_cc_pll3_out_even", 41 - "cam_cc_pll0_out_even", 42 - }; 43 - 44 28 static struct clk_alpha_pll cam_cc_pll0 = { 45 29 .offset = 0x0, 46 30 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_FABIA], ··· 141 157 .num_parents = 1, 142 158 .ops = &clk_alpha_pll_postdiv_fabia_ops, 143 159 }, 160 + }; 161 + 162 + static const struct parent_map cam_cc_parent_map_0[] = { 163 + { P_BI_TCXO, 0 }, 164 + { P_CAM_CC_PLL2_OUT_EVEN, 1 }, 165 + { P_CAM_CC_PLL1_OUT_EVEN, 2 }, 166 + { P_CAM_CC_PLL3_OUT_EVEN, 5 }, 167 + { P_CAM_CC_PLL0_OUT_EVEN, 6 }, 168 + }; 169 + 170 + static const char * const cam_cc_parent_names_0[] = { 171 + "bi_tcxo", 172 + "cam_cc_pll2_out_even", 173 + "cam_cc_pll1_out_even", 174 + "cam_cc_pll3_out_even", 175 + "cam_cc_pll0_out_even", 144 176 }; 145 177 146 178 static const struct freq_tbl ftbl_cam_cc_bps_clk_src[] = {