]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc: qcom: pd-mapper: Add support for Glymur and Mahua
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Tue, 24 Mar 2026 12:53:49 +0000 (12:53 +0000)
committerBjorn Andersson <andersson@kernel.org>
Thu, 26 Mar 2026 02:45:17 +0000 (21:45 -0500)
Add Protection Domains for Qualcomm Glymur and Mahua SoC which have
both ADSP and CDSP.

Adding this entry to the kernel will avoid the need for userspace to provide
this service.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260324125349.2380904-1-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/qcom_pd_mapper.c

index 72698772838e6af336159a6dcfad917524f7dd2e..003aa88fc372ab8e588f7889a31d6645db3a8065 100644 (file)
@@ -360,6 +360,14 @@ static const struct qcom_pdm_domain_data mpss_wlan_pd = {
        },
 };
 
+static const struct qcom_pdm_domain_data *glymur_domains[] = {
+       &adsp_audio_pd,
+       &adsp_root_pd,
+       &adsp_sensor_pd,
+       &cdsp_root_pd,
+       NULL,
+};
+
 static const struct qcom_pdm_domain_data *kaanapali_domains[] = {
        &adsp_audio_pd,
        &adsp_root_pd,
@@ -571,7 +579,9 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
        { .compatible = "qcom,apq8074", .data = NULL, },
        { .compatible = "qcom,apq8084", .data = NULL, },
        { .compatible = "qcom,apq8096", .data = msm8996_domains, },
+       { .compatible = "qcom,glymur", .data = glymur_domains, },
        { .compatible = "qcom,kaanapali", .data = kaanapali_domains, },
+       { .compatible = "qcom,mahua", .data = glymur_domains, },
        { .compatible = "qcom,milos", .data = sm8550_domains, },
        { .compatible = "qcom,msm8226", .data = NULL, },
        { .compatible = "qcom,msm8909", .data = NULL, },