Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vijendar Mukunda and committed by
Mark Brown
0a142814 aa836152

+4
+3
sound/soc/sof/amd/acp.c
··· 420 420 dev_err(sdev->dev, "timeout in releasing reset\n"); 421 421 422 422 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 + 423 426 return ret; 424 427 } 425 428
+1
sound/soc/sof/amd/acp.h
··· 174 174 const char *name; 175 175 unsigned int host_bridge_id; 176 176 u32 pgfsm_base; 177 + u32 ext_intr_enb; 177 178 u32 ext_intr_stat; 178 179 u32 dsp_intr_base; 179 180 u32 sram_pte_offset;