remoteproc: qcom_q6v5_pas: Add support for X1E80100 ADSP/CDSP
authorSibi Sankar <quic_sibis@quicinc.com>
Mon, 12 Feb 2024 17:02:43 +0000 (19:02 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 6 Mar 2024 04:02:07 +0000 (20:02 -0800)
Add support for PIL loading on ADSP and CDSP on X1E80100 SoCs.

Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240212-x1e80100-remoteproc-v2-2-604614367f38@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_q6v5_pas.c

index 452e96392525d5bbb2da8433aa39f5ac9bca0c09..3e2ced63a3e11f5629edd06b24058d6dd22fcb90 100644 (file)
@@ -1012,6 +1012,45 @@ static const struct adsp_data sc8280xp_nsp1_resource = {
        .ssctl_id = 0x20,
 };
 
+static const struct adsp_data x1e80100_adsp_resource = {
+       .crash_reason_smem = 423,
+       .firmware_name = "adsp.mdt",
+       .dtb_firmware_name = "adsp_dtb.mdt",
+       .pas_id = 1,
+       .dtb_pas_id = 0x24,
+       .minidump_id = 5,
+       .auto_boot = true,
+       .proxy_pd_names = (char*[]){
+               "lcx",
+               "lmx",
+               NULL
+       },
+       .load_state = "adsp",
+       .ssr_name = "lpass",
+       .sysmon_name = "adsp",
+       .ssctl_id = 0x14,
+};
+
+static const struct adsp_data x1e80100_cdsp_resource = {
+       .crash_reason_smem = 601,
+       .firmware_name = "cdsp.mdt",
+       .dtb_firmware_name = "cdsp_dtb.mdt",
+       .pas_id = 18,
+       .dtb_pas_id = 0x25,
+       .minidump_id = 7,
+       .auto_boot = true,
+       .proxy_pd_names = (char*[]){
+               "cx",
+               "mxc",
+               "nsp",
+               NULL
+       },
+       .load_state = "cdsp",
+       .ssr_name = "cdsp",
+       .sysmon_name = "cdsp",
+       .ssctl_id = 0x17,
+};
+
 static const struct adsp_data sm8350_cdsp_resource = {
        .crash_reason_smem = 601,
        .firmware_name = "cdsp.mdt",
@@ -1316,6 +1355,8 @@ static const struct of_device_id adsp_of_match[] = {
        { .compatible = "qcom,sm8650-adsp-pas", .data = &sm8550_adsp_resource},
        { .compatible = "qcom,sm8650-cdsp-pas", .data = &sm8650_cdsp_resource},
        { .compatible = "qcom,sm8650-mpss-pas", .data = &sm8650_mpss_resource},
+       { .compatible = "qcom,x1e80100-adsp-pas", .data = &x1e80100_adsp_resource},
+       { .compatible = "qcom,x1e80100-cdsp-pas", .data = &x1e80100_cdsp_resource},
        { },
 };
 MODULE_DEVICE_TABLE(of, adsp_of_match);