mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
remoteproc: qcom_q6v5_pas: Add flag for dsm region setup
Some targets don't have dsm region to be setup by remoteproc, so add a flag to check if we need to setup the dsm region or not and enable for pineapple. Change-Id: I1cdfa7ef05c3a59878ae4b07d5e0c776962a075b Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
This commit is contained in:
parent
f5e30fb6c7
commit
a5235ba22e
|
|
@ -65,6 +65,7 @@ struct adsp_data {
|
|||
bool auto_boot;
|
||||
bool dma_phys_below_32b;
|
||||
bool decrypt_shutdown;
|
||||
bool needs_dsm_mem_setup;
|
||||
|
||||
char **active_pd_names;
|
||||
char **proxy_pd_names;
|
||||
|
|
@ -1012,7 +1013,8 @@ static int adsp_probe(struct platform_device *pdev)
|
|||
if (ret < 0 && ret != -EINVAL)
|
||||
return ret;
|
||||
|
||||
if (!mpss_dsm_mem_setup && !strcmp(fw_name, "modem.mdt")) {
|
||||
if (desc->needs_dsm_mem_setup && !mpss_dsm_mem_setup &&
|
||||
!strcmp(fw_name, "modem.mdt")) {
|
||||
ret = setup_mpss_dsm_mem(pdev);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to setup mpss dsm mem\n");
|
||||
|
|
@ -1514,6 +1516,7 @@ static const struct adsp_data pineapple_mpss_resource = {
|
|||
.uses_elf64 = true,
|
||||
.has_aggre2_clk = false,
|
||||
.auto_boot = false,
|
||||
.needs_dsm_mem_setup = true,
|
||||
.ssr_name = "mpss",
|
||||
.sysmon_name = "modem",
|
||||
.qmp_name = "modem",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user