File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,7 @@ static struct qcom_cc_desc video_cc_sa8775p_desc = {
523
523
};
524
524
525
525
static const struct of_device_id video_cc_sa8775p_match_table [] = {
526
+ { .compatible = "qcom,qcs8300-videocc" },
526
527
{ .compatible = "qcom,sa8775p-videocc" },
527
528
{ }
528
529
};
@@ -550,6 +551,13 @@ static int video_cc_sa8775p_probe(struct platform_device *pdev)
550
551
clk_lucid_evo_pll_configure (& video_pll0 , regmap , & video_pll0_config );
551
552
clk_lucid_evo_pll_configure (& video_pll1 , regmap , & video_pll1_config );
552
553
554
+ /*
555
+ * Set mvs0c clock divider to div-3 to make the mvs0 and
556
+ * mvs0c clocks to run at the same frequency on QCS8300
557
+ */
558
+ if (of_device_is_compatible (pdev -> dev .of_node , "qcom,qcs8300-videocc" ))
559
+ regmap_write (regmap , video_cc_mvs0c_div2_div_clk_src .reg , 2 );
560
+
553
561
/* Keep some clocks always enabled */
554
562
qcom_branch_set_clk_en (regmap , 0x80ec ); /* VIDEO_CC_AHB_CLK */
555
563
qcom_branch_set_clk_en (regmap , 0x8144 ); /* VIDEO_CC_SLEEP_CLK */
You can’t perform that action at this time.
0 commit comments