Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8b4e9a

Browse files
vinodkoulandersson
authored andcommitted
remoteproc: qcom: pas: Add SM8350 PAS remoteprocs
Add audio, compute, modem and sensor DSP resources to the Qualcomm PAS driver. Signed-off-by: Vinod Koul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 243a8b3 commit e8b4e9a

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

drivers/remoteproc/qcom_q6v5_pas.c

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,26 @@ static const struct adsp_data sm8250_adsp_resource = {
565565
.ssctl_id = 0x14,
566566
};
567567

568+
static const struct adsp_data sm8350_adsp_resource = {
569+
.crash_reason_smem = 423,
570+
.firmware_name = "adsp.mdt",
571+
.pas_id = 1,
572+
.has_aggre2_clk = false,
573+
.auto_boot = true,
574+
.active_pd_names = (char*[]){
575+
"load_state",
576+
NULL
577+
},
578+
.proxy_pd_names = (char*[]){
579+
"lcx",
580+
"lmx",
581+
NULL
582+
},
583+
.ssr_name = "lpass",
584+
.sysmon_name = "adsp",
585+
.ssctl_id = 0x14,
586+
};
587+
568588
static const struct adsp_data msm8998_adsp_resource = {
569589
.crash_reason_smem = 423,
570590
.firmware_name = "adsp.mdt",
@@ -629,6 +649,25 @@ static const struct adsp_data sm8250_cdsp_resource = {
629649
.ssctl_id = 0x17,
630650
};
631651

652+
static const struct adsp_data sm8350_cdsp_resource = {
653+
.crash_reason_smem = 601,
654+
.firmware_name = "cdsp.mdt",
655+
.pas_id = 18,
656+
.has_aggre2_clk = false,
657+
.auto_boot = true,
658+
.active_pd_names = (char*[]){
659+
"load_state",
660+
NULL
661+
},
662+
.proxy_pd_names = (char*[]){
663+
"cx",
664+
NULL
665+
},
666+
.ssr_name = "cdsp",
667+
.sysmon_name = "cdsp",
668+
.ssctl_id = 0x17,
669+
};
670+
632671
static const struct adsp_data mpss_resource_init = {
633672
.crash_reason_smem = 421,
634673
.firmware_name = "modem.mdt",
@@ -701,6 +740,26 @@ static const struct adsp_data sm8250_slpi_resource = {
701740
.ssctl_id = 0x16,
702741
};
703742

743+
static const struct adsp_data sm8350_slpi_resource = {
744+
.crash_reason_smem = 424,
745+
.firmware_name = "slpi.mdt",
746+
.pas_id = 12,
747+
.has_aggre2_clk = false,
748+
.auto_boot = true,
749+
.active_pd_names = (char*[]){
750+
"load_state",
751+
NULL
752+
},
753+
.proxy_pd_names = (char*[]){
754+
"lcx",
755+
"lmx",
756+
NULL
757+
},
758+
.ssr_name = "dsps",
759+
.sysmon_name = "slpi",
760+
.ssctl_id = 0x16,
761+
};
762+
704763
static const struct adsp_data msm8998_slpi_resource = {
705764
.crash_reason_smem = 424,
706765
.firmware_name = "slpi.mdt",
@@ -745,6 +804,10 @@ static const struct of_device_id adsp_of_match[] = {
745804
{ .compatible = "qcom,sm8250-adsp-pas", .data = &sm8250_adsp_resource},
746805
{ .compatible = "qcom,sm8250-cdsp-pas", .data = &sm8250_cdsp_resource},
747806
{ .compatible = "qcom,sm8250-slpi-pas", .data = &sm8250_slpi_resource},
807+
{ .compatible = "qcom,sm8350-adsp-pas", .data = &sm8350_adsp_resource},
808+
{ .compatible = "qcom,sm8350-cdsp-pas", .data = &sm8350_cdsp_resource},
809+
{ .compatible = "qcom,sm8350-slpi-pas", .data = &sm8350_slpi_resource},
810+
{ .compatible = "qcom,sm8350-mpss-pas", .data = &mpss_resource_init},
748811
{ },
749812
};
750813
MODULE_DEVICE_TABLE(of, adsp_of_match);

0 commit comments

Comments
 (0)