Lines Matching full:apcs

37 	.offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
66 struct qcom_apcs_ipc *apcs = container_of(chan->mbox, in qcom_apcs_ipc_send_data() local
70 return regmap_write(apcs->regmap, apcs->offset, BIT(idx)); in qcom_apcs_ipc_send_data()
79 struct qcom_apcs_ipc *apcs; in qcom_apcs_ipc_probe() local
86 apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); in qcom_apcs_ipc_probe()
87 if (!apcs) 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()
119 apcs->clk = platform_device_register_data(&pdev->dev, 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()
127 platform_set_drvdata(pdev, apcs); in qcom_apcs_ipc_probe()
134 struct qcom_apcs_ipc *apcs = platform_get_drvdata(pdev); in qcom_apcs_ipc_remove() local
135 struct platform_device *clk = apcs->clk; in qcom_apcs_ipc_remove()
144 { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
145 { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data },
146 { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
147 { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
148 { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
149 { .compatible = "qcom,msm8976-apcs-kpss-global", .data = &msm8994_apcs_data },
150 { .compatible = "qcom,msm8994-apcs-kpss-global", .data = &msm8994_apcs_data },
151 { .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },
152 { .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8994_apcs_data },
153 { .compatible = "qcom,qcm2290-apcs-hmss-global", .data = &msm8994_apcs_data },
154 { .compatible = "qcom,qcs404-apcs-apps-global", .data = &msm8916_apcs_data },
157 { .compatible = "qcom,sdm660-apcs-hmss-global", .data = &msm8994_apcs_data },
159 { .compatible = "qcom,sm6125-apcs-hmss-global", .data = &msm8994_apcs_data },
161 { .compatible = "qcom,sm6115-apcs-hmss-global", .data = &msm8994_apcs_data },
162 { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data },
189 MODULE_DESCRIPTION("Qualcomm APCS IPC driver");