summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd/raven/acp3x.h
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2018-11-12 11:04:54 +0530
committerMark Brown <broonie@kernel.org>2018-11-13 11:44:04 -0800
commit7894a7e7ea3de6c1fd5b2b43f3a73106c94ef584 (patch)
tree7cfef42dd7a561f74d41edd4f422198dd5ea28c0 /sound/soc/amd/raven/acp3x.h
parente30d9128def6ca0715a89b9a3133a94521dc0b51 (diff)
ASoC: amd: create ACP3x PCM platform device
ACP 3x IP has I2S controller device as one of IP blocks. Create a platform device for it, so that the PCM platform driver can be bound to this device. Pass PCI resources like MMIO, irq to the platform device. Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Tested-by: Ravulapati Vishnu vardhan Rao <vishnuvardhanrao.ravulapati@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.mukunda@amd.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/raven/acp3x.h')
-rw-r--r--sound/soc/amd/raven/acp3x.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h
index e9b4df0c6726..83b1ed8f6060 100644
--- a/sound/soc/amd/raven/acp3x.h
+++ b/sound/soc/amd/raven/acp3x.h
@@ -1,6 +1,10 @@
#include "chip_offset_byte.h"
#define ACP3x_PHY_BASE_ADDRESS 0x1240000
+#define ACP3x_I2S_MODE 0
+#define ACP3x_REG_START 0x1240000
+#define ACP3x_REG_END 0x1250200
+#define I2S_MODE 0x04
static inline u32 rv_readl(void __iomem *base_addr)
{