summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd/renoir/rn_acp3x.h
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2020-05-19 01:16:58 +0800
committerMark Brown <broonie@kernel.org>2020-05-19 13:45:32 +0100
commit370e7dde5b3d71820e142b566683306940daeffe (patch)
tree8e0f263055186630e9daed00cad7a9a82c41668d /sound/soc/amd/renoir/rn_acp3x.h
parent4a767b1d039a855c491c4853013804323c06f728 (diff)
downloadlinux-stable-370e7dde5b3d71820e142b566683306940daeffe.tar.gz
linux-stable-370e7dde5b3d71820e142b566683306940daeffe.tar.bz2
linux-stable-370e7dde5b3d71820e142b566683306940daeffe.zip
ASoC: amd: add ACP PDM DMA driver dai ops
This patch adds ACP3x PDM DMA driver DAI operations. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200518171704.24999-9-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/renoir/rn_acp3x.h')
-rw-r--r--sound/soc/amd/renoir/rn_acp3x.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/amd/renoir/rn_acp3x.h b/sound/soc/amd/renoir/rn_acp3x.h
index 3536d24374f3..a4f654cf2df0 100644
--- a/sound/soc/amd/renoir/rn_acp3x.h
+++ b/sound/soc/amd/renoir/rn_acp3x.h
@@ -31,6 +31,15 @@
#define PDM_DMA_STAT 0x10
#define PDM_DMA_INTR_MASK 0x10000
#define ACP_ERROR_STAT 29
+#define PDM_DECIMATION_FACTOR 0x2
+#define ACP_PDM_CLK_FREQ_MASK 0x07
+#define ACP_WOV_MISC_CTRL_MASK 0x10
+#define ACP_PDM_ENABLE 0x01
+#define ACP_PDM_DISABLE 0x00
+#define ACP_PDM_DMA_EN_STATUS 0x02
+#define TWO_CH 0x02
+#define DELAY_US 5
+#define ACP_COUNTER 20000
#define ACP_SRAM_PTE_OFFSET 0x02050000
#define PAGE_SIZE_4K_ENABLE 0x2