summaryrefslogtreecommitdiff
path: root/sound/soc/amd/ps/acp62.h
diff options
context:
space:
mode:
authorSyed Saba Kareem <Syed.SabaKareem@amd.com>2022-08-27 19:56:46 +0300
committerMark Brown <broonie@kernel.org>2022-08-30 01:14:07 +0300
commit95e43a170bb1e91a7972610d33a26ea4841e2cdd (patch)
tree69ef016b1111c7ef77ca9de43ca0870de6414676 /sound/soc/amd/ps/acp62.h
parent161bff51181f919a4b80fe2ab3504d60ac4b4316 (diff)
downloadlinux-95e43a170bb1e91a7972610d33a26ea4841e2cdd.tar.xz
ASoC: amd: add Pink Sardine ACP PCI driver
ACP is a PCI audio device. This patch adds PCI driver to bind to this device and get PCI resources for Pink Sardine Platform. Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/20220827165657.2343818-3-Syed.SabaKareem@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/ps/acp62.h')
-rw-r--r--sound/soc/amd/ps/acp62.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sound/soc/amd/ps/acp62.h b/sound/soc/amd/ps/acp62.h
new file mode 100644
index 000000000000..5291585f45f9
--- /dev/null
+++ b/sound/soc/amd/ps/acp62.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * AMD ALSA SoC PDM Driver
+ *
+ * Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.
+ */
+
+#include <sound/acp62_chip_offset_byte.h>
+
+#define ACP_DEVICE_ID 0x15E2
+
+static inline u32 acp62_readl(void __iomem *base_addr)
+{
+ return readl(base_addr);
+}
+
+static inline void acp62_writel(u32 val, void __iomem *base_addr)
+{
+ writel(val, base_addr);
+}