Skip to content

Commit 0a14281

Browse files
vijendarmukundabroonie
authored andcommitted
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: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/20230823073340.2829821-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent aa83615 commit 0a14281

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

sound/soc/sof/amd/acp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ static int acp_reset(struct snd_sof_dev *sdev)
420420
dev_err(sdev->dev, "timeout in releasing reset\n");
421421

422422
snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->acp_clkmux_sel, ACP_CLOCK_ACLK);
423+
if (desc->ext_intr_enb)
424+
snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->ext_intr_enb, 0x01);
425+
423426
return ret;
424427
}
425428

sound/soc/sof/amd/acp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ struct sof_amd_acp_desc {
174174
const char *name;
175175
unsigned int host_bridge_id;
176176
u32 pgfsm_base;
177+
u32 ext_intr_enb;
177178
u32 ext_intr_stat;
178179
u32 dsp_intr_base;
179180
u32 sram_pte_offset;

0 commit comments

Comments
 (0)