Lines Matching +full:dispcc +full:- +full:sm8350
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2020, 2022, The Linux Foundation. All rights reserved.
6 #include <linux/clk-provider.h>
11 #include <linux/reset-controller.h>
13 #include <dt-bindings/clock/qcom,dispcc-sm8250.h>
15 #include "clk-alpha-pll.h"
16 #include "clk-branch.h"
17 #include "clk-rcg.h"
18 #include "clk-regmap-divider.h"
1247 { .compatible = "qcom,sc8180x-dispcc" },
1248 { .compatible = "qcom,sm8150-dispcc" },
1249 { .compatible = "qcom,sm8250-dispcc" },
1250 { .compatible = "qcom,sm8350-dispcc" },
1260 ret = devm_pm_runtime_enable(&pdev->dev); in disp_cc_sm8250_probe()
1264 ret = pm_runtime_resume_and_get(&pdev->dev); in disp_cc_sm8250_probe()
1270 pm_runtime_put(&pdev->dev); in disp_cc_sm8250_probe()
1274 /* Apply differences for SM8150 and SM8350 */ in disp_cc_sm8250_probe()
1276 if (of_device_is_compatible(pdev->dev.of_node, "qcom,sc8180x-dispcc") || in disp_cc_sm8250_probe()
1277 of_device_is_compatible(pdev->dev.of_node, "qcom,sm8150-dispcc")) { in disp_cc_sm8250_probe()
1287 disp_cc_mdss_dp_link_intf_clk.clkr.hw.init->parent_hws[0] = in disp_cc_sm8250_probe()
1289 disp_cc_mdss_dp_link1_intf_clk.clkr.hw.init->parent_hws[0] = in disp_cc_sm8250_probe()
1291 disp_cc_mdss_edp_link_intf_clk.clkr.hw.init->parent_hws[0] = in disp_cc_sm8250_probe()
1297 } else if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8350-dispcc")) { in disp_cc_sm8250_probe()
1335 rcgs[i]->cmd_rcgr -= 4; in disp_cc_sm8250_probe()
1338 divs[i]->reg -= 4; in disp_cc_sm8250_probe()
1339 divs[i]->width = 4; in disp_cc_sm8250_probe()
1342 disp_cc_mdss_ahb_clk.halt_reg -= 4; in disp_cc_sm8250_probe()
1343 disp_cc_mdss_ahb_clk.clkr.enable_reg -= 4; in disp_cc_sm8250_probe()
1363 if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8350-dispcc")) { in disp_cc_sm8250_probe()
1374 /* Keep some clocks always-on */ in disp_cc_sm8250_probe()
1377 ret = qcom_cc_really_probe(&pdev->dev, &disp_cc_sm8250_desc, regmap); in disp_cc_sm8250_probe()
1379 pm_runtime_put(&pdev->dev); in disp_cc_sm8250_probe()
1387 .name = "disp_cc-sm8250",
1394 MODULE_DESCRIPTION("QTI DISPCC SM8250 Driver");