linux/sound/soc/amd/renoir/rn_chip_offset_byte.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * AMD ACP 3.1 Register Documentation
 *
 * Copyright 2020 Advanced Micro Devices, Inc.
 */

#ifndef _rn_OFFSET_HEADER
#define _rn_OFFSET_HEADER
// Registers from ACP_DMA block

#define ACP_DMA_CNTL_0
#define ACP_DMA_CNTL_1
#define ACP_DMA_CNTL_2
#define ACP_DMA_CNTL_3
#define ACP_DMA_CNTL_4
#define ACP_DMA_CNTL_5
#define ACP_DMA_CNTL_6
#define ACP_DMA_CNTL_7
#define ACP_DMA_DSCR_STRT_IDX_0
#define ACP_DMA_DSCR_STRT_IDX_1
#define ACP_DMA_DSCR_STRT_IDX_2
#define ACP_DMA_DSCR_STRT_IDX_3
#define ACP_DMA_DSCR_STRT_IDX_4
#define ACP_DMA_DSCR_STRT_IDX_5
#define ACP_DMA_DSCR_STRT_IDX_6
#define ACP_DMA_DSCR_STRT_IDX_7
#define ACP_DMA_DSCR_CNT_0
#define ACP_DMA_DSCR_CNT_1
#define ACP_DMA_DSCR_CNT_2
#define ACP_DMA_DSCR_CNT_3
#define ACP_DMA_DSCR_CNT_4
#define ACP_DMA_DSCR_CNT_5
#define ACP_DMA_DSCR_CNT_6
#define ACP_DMA_DSCR_CNT_7
#define ACP_DMA_PRIO_0
#define ACP_DMA_PRIO_1
#define ACP_DMA_PRIO_2
#define ACP_DMA_PRIO_3
#define ACP_DMA_PRIO_4
#define ACP_DMA_PRIO_5
#define ACP_DMA_PRIO_6
#define ACP_DMA_PRIO_7
#define ACP_DMA_CUR_DSCR_0
#define ACP_DMA_CUR_DSCR_1
#define ACP_DMA_CUR_DSCR_2
#define ACP_DMA_CUR_DSCR_3
#define ACP_DMA_CUR_DSCR_4
#define ACP_DMA_CUR_DSCR_5
#define ACP_DMA_CUR_DSCR_6
#define ACP_DMA_CUR_DSCR_7
#define ACP_DMA_CUR_TRANS_CNT_0
#define ACP_DMA_CUR_TRANS_CNT_1
#define ACP_DMA_CUR_TRANS_CNT_2
#define ACP_DMA_CUR_TRANS_CNT_3
#define ACP_DMA_CUR_TRANS_CNT_4
#define ACP_DMA_CUR_TRANS_CNT_5
#define ACP_DMA_CUR_TRANS_CNT_6
#define ACP_DMA_CUR_TRANS_CNT_7
#define ACP_DMA_ERR_STS_0
#define ACP_DMA_ERR_STS_1
#define ACP_DMA_ERR_STS_2
#define ACP_DMA_ERR_STS_3
#define ACP_DMA_ERR_STS_4
#define ACP_DMA_ERR_STS_5
#define ACP_DMA_ERR_STS_6
#define ACP_DMA_ERR_STS_7
#define ACP_DMA_DESC_BASE_ADDR
#define ACP_DMA_DESC_MAX_NUM_DSCR
#define ACP_DMA_CH_STS
#define ACP_DMA_CH_GROUP
#define ACP_DMA_CH_RST_STS

// Registers from ACP_AXI2AXIATU block

#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_1
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_1
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_2
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_2
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_3
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_3
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_4
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_4
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_5
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_5
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_6
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_6
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_7
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_7
#define ACPAXI2AXI_ATU_PAGE_SIZE_GRP_8
#define ACPAXI2AXI_ATU_BASE_ADDR_GRP_8
#define ACPAXI2AXI_ATU_CTRL

// Registers from ACP_CLKRST block

