Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: pd_mapper: Add X1E80100

X1E80100 has the same protection domains as SM8550, except that MPSS is
missing. Add it to the in-kernel pd-mapper to avoid having to run the
daemon in userspace for charging and audio functionality.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240708-x1e80100-pd-mapper-v1-1-854386af4cf5@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Stephan Gerhold and committed by
Bjorn Andersson
bd6db1f1 3f780bba

+10
+10
drivers/soc/qcom/qcom_pd_mapper.c
··· 517 517 NULL, 518 518 }; 519 519 520 + static const struct qcom_pdm_domain_data *x1e80100_domains[] = { 521 + &adsp_audio_pd, 522 + &adsp_root_pd, 523 + &adsp_charger_pd, 524 + &adsp_sensor_pd, 525 + &cdsp_root_pd, 526 + NULL, 527 + }; 528 + 520 529 static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { 521 530 { .compatible = "qcom,apq8064", .data = NULL, }, 522 531 { .compatible = "qcom,apq8074", .data = NULL, }, ··· 554 545 { .compatible = "qcom,sm8450", .data = sm8350_domains, }, 555 546 { .compatible = "qcom,sm8550", .data = sm8550_domains, }, 556 547 { .compatible = "qcom,sm8650", .data = sm8550_domains, }, 548 + { .compatible = "qcom,x1e80100", .data = x1e80100_domains, }, 557 549 {}, 558 550 }; 559 551