diff options
author | Syed Saba Kareem <Syed.SabaKareem@amd.com> | 2023-06-26 16:55:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-10 00:47:40 +0300 |
commit | e3a96e441e05bbf599ce70c2a03e7acd55b275ee (patch) | |
tree | de76379d3b49533894787ef5d75d4119e97a5c81 /sound/soc/amd/acp/amd.h | |
parent | 7373e6bee60cdac36a134897164885b2257a02ac (diff) | |
download | linux-e3a96e441e05bbf599ce70c2a03e7acd55b275ee.tar.xz |
ASoC: amd: acp: move pdm macros to common header file
Move pdm related macros from pdm file to common header file so
that it can be used across different files.
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Link: https://lore.kernel.org/r/20230626135515.1252063-10-Syed.SabaKareem@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp/amd.h')
-rw-r--r-- | sound/soc/amd/acp/amd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/amd/acp/amd.h b/sound/soc/amd/acp/amd.h index 085f3de53d50..15f772ce5286 100644 --- a/sound/soc/amd/acp/amd.h +++ b/sound/soc/amd/acp/amd.h @@ -111,6 +111,18 @@ #define ACP_TIMEOUT 500 #define DELAY_US 5 +#define PDM_DMA_STAT 0x10 +#define PDM_DMA_INTR_MASK 0x10000 +#define PDM_DEC_64 0x2 +#define PDM_CLK_FREQ_MASK 0x07 +#define PDM_MISC_CTRL_MASK 0x10 +#define PDM_ENABLE 0x01 +#define PDM_DISABLE 0x00 +#define DMA_EN_MASK 0x02 +#define DELAY_US 5 +#define PDM_TIMEOUT 1000 +#define ACP_REGION2_OFFSET 0x02000000 + struct acp_chip_info { char *name; /* Platform name */ unsigned int acp_rev; /* ACP Revision id */ |