#define ACP_SOFT_RESET
#define ACP_CONTROL
#define ACP_STATUS
#define ACP_DYNAMIC_CG_MASTER_CONTROL

// Registers from ACP_MISC block

#define ACP_EXTERNAL_INTR_ENB
#define ACP_EXTERNAL_INTR_CNTL
#define ACP_EXTERNAL_INTR_STAT
#define ACP_PGMEM_CTRL
#define ACP_ERROR_STATUS
#define ACP_SW_I2S_ERROR_REASON
#define ACP_MEM_PG_STS

// Registers from ACP_PGFSM block

#define ACP_I2S_PIN_CONFIG
#define ACP_PAD_PULLUP_PULLDOWN_CTRL
#define ACP_PAD_DRIVE_STRENGTH_CTRL
#define ACP_SW_PAD_KEEPER_EN
#define ACP_PGFSM_CONTROL
#define ACP_PGFSM_STATUS
#define ACP_CLKMUX_SEL
#define ACP_DEVICE_STATE
#define AZ_DEVICE_STATE
#define ACP_INTR_URGENCY_TIMER
#define AZ_INTR_URGENCY_TIMER

// Registers from ACP_SCRATCH block

#define ACP_SCRATCH_REG_0
#define ACP_SCRATCH_REG_1
#define ACP_SCRATCH_REG_2
#define ACP_SCRATCH_REG_3
#define ACP_SCRATCH_REG_4
#define ACP_SCRATCH_REG_5
#define ACP_SCRATCH_REG_6
#define ACP_SCRATCH_REG_7
#define ACP_SCRATCH_REG_8
#define ACP_SCRATCH_REG_9
#define ACP_SCRATCH_REG_10
#define ACP_SCRATCH_REG_11
#define ACP_SCRATCH_REG_12
#define ACP_SCRATCH_REG_13
#define ACP_SCRATCH_REG_14
#define ACP_SCRATCH_REG_15
#define ACP_SCRATCH_REG_16
#define ACP_SCRATCH_REG_17
#define ACP_SCRATCH_REG_18
#define ACP_SCRATCH_REG_19
#define ACP_SCRATCH_REG_20
#define ACP_SCRATCH_REG_21
#define ACP_SCRATCH_REG_22
#define ACP_SCRATCH_REG_23
#define ACP_SCRATCH_REG_24
#define ACP_SCRATCH_REG_25
#define ACP_SCRATCH_REG_26
#define ACP_SCRATCH_REG_27
#define ACP_SCRATCH_REG_28
#define ACP_SCRATCH_REG_29
#define ACP_SCRATCH_REG_30
#define ACP_SCRATCH_REG_31
#define ACP_SCRATCH_REG_32
#define ACP_SCRATCH_REG_33
#define ACP_SCRATCH_REG_34
#define ACP_SCRATCH_REG_35
#define ACP_SCRATCH_REG_36
#define ACP_SCRATCH_REG_37
#define ACP_SCRATCH_REG_38
#define ACP_SCRATCH_REG_39
#define ACP_SCRATCH_REG_40
#define ACP_SCRATCH_REG_41
#define ACP_SCRATCH_REG_42
#define ACP_SCRATCH_REG_43
#define ACP_SCRATCH_REG_44
#define ACP_SCRATCH_REG_45
#define ACP_SCRATCH_REG_46
#define ACP_SCRATCH_REG_47
#define ACP_SCRATCH_REG_48
#define ACP_SCRATCH_REG_49
#define ACP_SCRATCH_REG_50
#define ACP_SCRATCH_REG_51
#define ACP_SCRATCH_REG_52
#define ACP_SCRATCH_REG_53
#define ACP_SCRATCH_REG_54
#define ACP_SCRATCH_REG_55
#define ACP_SCRATCH_REG_56
#define ACP_SCRATCH_REG_57
#define ACP_SCRATCH_REG_58
#define ACP_SCRATCH_REG_59
#define ACP_SCRATCH_REG_60
#define ACP_SCRATCH_REG_61
#define ACP_SCRATCH_REG_62
#define ACP_SCRATCH_REG_63
#define ACP_SCRATCH_REG_64
#define ACP_SCRATCH_REG_65
#define ACP_SCRATCH_REG_66
#define ACP_SCRATCH_REG_67
#define ACP_SCRATCH_REG_68
#define ACP_SCRATCH_REG_69
#define ACP_SCRATCH_REG_70
#define ACP_SCRATCH_REG_71
#define ACP_SCRATCH_REG_72
#define ACP_SCRATCH_REG_73
#define ACP_SCRATCH_REG_74
#define ACP_SCRATCH_REG_75
#define ACP_SCRATCH_REG_76
#define ACP_SCRATCH_REG_77
#define ACP_SCRATCH_REG_78
#define ACP_SCRATCH_REG_79
#define ACP_SCRATCH_REG_80
#define ACP_SCRATCH_REG_81
#define ACP_SCRATCH_REG_82
#define ACP_SCRATCH_REG_83
#define ACP_SCRATCH_REG_84
#define ACP_SCRATCH_REG_85
#define ACP_SCRATCH_REG_86
#define ACP_SCRATCH_REG_87
#define ACP_SCRATCH_REG_88
#define ACP_SCRATCH_REG_89
#define ACP_SCRATCH_REG_90
#define ACP_SCRATCH_REG_91
#define ACP_SCRATCH_REG_92
#define ACP_SCRATCH_REG_93
#define ACP_SCRATCH_REG_94
#define ACP_SCRATCH_REG_95
#define ACP_SCRATCH_REG_96
#define ACP_SCRATCH_REG_97
#define ACP_SCRATCH_REG_98
#define ACP_SCRATCH_REG_99
#define ACP_SCRATCH_REG_100
#define ACP_SCRATCH_REG_101
#define ACP_SCRATCH_REG_102
#define ACP_SCRATCH_REG_103
#define ACP_SCRATCH_REG_104
#define ACP_SCRATCH_REG_105
#define ACP_SCRATCH_REG_106
#define ACP_SCRATCH_REG_107
#define ACP_SCRATCH_REG_108
#define ACP_SCRATCH_REG_109
#define ACP_SCRATCH_REG_110
#define ACP_SCRATCH_REG_111
#define ACP_SCRATCH_REG_112
#define ACP_SCRATCH_REG_113
#define ACP_SCRATCH_REG_114
#define ACP_SCRATCH_REG_115
#define ACP_SCRATCH_REG_116
#define ACP_SCRATCH_REG_117
#define ACP_SCRATCH_REG_118
#define ACP_SCRATCH_REG_119
#define ACP_SCRATCH_REG_120
#define ACP_SCRATCH_REG_121
#define ACP_SCRATCH_REG_122
#define ACP_SCRATCH_REG_123
#define ACP_SCRATCH_REG_124
#define ACP_SCRATCH_REG_125
#define ACP_SCRATCH_REG_126
#define ACP_SCRATCH_REG_127
#define ACP_SCRATCH_REG_128

