Skip to content

Commit 4e55a6c

Browse files
committed
remoteproc: qcom: pas: Add sc8280xp remoteprocs
Among the subsystems in the Qualcomm sc8280xp platform we find an audio and two compute DSPs. Add support for controlling these using the peripheral authentication service (PAS) remoteproc driver. Signed-off-by: Bjorn Andersson <[email protected]> Reviewed-by: Vinod Koul <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ee651cd commit 4e55a6c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

drivers/remoteproc/qcom_q6v5_pas.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,36 @@ static const struct adsp_data sm8250_cdsp_resource = {
704704
.ssctl_id = 0x17,
705705
};
706706

707+
static const struct adsp_data sc8280xp_nsp0_resource = {
708+
.crash_reason_smem = 601,
709+
.firmware_name = "cdsp.mdt",
710+
.pas_id = 18,
711+
.has_aggre2_clk = false,
712+
.auto_boot = true,
713+
.proxy_pd_names = (char*[]){
714+
"nsp",
715+
NULL
716+
},
717+
.ssr_name = "cdsp0",
718+
.sysmon_name = "cdsp",
719+
.ssctl_id = 0x17,
720+
};
721+
722+
static const struct adsp_data sc8280xp_nsp1_resource = {
723+
.crash_reason_smem = 633,
724+
.firmware_name = "cdsp.mdt",
725+
.pas_id = 30,
726+
.has_aggre2_clk = false,
727+
.auto_boot = true,
728+
.proxy_pd_names = (char*[]){
729+
"nsp",
730+
NULL
731+
},
732+
.ssr_name = "cdsp1",
733+
.sysmon_name = "cdsp1",
734+
.ssctl_id = 0x20,
735+
};
736+
707737
static const struct adsp_data sm8350_cdsp_resource = {
708738
.crash_reason_smem = 601,
709739
.firmware_name = "cdsp.mdt",
@@ -861,6 +891,9 @@ static const struct of_device_id adsp_of_match[] = {
861891
{ .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource},
862892
{ .compatible = "qcom,sc8180x-cdsp-pas", .data = &sm8150_cdsp_resource},
863893
{ .compatible = "qcom,sc8180x-mpss-pas", .data = &sc8180x_mpss_resource},
894+
{ .compatible = "qcom,sc8280xp-adsp-pas", .data = &sm8250_adsp_resource},
895+
{ .compatible = "qcom,sc8280xp-nsp0-pas", .data = &sc8280xp_nsp0_resource},
896+
{ .compatible = "qcom,sc8280xp-nsp1-pas", .data = &sc8280xp_nsp1_resource},
864897
{ .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init},
865898
{ .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init},
866899
{ .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init},

0 commit comments

Comments
 (0)