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"
1231 { .compatible = "qcom,sc8180x-dispcc" },
1232 { .compatible = "qcom,sm8150-dispcc" },
1233 { .compatible = "qcom,sm8250-dispcc" },
1234 { .compatible = "qcom,sm8350-dispcc" },
1249 pm_runtime_enable(&pdev->dev); in disp_cc_sm8250_probe()
1251 ret = devm_add_action_or_reset(&pdev->dev, disp_cc_sm8250_pm_runtime_disable, &pdev->dev); in disp_cc_sm8250_probe()
1255 ret = pm_runtime_resume_and_get(&pdev->dev); in disp_cc_sm8250_probe()
1261 pm_runtime_put(&pdev->dev); in disp_cc_sm8250_probe()
1265 /* Apply differences for SM8150 and SM8350 */ in disp_cc_sm8250_probe()
1267 if (of_device_is_compatible(pdev->dev.of_node, "qcom,sc8180x-dispcc") || in disp_cc_sm8250_probe()
1268 of_device_is_compatible(pdev->dev.of_node, "qcom,sm8150-dispcc")) { in disp_cc_sm8250_probe()
1277 } else if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8350-dispcc")) { in disp_cc_sm8250_probe()
1310 rcgs[i]->cmd_rcgr -= 4; in disp_cc_sm8250_probe()
1313 divs[i]->reg -= 4; in disp_cc_sm8250_probe()
1314 divs[i]->width = 4; in disp_cc_sm8250_probe()
1317 disp_cc_mdss_ahb_clk.halt_reg -= 4; in disp_cc_sm8250_probe()
1318 disp_cc_mdss_ahb_clk.clkr.enable_reg -= 4; in disp_cc_sm8250_probe()
1341 /* DISP_CC_XO_CLK always-on */ in disp_cc_sm8250_probe()
1346 pm_runtime_put(&pdev->dev); in disp_cc_sm8250_probe()
1354 .name = "disp_cc-sm8250",
1371 MODULE_DESCRIPTION("QTI DISPCC SM8250 Driver");