// Registers from ACP_AUDIO_BUFFERS block

#define ACP_I2S_RX_RINGBUFADDR
#define ACP_I2S_RX_RINGBUFSIZE
#define ACP_I2S_RX_LINKPOSITIONCNTR
#define ACP_I2S_RX_FIFOADDR
#define ACP_I2S_RX_FIFOSIZE
#define ACP_I2S_RX_DMA_SIZE
#define ACP_I2S_RX_LINEARPOSITIONCNTR_HIGH
#define ACP_I2S_RX_LINEARPOSITIONCNTR_LOW
#define ACP_I2S_RX_INTR_WATERMARK_SIZE
#define ACP_I2S_TX_RINGBUFADDR
#define ACP_I2S_TX_RINGBUFSIZE
#define ACP_I2S_TX_LINKPOSITIONCNTR
#define ACP_I2S_TX_FIFOADDR
#define ACP_I2S_TX_FIFOSIZE
#define ACP_I2S_TX_DMA_SIZE
#define ACP_I2S_TX_LINEARPOSITIONCNTR_HIGH
#define ACP_I2S_TX_LINEARPOSITIONCNTR_LOW
#define ACP_I2S_TX_INTR_WATERMARK_SIZE
#define ACP_BT_RX_RINGBUFADDR
#define ACP_BT_RX_RINGBUFSIZE
#define ACP_BT_RX_LINKPOSITIONCNTR
#define ACP_BT_RX_FIFOADDR
#define ACP_BT_RX_FIFOSIZE
#define ACP_BT_RX_DMA_SIZE
#define ACP_BT_RX_LINEARPOSITIONCNTR_HIGH
#define ACP_BT_RX_LINEARPOSITIONCNTR_LOW
#define ACP_BT_RX_INTR_WATERMARK_SIZE
#define ACP_BT_TX_RINGBUFADDR
#define ACP_BT_TX_RINGBUFSIZE
#define ACP_BT_TX_LINKPOSITIONCNTR
#define ACP_BT_TX_FIFOADDR
#define ACP_BT_TX_FIFOSIZE
#define ACP_BT_TX_DMA_SIZE
#define ACP_BT_TX_LINEARPOSITIONCNTR_HIGH
#define ACP_BT_TX_LINEARPOSITIONCNTR_LOW
#define ACP_BT_TX_INTR_WATERMARK_SIZE
#define ACP_HS_RX_RINGBUFADDR
#define ACP_HS_RX_RINGBUFSIZE
#define ACP_HS_RX_LINKPOSITIONCNTR
#define ACP_HS_RX_FIFOADDR
#define ACP_HS_RX_FIFOSIZE
#define ACP_HS_RX_DMA_SIZE
#define ACP_HS_RX_LINEARPOSITIONCNTR_HIGH
#define ACP_HS_RX_LINEARPOSITIONCNTR_LOW
#define ACP_HS_RX_INTR_WATERMARK_SIZE
#define ACP_HS_TX_RINGBUFADDR
#define ACP_HS_TX_RINGBUFSIZE
#define ACP_HS_TX_LINKPOSITIONCNTR
#define ACP_HS_TX_FIFOADDR
#define ACP_HS_TX_FIFOSIZE
#define ACP_HS_TX_DMA_SIZE
#define ACP_HS_TX_LINEARPOSITIONCNTR_HIGH
#define ACP_HS_TX_LINEARPOSITIONCNTR_LOW
#define ACP_HS_TX_INTR_WATERMARK_SIZE

