@@ -75,7 +75,7 @@ static struct pll_vco lucid_ole_vco[] = {
75
75
{ 249600000 , 2000000000 , 0 },
76
76
};
77
77
78
- static const struct alpha_pll_config disp_cc_pll0_config = {
78
+ static struct alpha_pll_config disp_cc_pll0_config = {
79
79
.l = 0xd ,
80
80
.alpha = 0x6492 ,
81
81
.config_ctl_val = 0x20485699 ,
@@ -106,7 +106,7 @@ static struct clk_alpha_pll disp_cc_pll0 = {
106
106
},
107
107
};
108
108
109
- static const struct alpha_pll_config disp_cc_pll1_config = {
109
+ static struct alpha_pll_config disp_cc_pll1_config = {
110
110
.l = 0x1f ,
111
111
.alpha = 0x4000 ,
112
112
.config_ctl_val = 0x20485699 ,
@@ -594,6 +594,13 @@ static const struct freq_tbl ftbl_disp_cc_mdss_mdp_clk_src[] = {
594
594
{ }
595
595
};
596
596
597
+ static const struct freq_tbl ftbl_disp_cc_mdss_mdp_clk_src_sar2130p [] = {
598
+ F (200000000 , P_DISP_CC_PLL0_OUT_MAIN , 3 , 0 , 0 ),
599
+ F (325000000 , P_DISP_CC_PLL0_OUT_MAIN , 3 , 0 , 0 ),
600
+ F (514000000 , P_DISP_CC_PLL0_OUT_MAIN , 3 , 0 , 0 ),
601
+ { }
602
+ };
603
+
597
604
static const struct freq_tbl ftbl_disp_cc_mdss_mdp_clk_src_sm8650 [] = {
598
605
F (19200000 , P_BI_TCXO , 1 , 0 , 0 ),
599
606
F (85714286 , P_DISP_CC_PLL0_OUT_MAIN , 3 , 0 , 0 ),
@@ -1750,6 +1757,7 @@ static struct qcom_cc_desc disp_cc_sm8550_desc = {
1750
1757
};
1751
1758
1752
1759
static const struct of_device_id disp_cc_sm8550_match_table [] = {
1760
+ { .compatible = "qcom,sar2130p-dispcc" },
1753
1761
{ .compatible = "qcom,sm8550-dispcc" },
1754
1762
{ .compatible = "qcom,sm8650-dispcc" },
1755
1763
{ }
@@ -1780,6 +1788,12 @@ static int disp_cc_sm8550_probe(struct platform_device *pdev)
1780
1788
disp_cc_mdss_mdp_clk_src .freq_tbl = ftbl_disp_cc_mdss_mdp_clk_src_sm8650 ;
1781
1789
disp_cc_mdss_dptx1_usb_router_link_intf_clk .clkr .hw .init -> parent_hws [0 ] =
1782
1790
& disp_cc_mdss_dptx1_link_div_clk_src .clkr .hw ;
1791
+ } else if (of_device_is_compatible (pdev -> dev .of_node , "qcom,sar2130p-dispcc" )) {
1792
+ disp_cc_pll0_config .l = 0x1f ;
1793
+ disp_cc_pll0_config .alpha = 0x4000 ;
1794
+ disp_cc_pll0_config .user_ctl_val = 0x1 ;
1795
+ disp_cc_pll1_config .user_ctl_val = 0x1 ;
1796
+ disp_cc_mdss_mdp_clk_src .freq_tbl = ftbl_disp_cc_mdss_mdp_clk_src_sar2130p ;
1783
1797
}
1784
1798
1785
1799
clk_lucid_ole_pll_configure (& disp_cc_pll0 , regmap , & disp_cc_pll0_config );
0 commit comments