Commit 0a142814 authored by Vijendar Mukunda's avatar Vijendar Mukunda Committed by Mark Brown

ASoC: SOF: amd: enable ACP external global interrupt

Previously ACP SOF firmware used to enable the ACP external
global interrupt register.
This will restrict to report ACP host interrupts only after
firmware loading is successful.
This register needs to be set from host driver to handle
other ACP interrupts(SoundWire Interrupts) before loading
the ACP firmware.

Add field for external interrupt enable register in acp descriptor
structure and enable the external interrupt enable register.
Signed-off-by: default avatarVijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230823073340.2829821-2-Vijendar.Mukunda@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent aa836152
...@@ -420,6 +420,9 @@ static int acp_reset(struct snd_sof_dev *sdev) ...@@ -420,6 +420,9 @@ static int acp_reset(struct snd_sof_dev *sdev)
dev_err(sdev->dev, "timeout in releasing reset\n"); dev_err(sdev->dev, "timeout in releasing reset\n");
snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK); snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK);
if (desc->ext_intr_enb)
snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->ext_intr_enb, 0x01);
return ret; return ret;
} }
......
...@@ -174,6 +174,7 @@ struct sof_amd_acp_desc { ...@@ -174,6 +174,7 @@ struct sof_amd_acp_desc {
const char *name; const char *name;
unsigned int host_bridge_id; unsigned int host_bridge_id;
u32 pgfsm_base; u32 pgfsm_base;
u32 ext_intr_enb;
u32 ext_intr_stat; u32 ext_intr_stat;
u32 dsp_intr_base; u32 dsp_intr_base;
u32 sram_pte_offset; u32 sram_pte_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment