diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2020-05-19 01:16:52 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-19 13:45:26 +0100 |
commit | 1eb2852efe05abfa94cd78cc9865389643726ee9 (patch) | |
tree | d5b165d35306275521bcb868ab6cc8c5b7d6914a /sound/soc/amd/renoir/rn_acp3x.h | |
parent | 9b5e98e21467cd0a6c689db5ef971d7a61c73929 (diff) |
ASoC: amd: add Renoir ACP PCI driver
ACP is a PCI audio device.
This patch adds PCI driver to bind to this device and get
PCI resources.
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-3-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.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sound/soc/amd/renoir/rn_acp3x.h b/sound/soc/amd/renoir/rn_acp3x.h new file mode 100644 index 000000000000..da5715759646 --- /dev/null +++ b/sound/soc/amd/renoir/rn_acp3x.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * AMD ALSA SoC PDM Driver + * + * Copyright 2020 Advanced Micro Devices, Inc. + */ + +#include "rn_chip_offset_byte.h" + +#define ACP_PHY_BASE_ADDRESS 0x1240000 +#define ACP_DEVICE_ID 0x15E2 + +static inline u32 rn_readl(void __iomem *base_addr) +{ + return readl(base_addr - ACP_PHY_BASE_ADDRESS); +} + +static inline void rn_writel(u32 val, void __iomem *base_addr) +{ + writel(val, base_addr - ACP_PHY_BASE_ADDRESS); +} |