xref: /linux/sound/soc/sof/amd/acp-dsp-offset.h (revision 7e51a9e38ab204eba2844b8773486392d7444435)
1846aef1dSAjit Kumar Pandey /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2846aef1dSAjit Kumar Pandey /*
3846aef1dSAjit Kumar Pandey  * This file is provided under a dual BSD/GPLv2 license. When using or
4846aef1dSAjit Kumar Pandey  * redistributing this file, you may do so under either license.
5846aef1dSAjit Kumar Pandey  *
6846aef1dSAjit Kumar Pandey  * Copyright(c) 2021 Advanced Micro Devices, Inc. All rights reserved.
7846aef1dSAjit Kumar Pandey  *
8846aef1dSAjit Kumar Pandey  * Author: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
9846aef1dSAjit Kumar Pandey  */
10846aef1dSAjit Kumar Pandey 
11846aef1dSAjit Kumar Pandey #ifndef _ACP_DSP_IP_OFFSET_H
12846aef1dSAjit Kumar Pandey #define _ACP_DSP_IP_OFFSET_H
13846aef1dSAjit Kumar Pandey 
140e44572aSAjit Kumar Pandey /* Registers from ACP_DMA_0 block */
150e44572aSAjit Kumar Pandey #define ACP_DMA_CNTL_0				0x00
160e44572aSAjit Kumar Pandey #define ACP_DMA_DSCR_STRT_IDX_0			0x20
170e44572aSAjit Kumar Pandey #define ACP_DMA_DSCR_CNT_0			0x40
180e44572aSAjit Kumar Pandey #define ACP_DMA_PRIO_0				0x60
190e44572aSAjit Kumar Pandey #define ACP_DMA_CUR_DSCR_0			0x80
200e44572aSAjit Kumar Pandey #define ACP_DMA_ERR_STS_0			0xC0
210e44572aSAjit Kumar Pandey #define ACP_DMA_DESC_BASE_ADDR			0xE0
220e44572aSAjit Kumar Pandey #define ACP_DMA_DESC_MAX_NUM_DSCR		0xE4
230e44572aSAjit Kumar Pandey #define ACP_DMA_CH_STS				0xE8
240e44572aSAjit Kumar Pandey #define ACP_DMA_CH_GROUP			0xEC
250e44572aSAjit Kumar Pandey #define ACP_DMA_CH_RST_STS			0xF0
260e44572aSAjit Kumar Pandey 
27*7e51a9e3SAjit Kumar Pandey /* Registers from ACP_DSP_0 block */
28*7e51a9e3SAjit Kumar Pandey #define ACP_DSP0_RUNSTALL			0x414
29*7e51a9e3SAjit Kumar Pandey 
300e44572aSAjit Kumar Pandey /* Registers from ACP_AXI2AXIATU block */
310e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_1		0xC00
320e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_1		0xC04
330e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_2		0xC08
340e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_2		0xC0C
350e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_3		0xC10
360e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_3		0xC14
370e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_4		0xC18
380e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_4		0xC1C
390e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_5		0xC20
400e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_5		0xC24
410e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_6		0xC28
420e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_6		0xC2C
430e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_7		0xC30
440e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_7		0xC34
450e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_8		0xC38
460e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_BASE_ADDR_GRP_8		0xC3C
470e44572aSAjit Kumar Pandey #define ACPAXI2AXI_ATU_CTRL			0xC40
48846aef1dSAjit Kumar Pandey #define ACP_SOFT_RESET				0x1000
49846aef1dSAjit Kumar Pandey 
50846aef1dSAjit Kumar Pandey /* Registers from ACP_PGFSM block */
51846aef1dSAjit Kumar Pandey #define ACP_PGFSM_CONTROL			0x141C
52846aef1dSAjit Kumar Pandey #define ACP_PGFSM_STATUS			0x1420
53846aef1dSAjit Kumar Pandey 
540e44572aSAjit Kumar Pandey /* Registers from ACP_INTR block */
550e44572aSAjit Kumar Pandey #define ACP_DSP_SW_INTR_CNTL			0x1814
560e44572aSAjit Kumar Pandey #define ACP_ERROR_STATUS			0x18C4
570e44572aSAjit Kumar Pandey 
580e44572aSAjit Kumar Pandey /* Registers from ACP_SHA block */
590e44572aSAjit Kumar Pandey #define ACP_SHA_DSP_FW_QUALIFIER		0x1C70
600e44572aSAjit Kumar Pandey #define ACP_SHA_DMA_CMD				0x1CB0
610e44572aSAjit Kumar Pandey #define ACP_SHA_MSG_LENGTH			0x1CB4
620e44572aSAjit Kumar Pandey #define ACP_SHA_DMA_STRT_ADDR			0x1CB8
630e44572aSAjit Kumar Pandey #define ACP_SHA_DMA_DESTINATION_ADDR		0x1CBC
640e44572aSAjit Kumar Pandey #define ACP_SHA_DMA_CMD_STS			0x1CC0
650e44572aSAjit Kumar Pandey #define ACP_SHA_DMA_ERR_STATUS			0x1CC4
660e44572aSAjit Kumar Pandey #define ACP_SHA_TRANSFER_BYTE_CNT		0x1CC8
670e44572aSAjit Kumar Pandey 
680e44572aSAjit Kumar Pandey #define ACP_SCRATCH_REG_0			0x10000
690e44572aSAjit Kumar Pandey 
70846aef1dSAjit Kumar Pandey #endif
71