1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * AMD ALSA SoC PCM Driver
5 * Copyright (C) 2021 Advanced Micro Devices, Inc. All rights reserved.
8 #include "vg_chip_offset_byte.h"
10 #define ACP5x_PHY_BASE_ADDRESS 0x1240000
11 #define ACP_DEVICE_ID 0x15E2
13 /* common header file uses exact offset rather than relative
14 * offset which requires subtraction logic from base_addr
15 * for accessing ACP5x MMIO space registers
17 static inline u32 acp_readl(void __iomem *base_addr)
19 return readl(base_addr - ACP5x_PHY_BASE_ADDRESS);
22 static inline void acp_writel(u32 val, void __iomem *base_addr)
24 writel(val, base_addr - ACP5x_PHY_BASE_ADDRESS);