Lines Matching +full:ipq5332 +full:- +full:gcc
1 // SPDX-License-Identifier: GPL-2.0-only
33 .offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
37 .offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
45 .offset = 16, .clk_name = "qcom-apcs-msm8996-clk"
53 .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk"
66 struct qcom_apcs_ipc *apcs = container_of(chan->mbox, in qcom_apcs_ipc_send_data()
68 unsigned long idx = (unsigned long)chan->con_priv; in qcom_apcs_ipc_send_data()
70 return regmap_write(apcs->regmap, apcs->offset, BIT(idx)); in qcom_apcs_ipc_send_data()
86 apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); in qcom_apcs_ipc_probe()
88 return -ENOMEM; in qcom_apcs_ipc_probe()
94 regmap = devm_regmap_init_mmio(&pdev->dev, base, &apcs_regmap_config); in qcom_apcs_ipc_probe()
98 apcs_data = of_device_get_match_data(&pdev->dev); in qcom_apcs_ipc_probe()
100 apcs->regmap = regmap; in qcom_apcs_ipc_probe()
101 apcs->offset = apcs_data->offset; in qcom_apcs_ipc_probe()
104 for (i = 0; i < ARRAY_SIZE(apcs->mbox_chans); i++) in qcom_apcs_ipc_probe()
105 apcs->mbox_chans[i].con_priv = (void *)i; in qcom_apcs_ipc_probe()
107 apcs->mbox.dev = &pdev->dev; in qcom_apcs_ipc_probe()
108 apcs->mbox.ops = &qcom_apcs_ipc_ops; in qcom_apcs_ipc_probe()
109 apcs->mbox.chans = apcs->mbox_chans; in qcom_apcs_ipc_probe()
110 apcs->mbox.num_chans = ARRAY_SIZE(apcs->mbox_chans); in qcom_apcs_ipc_probe()
112 ret = devm_mbox_controller_register(&pdev->dev, &apcs->mbox); in qcom_apcs_ipc_probe()
114 dev_err(&pdev->dev, "failed to register APCS IPC controller\n"); in qcom_apcs_ipc_probe()
118 if (apcs_data->clk_name) { in qcom_apcs_ipc_probe()
119 apcs->clk = platform_device_register_data(&pdev->dev, in qcom_apcs_ipc_probe()
120 apcs_data->clk_name, in qcom_apcs_ipc_probe()
123 if (IS_ERR(apcs->clk)) in qcom_apcs_ipc_probe()
124 dev_err(&pdev->dev, "failed to register APCS clk\n"); in qcom_apcs_ipc_probe()
135 struct platform_device *clk = apcs->clk; in qcom_apcs_ipc_remove()
142 { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
143 { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
144 { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
145 { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
146 { .compatible = "qcom,msm8994-apcs-kpss-global", .data = &msm8994_apcs_data },
147 { .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },
148 { .compatible = "qcom,qcm2290-apcs-hmss-global", .data = &msm8994_apcs_data },
149 { .compatible = "qcom,sdm845-apss-shared", .data = &apps_shared_apcs_data },
150 { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data },
152 { .compatible = "qcom,msm8976-apcs-kpss-global", .data = &msm8994_apcs_data },
153 { .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8994_apcs_data },
154 { .compatible = "qcom,qcs404-apcs-apps-global", .data = &msm8916_apcs_data },
155 { .compatible = "qcom,sdm660-apcs-hmss-global", .data = &msm8994_apcs_data },
156 { .compatible = "qcom,sm4250-apcs-hmss-global", .data = &msm8994_apcs_data },
157 { .compatible = "qcom,sm6125-apcs-hmss-global", .data = &msm8994_apcs_data },
158 { .compatible = "qcom,sm6115-apcs-hmss-global", .data = &msm8994_apcs_data },
159 { .compatible = "qcom,ipq5332-apcs-apps-global", .data = &ipq6018_apcs_data },
160 { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data },
161 { .compatible = "qcom,sc7180-apss-shared", .data = &apps_shared_apcs_data },
162 { .compatible = "qcom,sc8180x-apss-shared", .data = &apps_shared_apcs_data },
163 { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data },