// Registers from ACP_I2S_TDM block

#define ACP_I2STDM_IER
#define ACP_I2STDM_IRER
#define ACP_I2STDM_RXFRMT
#define ACP_I2STDM_ITER
#define ACP_I2STDM_TXFRMT

// Registers from ACP_BT_TDM block

#define ACP_BTTDM_IER
#define ACP_BTTDM_IRER
#define ACP_BTTDM_RXFRMT
#define ACP_BTTDM_ITER
#define ACP_BTTDM_TXFRMT

// Registers from ACP_WOV block

#define ACP_WOV_PDM_ENABLE
#define ACP_WOV_PDM_DMA_ENABLE
#define ACP_WOV_RX_RINGBUFADDR
#define ACP_WOV_RX_RINGBUFSIZE
#define ACP_WOV_RX_LINKPOSITIONCNTR
#define ACP_WOV_RX_LINEARPOSITIONCNTR_HIGH
#define ACP_WOV_RX_LINEARPOSITIONCNTR_LOW
#define ACP_WOV_RX_INTR_WATERMARK_SIZE
#define ACP_WOV_PDM_FIFO_FLUSH
#define ACP_WOV_PDM_NO_OF_CHANNELS
#define ACP_WOV_PDM_DECIMATION_FACTOR
#define ACP_WOV_PDM_VAD_CTRL
#define ACP_WOV_BUFFER_STATUS
#define ACP_WOV_MISC_CTRL
#define ACP_WOV_CLK_CTRL
#define ACP_PDM_VAD_DYNAMIC_CLK_GATING_EN
#define ACP_WOV_ERROR_STATUS_REGISTER
#endif