162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci *
362306a36Sopenharmony_ci * mt8186-reg.h  --  Mediatek 8186 audio driver reg definition
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2022 MediaTek Inc.
662306a36Sopenharmony_ci * Author: Jiaxin Yu <jiaxin.yu@mediatek.com>
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _MT8186_REG_H_
1062306a36Sopenharmony_ci#define _MT8186_REG_H_
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/* reg bit enum */
1362306a36Sopenharmony_cienum {
1462306a36Sopenharmony_ci	MT8186_MEMIF_PBUF_SIZE_32_BYTES,
1562306a36Sopenharmony_ci	MT8186_MEMIF_PBUF_SIZE_64_BYTES,
1662306a36Sopenharmony_ci	MT8186_MEMIF_PBUF_SIZE_128_BYTES,
1762306a36Sopenharmony_ci	MT8186_MEMIF_PBUF_SIZE_256_BYTES,
1862306a36Sopenharmony_ci	MT8186_MEMIF_PBUF_SIZE_NUM,
1962306a36Sopenharmony_ci};
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/*****************************************************************************
2262306a36Sopenharmony_ci *                  R E G I S T E R       D E F I N I T I O N
2362306a36Sopenharmony_ci *****************************************************************************/
2462306a36Sopenharmony_ci/* AUDIO_TOP_CON0 */
2562306a36Sopenharmony_ci#define RESERVED_SFT					31
2662306a36Sopenharmony_ci#define RESERVED_MASK_SFT				BIT(31)
2762306a36Sopenharmony_ci#define AHB_IDLE_EN_INT_SFT				30
2862306a36Sopenharmony_ci#define AHB_IDLE_EN_INT_MASK_SFT			BIT(30)
2962306a36Sopenharmony_ci#define AHB_IDLE_EN_EXT_SFT				29
3062306a36Sopenharmony_ci#define AHB_IDLE_EN_EXT_MASK_SFT			BIT(29)
3162306a36Sopenharmony_ci#define PDN_NLE_SFT					28
3262306a36Sopenharmony_ci#define PDN_NLE_MASK_SFT				BIT(28)
3362306a36Sopenharmony_ci#define PDN_TML_SFT					27
3462306a36Sopenharmony_ci#define PDN_TML_MASK_SFT				BIT(27)
3562306a36Sopenharmony_ci#define PDN_DAC_PREDIS_SFT				26
3662306a36Sopenharmony_ci#define PDN_DAC_PREDIS_MASK_SFT				BIT(26)
3762306a36Sopenharmony_ci#define PDN_DAC_SFT					25
3862306a36Sopenharmony_ci#define PDN_DAC_MASK_SFT				BIT(25)
3962306a36Sopenharmony_ci#define PDN_ADC_SFT					24
4062306a36Sopenharmony_ci#define PDN_ADC_MASK_SFT				BIT(24)
4162306a36Sopenharmony_ci#define PDN_TDM_CK_SFT					20
4262306a36Sopenharmony_ci#define PDN_TDM_CK_MASK_SFT				BIT(20)
4362306a36Sopenharmony_ci#define PDN_APLL_TUNER_SFT				19
4462306a36Sopenharmony_ci#define PDN_APLL_TUNER_MASK_SFT				BIT(19)
4562306a36Sopenharmony_ci#define PDN_APLL2_TUNER_SFT				18
4662306a36Sopenharmony_ci#define PDN_APLL2_TUNER_MASK_SFT			BIT(18)
4762306a36Sopenharmony_ci#define APB3_SEL_SFT					14
4862306a36Sopenharmony_ci#define APB3_SEL_MASK_SFT				BIT(14)
4962306a36Sopenharmony_ci#define APB_R2T_SFT					13
5062306a36Sopenharmony_ci#define APB_R2T_MASK_SFT				BIT(13)
5162306a36Sopenharmony_ci#define APB_W2T_SFT					12
5262306a36Sopenharmony_ci#define APB_W2T_MASK_SFT				BIT(12)
5362306a36Sopenharmony_ci#define PDN_24M_SFT					9
5462306a36Sopenharmony_ci#define PDN_24M_MASK_SFT				BIT(9)
5562306a36Sopenharmony_ci#define PDN_22M_SFT					8
5662306a36Sopenharmony_ci#define PDN_22M_MASK_SFT				BIT(8)
5762306a36Sopenharmony_ci#define PDN_AFE_SFT					2
5862306a36Sopenharmony_ci#define PDN_AFE_MASK_SFT				BIT(2)
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci/* AUDIO_TOP_CON1 */
6162306a36Sopenharmony_ci#define PDN_3RD_DAC_HIRES_SFT				31
6262306a36Sopenharmony_ci#define PDN_3RD_DAC_HIRES_MASK_SFT			BIT(31)
6362306a36Sopenharmony_ci#define PDN_3RD_DAC_TML_SFT				30
6462306a36Sopenharmony_ci#define PDN_3RD_DAC_TML_MASK_SFT			BIT(30)
6562306a36Sopenharmony_ci#define PDN_3RD_DAC_PREDIS_SFT				29
6662306a36Sopenharmony_ci#define PDN_3RD_DAC_PREDIS_MASK_SFT			BIT(29)
6762306a36Sopenharmony_ci#define PDN_3RD_DAC_SFT					28
6862306a36Sopenharmony_ci#define PDN_3RD_DAC_MASK_SFT				BIT(28)
6962306a36Sopenharmony_ci#define I2S_SOFT_RST5_SFT				22
7062306a36Sopenharmony_ci#define I2S_SOFT_RST5_MASK_SFT				BIT(22)
7162306a36Sopenharmony_ci#define PDN_ADDA6_ADC_HIRES_SFT				21
7262306a36Sopenharmony_ci#define PDN_ADDA6_ADC_HIRES_MASK_SFT			BIT(21)
7362306a36Sopenharmony_ci#define PDN_ADDA6_ADC_SFT				20
7462306a36Sopenharmony_ci#define PDN_ADDA6_ADC_MASK_SFT				BIT(20)
7562306a36Sopenharmony_ci#define PDN_ADC_HIRES_TML_SFT				17
7662306a36Sopenharmony_ci#define PDN_ADC_HIRES_TML_MASK_SFT			BIT(17)
7762306a36Sopenharmony_ci#define PDN_ADC_HIRES_SFT				16
7862306a36Sopenharmony_ci#define PDN_ADC_HIRES_MASK_SFT				BIT(16)
7962306a36Sopenharmony_ci#define PDN_DAC_HIRES_SFT				15
8062306a36Sopenharmony_ci#define PDN_DAC_HIRES_MASK_SFT				BIT(15)
8162306a36Sopenharmony_ci#define PDN_GENERAL2_ASRC_SFT				14
8262306a36Sopenharmony_ci#define PDN_GENERAL2_ASRC_MASK_SFT			BIT(14)
8362306a36Sopenharmony_ci#define PDN_GENERAL1_ASRC_SFT				13
8462306a36Sopenharmony_ci#define PDN_GENERAL1_ASRC_MASK_SFT			BIT(13)
8562306a36Sopenharmony_ci#define PDN_CONNSYS_I2S_ASRC_SFT			12
8662306a36Sopenharmony_ci#define PDN_CONNSYS_I2S_ASRC_MASK_SFT			BIT(12)
8762306a36Sopenharmony_ci#define I2S4_BCLK_SW_CG_SFT				7
8862306a36Sopenharmony_ci#define I2S4_BCLK_SW_CG_MASK_SFT			BIT(7)
8962306a36Sopenharmony_ci#define I2S3_BCLK_SW_CG_SFT				6
9062306a36Sopenharmony_ci#define I2S3_BCLK_SW_CG_MASK_SFT			BIT(6)
9162306a36Sopenharmony_ci#define I2S2_BCLK_SW_CG_SFT				5
9262306a36Sopenharmony_ci#define I2S2_BCLK_SW_CG_MASK_SFT			BIT(5)
9362306a36Sopenharmony_ci#define I2S1_BCLK_SW_CG_SFT				4
9462306a36Sopenharmony_ci#define I2S1_BCLK_SW_CG_MASK_SFT			BIT(4)
9562306a36Sopenharmony_ci#define I2S_SOFT_RST2_SFT				2
9662306a36Sopenharmony_ci#define I2S_SOFT_RST2_MASK_SFT				BIT(2)
9762306a36Sopenharmony_ci#define I2S_SOFT_RST_SFT				1
9862306a36Sopenharmony_ci#define I2S_SOFT_RST_MASK_SFT				BIT(1)
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ci/* AUDIO_TOP_CON3 */
10162306a36Sopenharmony_ci#define BUSY_SFT					31
10262306a36Sopenharmony_ci#define BUSY_MASK_SFT					BIT(31)
10362306a36Sopenharmony_ci#define OS_DISABLE_SFT					30
10462306a36Sopenharmony_ci#define OS_DISABLE_MASK_SFT				BIT(30)
10562306a36Sopenharmony_ci#define CG_DISABLE_SFT					29
10662306a36Sopenharmony_ci#define CG_DISABLE_MASK_SFT				BIT(29)
10762306a36Sopenharmony_ci#define CLEAR_FLAG_SFT					0
10862306a36Sopenharmony_ci#define CLEAR_FLAG_MASK_SFT				BIT(0)
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci/* AFE_DAC_CON0 */
11162306a36Sopenharmony_ci#define VUL12_ON_SFT					31
11262306a36Sopenharmony_ci#define VUL12_ON_MASK_SFT				BIT(31)
11362306a36Sopenharmony_ci#define MOD_DAI_ON_SFT					30
11462306a36Sopenharmony_ci#define MOD_DAI_ON_MASK_SFT				BIT(30)
11562306a36Sopenharmony_ci#define DAI_ON_SFT					29
11662306a36Sopenharmony_ci#define DAI_ON_MASK_SFT					BIT(29)
11762306a36Sopenharmony_ci#define DAI2_ON_SFT					28
11862306a36Sopenharmony_ci#define DAI2_ON_MASK_SFT				BIT(28)
11962306a36Sopenharmony_ci#define VUL6_ON_SFT					23
12062306a36Sopenharmony_ci#define VUL6_ON_MASK_SFT				BIT(23)
12162306a36Sopenharmony_ci#define VUL5_ON_SFT					22
12262306a36Sopenharmony_ci#define VUL5_ON_MASK_SFT				BIT(22)
12362306a36Sopenharmony_ci#define VUL4_ON_SFT					21
12462306a36Sopenharmony_ci#define VUL4_ON_MASK_SFT				BIT(21)
12562306a36Sopenharmony_ci#define VUL3_ON_SFT					20
12662306a36Sopenharmony_ci#define VUL3_ON_MASK_SFT				BIT(20)
12762306a36Sopenharmony_ci#define VUL2_ON_SFT					19
12862306a36Sopenharmony_ci#define VUL2_ON_MASK_SFT				BIT(19)
12962306a36Sopenharmony_ci#define VUL_ON_SFT					18
13062306a36Sopenharmony_ci#define VUL_ON_MASK_SFT					BIT(18)
13162306a36Sopenharmony_ci#define AWB2_ON_SFT					17
13262306a36Sopenharmony_ci#define AWB2_ON_MASK_SFT				BIT(17)
13362306a36Sopenharmony_ci#define AWB_ON_SFT					16
13462306a36Sopenharmony_ci#define AWB_ON_MASK_SFT					BIT(16)
13562306a36Sopenharmony_ci#define DL12_ON_SFT					15
13662306a36Sopenharmony_ci#define DL12_ON_MASK_SFT				BIT(15)
13762306a36Sopenharmony_ci#define DL8_ON_SFT					11
13862306a36Sopenharmony_ci#define DL8_ON_MASK_SFT					BIT(11)
13962306a36Sopenharmony_ci#define DL7_ON_SFT					10
14062306a36Sopenharmony_ci#define DL7_ON_MASK_SFT					BIT(10)
14162306a36Sopenharmony_ci#define DL6_ON_SFT					9
14262306a36Sopenharmony_ci#define DL6_ON_MASK_SFT					BIT(9)
14362306a36Sopenharmony_ci#define DL5_ON_SFT					8
14462306a36Sopenharmony_ci#define DL5_ON_MASK_SFT					BIT(8)
14562306a36Sopenharmony_ci#define DL4_ON_SFT					7
14662306a36Sopenharmony_ci#define DL4_ON_MASK_SFT					BIT(7)
14762306a36Sopenharmony_ci#define DL3_ON_SFT					6
14862306a36Sopenharmony_ci#define DL3_ON_MASK_SFT					BIT(6)
14962306a36Sopenharmony_ci#define DL2_ON_SFT					5
15062306a36Sopenharmony_ci#define DL2_ON_MASK_SFT					BIT(5)
15162306a36Sopenharmony_ci#define DL1_ON_SFT					4
15262306a36Sopenharmony_ci#define DL1_ON_MASK_SFT					BIT(4)
15362306a36Sopenharmony_ci#define AUDIO_AFE_ON_SFT				0
15462306a36Sopenharmony_ci#define AUDIO_AFE_ON_MASK_SFT				BIT(0)
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ci/* AFE_DAC_MON */
15762306a36Sopenharmony_ci#define AFE_ON_RETM_SFT					0
15862306a36Sopenharmony_ci#define AFE_ON_RETM_MASK_SFT				BIT(0)
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ci/* AFE_I2S_CON */
16162306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT				30
16262306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT			BIT(30)
16362306a36Sopenharmony_ci#define BCK_INV_SFT					29
16462306a36Sopenharmony_ci#define BCK_INV_MASK_SFT				BIT(29)
16562306a36Sopenharmony_ci#define I2SIN_PAD_SEL_SFT				28
16662306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK_SFT				BIT(28)
16762306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT				20
16862306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT				BIT(20)
16962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
17062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
17162306a36Sopenharmony_ci#define I2S1_HD_EN_SFT					12
17262306a36Sopenharmony_ci#define I2S1_HD_EN_MASK_SFT				BIT(12)
17362306a36Sopenharmony_ci#define I2S_OUT_MODE_SFT				8
17462306a36Sopenharmony_ci#define I2S_OUT_MODE_MASK_SFT				GENMASK(11, 8)
17562306a36Sopenharmony_ci#define INV_PAD_CTRL_SFT				7
17662306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK_SFT				BIT(7)
17762306a36Sopenharmony_ci#define I2S_BYPSRC_SFT					6
17862306a36Sopenharmony_ci#define I2S_BYPSRC_MASK_SFT				BIT(6)
17962306a36Sopenharmony_ci#define INV_LRCK_SFT					5
18062306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT				BIT(5)
18162306a36Sopenharmony_ci#define I2S_FMT_SFT					3
18262306a36Sopenharmony_ci#define I2S_FMT_MASK_SFT				BIT(3)
18362306a36Sopenharmony_ci#define I2S_SRC_SFT					2
18462306a36Sopenharmony_ci#define I2S_SRC_MASK_SFT				BIT(2)
18562306a36Sopenharmony_ci#define I2S_WLEN_SFT					1
18662306a36Sopenharmony_ci#define I2S_WLEN_MASK_SFT				BIT(1)
18762306a36Sopenharmony_ci#define I2S_EN_SFT					0
18862306a36Sopenharmony_ci#define I2S_EN_MASK_SFT					BIT(0)
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ci/* AFE_I2S_CON1 */
19162306a36Sopenharmony_ci#define I2S2_LR_SWAP_SFT				31
19262306a36Sopenharmony_ci#define I2S2_LR_SWAP_MASK_SFT				BIT(31)
19362306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_SFT				18
19462306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_MASK_SFT			BIT(18)
19562306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
19662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
19762306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_SFT				16
19862306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_MASK_SFT			BIT(16)
19962306a36Sopenharmony_ci#define I2S2_HD_EN_SFT					12
20062306a36Sopenharmony_ci#define I2S2_HD_EN_MASK_SFT				BIT(12)
20162306a36Sopenharmony_ci#define I2S2_OUT_MODE_SFT				8
20262306a36Sopenharmony_ci#define I2S2_OUT_MODE_MASK_SFT				GENMASK(11, 8)
20362306a36Sopenharmony_ci#define INV_LRCK_SFT					5
20462306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT				BIT(5)
20562306a36Sopenharmony_ci#define I2S2_FMT_SFT					3
20662306a36Sopenharmony_ci#define I2S2_FMT_MASK_SFT				BIT(3)
20762306a36Sopenharmony_ci#define I2S2_WLEN_SFT					1
20862306a36Sopenharmony_ci#define I2S2_WLEN_MASK_SFT				BIT(1)
20962306a36Sopenharmony_ci#define I2S2_EN_SFT					0
21062306a36Sopenharmony_ci#define I2S2_EN_MASK_SFT				BIT(0)
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ci/* AFE_I2S_CON2 */
21362306a36Sopenharmony_ci#define I2S3_LR_SWAP_SFT				31
21462306a36Sopenharmony_ci#define I2S3_LR_SWAP_MASK_SFT				BIT(31)
21562306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_SFT				24
21662306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_MASK_SFT			GENMASK(28, 24)
21762306a36Sopenharmony_ci#define I2S3_BCK_INV_SFT				23
21862306a36Sopenharmony_ci#define I2S3_BCK_INV_MASK_SFT				BIT(23)
21962306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_SFT				22
22062306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_MASK_SFT			BIT(22)
22162306a36Sopenharmony_ci#define I2S3_FPGA_BIT_SFT				21
22262306a36Sopenharmony_ci#define I2S3_FPGA_BIT_MASK_SFT				BIT(21)
22362306a36Sopenharmony_ci#define I2S3_LOOPBACK_SFT				20
22462306a36Sopenharmony_ci#define I2S3_LOOPBACK_MASK_SFT				BIT(20)
22562306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
22662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
22762306a36Sopenharmony_ci#define I2S3_HD_EN_SFT					12
22862306a36Sopenharmony_ci#define I2S3_HD_EN_MASK_SFT				BIT(12)
22962306a36Sopenharmony_ci#define I2S3_OUT_MODE_SFT				8
23062306a36Sopenharmony_ci#define I2S3_OUT_MODE_MASK_SFT				GENMASK(11, 8)
23162306a36Sopenharmony_ci#define I2S3_FMT_SFT					3
23262306a36Sopenharmony_ci#define I2S3_FMT_MASK_SFT				BIT(3)
23362306a36Sopenharmony_ci#define I2S3_WLEN_SFT					1
23462306a36Sopenharmony_ci#define I2S3_WLEN_MASK_SFT				BIT(1)
23562306a36Sopenharmony_ci#define I2S3_EN_SFT					0
23662306a36Sopenharmony_ci#define I2S3_EN_MASK_SFT				BIT(0)
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ci/* AFE_I2S_CON3 */
23962306a36Sopenharmony_ci#define I2S4_LR_SWAP_SFT				31
24062306a36Sopenharmony_ci#define I2S4_LR_SWAP_MASK_SFT				BIT(31)
24162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
24262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
24362306a36Sopenharmony_ci#define I2S4_HD_EN_SFT					12
24462306a36Sopenharmony_ci#define I2S4_HD_EN_MASK_SFT				BIT(12)
24562306a36Sopenharmony_ci#define I2S4_OUT_MODE_SFT				8
24662306a36Sopenharmony_ci#define I2S4_OUT_MODE_MASK_SFT				GENMASK(11, 8)
24762306a36Sopenharmony_ci#define INV_LRCK_SFT					5
24862306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT				BIT(5)
24962306a36Sopenharmony_ci#define I2S4_FMT_SFT					3
25062306a36Sopenharmony_ci#define I2S4_FMT_MASK_SFT				BIT(3)
25162306a36Sopenharmony_ci#define I2S4_WLEN_SFT					1
25262306a36Sopenharmony_ci#define I2S4_WLEN_MASK_SFT				BIT(1)
25362306a36Sopenharmony_ci#define I2S4_EN_SFT					0
25462306a36Sopenharmony_ci#define I2S4_EN_MASK_SFT				BIT(0)
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ci/* AFE_I2S_CON4 */
25762306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT				20
25862306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK				0x1
25962306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT				BIT(20)
26062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
26162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK		0x1
26262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
26362306a36Sopenharmony_ci#define INV_LRCK_SFT					5
26462306a36Sopenharmony_ci#define INV_LRCK_MASK					0x1
26562306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT				BIT(5)
26662306a36Sopenharmony_ci
26762306a36Sopenharmony_ci/* AFE_CONNSYS_I2S_CON */
26862306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT				30
26962306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT			BIT(30)
27062306a36Sopenharmony_ci#define BCK_INV_SFT					29
27162306a36Sopenharmony_ci#define BCK_INV_MASK_SFT				BIT(29)
27262306a36Sopenharmony_ci#define I2SIN_PAD_SEL_SFT				28
27362306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK_SFT				BIT(28)
27462306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT				20
27562306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT				BIT(20)
27662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT		17
27762306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT		BIT(17)
27862306a36Sopenharmony_ci#define I2S_MODE_SFT					8
27962306a36Sopenharmony_ci#define I2S_MODE_MASK_SFT				GENMASK(11, 8)
28062306a36Sopenharmony_ci#define INV_PAD_CTRL_SFT				7
28162306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK_SFT				BIT(7)
28262306a36Sopenharmony_ci#define I2S_BYPSRC_SFT					6
28362306a36Sopenharmony_ci#define I2S_BYPSRC_MASK_SFT				BIT(6)
28462306a36Sopenharmony_ci#define INV_LRCK_SFT					5
28562306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT				BIT(5)
28662306a36Sopenharmony_ci#define I2S_FMT_SFT					3
28762306a36Sopenharmony_ci#define I2S_FMT_MASK_SFT				BIT(3)
28862306a36Sopenharmony_ci#define I2S_SRC_SFT					2
28962306a36Sopenharmony_ci#define I2S_SRC_MASK_SFT				BIT(2)
29062306a36Sopenharmony_ci#define I2S_WLEN_SFT					1
29162306a36Sopenharmony_ci#define I2S_WLEN_MASK_SFT				BIT(1)
29262306a36Sopenharmony_ci#define I2S_EN_SFT					0
29362306a36Sopenharmony_ci#define I2S_EN_MASK_SFT					BIT(0)
29462306a36Sopenharmony_ci
29562306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON2 */
29662306a36Sopenharmony_ci#define CHSET_O16BIT_SFT				19
29762306a36Sopenharmony_ci#define CHSET_O16BIT_MASK_SFT				BIT(19)
29862306a36Sopenharmony_ci#define CHSET_CLR_IIR_HISTORY_SFT			17
29962306a36Sopenharmony_ci#define CHSET_CLR_IIR_HISTORY_MASK_SFT			BIT(17)
30062306a36Sopenharmony_ci#define CHSET_IS_MONO_SFT				16
30162306a36Sopenharmony_ci#define CHSET_IS_MONO_MASK_SFT				BIT(16)
30262306a36Sopenharmony_ci#define CHSET_IIR_EN_SFT				11
30362306a36Sopenharmony_ci#define CHSET_IIR_EN_MASK_SFT				BIT(11)
30462306a36Sopenharmony_ci#define CHSET_IIR_STAGE_SFT				8
30562306a36Sopenharmony_ci#define CHSET_IIR_STAGE_MASK_SFT			GENMASK(10, 8)
30662306a36Sopenharmony_ci#define CHSET_STR_CLR_SFT				5
30762306a36Sopenharmony_ci#define CHSET_STR_CLR_MASK_SFT				BIT(5)
30862306a36Sopenharmony_ci#define CHSET_ON_SFT					2
30962306a36Sopenharmony_ci#define CHSET_ON_MASK_SFT				BIT(2)
31062306a36Sopenharmony_ci#define COEFF_SRAM_CTRL_SFT				1
31162306a36Sopenharmony_ci#define COEFF_SRAM_CTRL_MASK_SFT			BIT(1)
31262306a36Sopenharmony_ci#define ASM_ON_SFT					0
31362306a36Sopenharmony_ci#define ASM_ON_MASK_SFT					BIT(0)
31462306a36Sopenharmony_ci
31562306a36Sopenharmony_ci/* AFE_GAIN1_CON0 */
31662306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_SFT			8
31762306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_MASK_SFT			GENMASK(15, 8)
31862306a36Sopenharmony_ci#define GAIN1_MODE_SFT					4
31962306a36Sopenharmony_ci#define GAIN1_MODE_MASK_SFT				GENMASK(7, 4)
32062306a36Sopenharmony_ci#define GAIN1_ON_SFT					0
32162306a36Sopenharmony_ci#define GAIN1_ON_MASK_SFT				BIT(0)
32262306a36Sopenharmony_ci
32362306a36Sopenharmony_ci/* AFE_GAIN1_CON1 */
32462306a36Sopenharmony_ci#define GAIN1_TARGET_SFT				0
32562306a36Sopenharmony_ci#define GAIN1_TARGET_MASK				0xfffffff
32662306a36Sopenharmony_ci#define GAIN1_TARGET_MASK_SFT				GENMASK(27, 0)
32762306a36Sopenharmony_ci
32862306a36Sopenharmony_ci/* AFE_GAIN2_CON0 */
32962306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_SFT			8
33062306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_MASK_SFT			GENMASK(15, 8)
33162306a36Sopenharmony_ci#define GAIN2_MODE_SFT					4
33262306a36Sopenharmony_ci#define GAIN2_MODE_MASK_SFT				GENMASK(7, 4)
33362306a36Sopenharmony_ci#define GAIN2_ON_SFT					0
33462306a36Sopenharmony_ci#define GAIN2_ON_MASK_SFT				BIT(0)
33562306a36Sopenharmony_ci
33662306a36Sopenharmony_ci/* AFE_GAIN2_CON1 */
33762306a36Sopenharmony_ci#define GAIN2_TARGET_SFT				0
33862306a36Sopenharmony_ci#define GAIN2_TARGET_MASK				0xfffffff
33962306a36Sopenharmony_ci#define GAIN2_TARGET_MASK_SFT				GENMASK(27, 0)
34062306a36Sopenharmony_ci
34162306a36Sopenharmony_ci/* AFE_GAIN1_CUR */
34262306a36Sopenharmony_ci#define AFE_GAIN1_CUR_SFT				0
34362306a36Sopenharmony_ci#define AFE_GAIN1_CUR_MASK_SFT				GENMASK(27, 0)
34462306a36Sopenharmony_ci
34562306a36Sopenharmony_ci/* AFE_GAIN2_CUR */
34662306a36Sopenharmony_ci#define AFE_GAIN2_CUR_SFT				0
34762306a36Sopenharmony_ci#define AFE_GAIN2_CUR_MASK_SFT				GENMASK(27, 0)
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_ci/* PCM_INTF_CON1 */
35062306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_SFT				31
35162306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK_SFT			BIT(31)
35262306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_SFT				30
35362306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK_SFT			BIT(30)
35462306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_SFT			29
35562306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK_SFT			BIT(29)
35662306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_SFT				28
35762306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK_SFT			BIT(28)
35862306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_SFT			27
35962306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK_SFT			BIT(27)
36062306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_SFT			26
36162306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK_SFT			BIT(26)
36262306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_SFT				25
36362306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK_SFT			BIT(25)
36462306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_SFT				24
36562306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK_SFT				BIT(24)
36662306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_SFT				23
36762306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK_SFT			BIT(23)
36862306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_SFT				22
36962306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK_SFT			BIT(22)
37062306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_SFT				21
37162306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK_SFT			BIT(21)
37262306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_SFT				20
37362306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK_SFT			BIT(20)
37462306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_SFT				19
37562306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK_SFT				BIT(19)
37662306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_SFT				18
37762306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK_SFT			BIT(18)
37862306a36Sopenharmony_ci#define PCM_EXT_MODEM_SFT				17
37962306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK_SFT				BIT(17)
38062306a36Sopenharmony_ci#define PCM_24BIT_SFT					16
38162306a36Sopenharmony_ci#define PCM_24BIT_MASK_SFT				BIT(16)
38262306a36Sopenharmony_ci#define PCM_WLEN_SFT					14
38362306a36Sopenharmony_ci#define PCM_WLEN_MASK_SFT				GENMASK(15, 14)
38462306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_SFT				9
38562306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK_SFT			GENMASK(13, 9)
38662306a36Sopenharmony_ci#define PCM_SYNC_TYPE_SFT				8
38762306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK_SFT				BIT(8)
38862306a36Sopenharmony_ci#define PCM_BT_MODE_SFT					7
38962306a36Sopenharmony_ci#define PCM_BT_MODE_MASK_SFT				BIT(7)
39062306a36Sopenharmony_ci#define PCM_BYP_ASRC_SFT				6
39162306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK_SFT				BIT(6)
39262306a36Sopenharmony_ci#define PCM_SLAVE_SFT					5
39362306a36Sopenharmony_ci#define PCM_SLAVE_MASK_SFT				BIT(5)
39462306a36Sopenharmony_ci#define PCM_MODE_SFT					3
39562306a36Sopenharmony_ci#define PCM_MODE_MASK_SFT				GENMASK(4, 3)
39662306a36Sopenharmony_ci#define PCM_FMT_SFT					1
39762306a36Sopenharmony_ci#define PCM_FMT_MASK_SFT				GENMASK(2, 1)
39862306a36Sopenharmony_ci#define PCM_EN_SFT					0
39962306a36Sopenharmony_ci#define PCM_EN_MASK_SFT					BIT(0)
40062306a36Sopenharmony_ci
40162306a36Sopenharmony_ci/* PCM_INTF_CON2 */
40262306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_SFT				31
40362306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK_SFT			BIT(31)
40462306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_SFT				30
40562306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK_SFT			BIT(30)
40662306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_SFT				29
40762306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK_SFT			BIT(29)
40862306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_SFT				28
40962306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK_SFT			BIT(28)
41062306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_SFT				27
41162306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK_SFT			BIT(27)
41262306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_SFT				26
41362306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK_SFT			BIT(26)
41462306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_SFT				17
41562306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_MASK_SFT			BIT(17)
41662306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_SFT				16
41762306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK_SFT			BIT(16)
41862306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_SFT				14
41962306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK_SFT			GENMASK(15, 14)
42062306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_SFT				12
42162306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK_SFT			GENMASK(13, 12)
42262306a36Sopenharmony_ci#define TX_FIX_VALUE_SFT				0
42362306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK_SFT				GENMASK(7, 0)
42462306a36Sopenharmony_ci
42562306a36Sopenharmony_ci/* PCM2_INTF_CON */
42662306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_SFT				24
42762306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK_SFT			GENMASK(31, 24)
42862306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_SFT				23
42962306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK_SFT			BIT(23)
43062306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_SFT			22
43162306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK_SFT			BIT(22)
43262306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_SFT			21
43362306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK_SFT			BIT(21)
43462306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_SFT			20
43562306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK_SFT			BIT(20)
43662306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_SFT			19
43762306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT			BIT(19)
43862306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_SFT			18
43962306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT			BIT(18)
44062306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_SFT				17
44162306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK_SFT			BIT(17)
44262306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_SFT				16
44362306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK_SFT			BIT(16)
44462306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_SFT				15
44562306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK_SFT			BIT(15)
44662306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_SFT				14
44762306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK_SFT			BIT(14)
44862306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_SFT				13
44962306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK_SFT			BIT(13)
45062306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_SFT				12
45162306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK_SFT			BIT(12)
45262306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_SFT			10
45362306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK_SFT			GENMASK(11, 10)
45462306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_SFT				8
45562306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK_SFT			BIT(8)
45662306a36Sopenharmony_ci#define PCM2_BT_MODE_SFT				7
45762306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK_SFT				BIT(7)
45862306a36Sopenharmony_ci#define PCM2_AFIFO_SFT					6
45962306a36Sopenharmony_ci#define PCM2_AFIFO_MASK_SFT				BIT(6)
46062306a36Sopenharmony_ci#define PCM2_WLEN_SFT					5
46162306a36Sopenharmony_ci#define PCM2_WLEN_MASK_SFT				BIT(5)
46262306a36Sopenharmony_ci#define PCM2_MODE_SFT					3
46362306a36Sopenharmony_ci#define PCM2_MODE_MASK_SFT				GENMASK(4, 3)
46462306a36Sopenharmony_ci#define PCM2_FMT_SFT					1
46562306a36Sopenharmony_ci#define PCM2_FMT_MASK_SFT				GENMASK(2, 1)
46662306a36Sopenharmony_ci#define PCM2_EN_SFT					0
46762306a36Sopenharmony_ci#define PCM2_EN_MASK_SFT				BIT(0)
46862306a36Sopenharmony_ci
46962306a36Sopenharmony_ci// AFE_CM1_CON
47062306a36Sopenharmony_ci#define CHANNEL_MERGE0_DEBUG_MODE_SFT			(31)
47162306a36Sopenharmony_ci#define CHANNEL_MERGE0_DEBUG_MODE_MASK_SFT		BIT(31)
47262306a36Sopenharmony_ci#define VUL3_BYPASS_CM_SFT				(30)
47362306a36Sopenharmony_ci#define VUL3_BYPASS_CM_MASK				(0x1)
47462306a36Sopenharmony_ci#define VUL3_BYPASS_CM_MASK_SFT				BIT(30)
47562306a36Sopenharmony_ci#define CM1_DEBUG_MODE_SEL_SFT				(29)
47662306a36Sopenharmony_ci#define CM1_DEBUG_MODE_SEL_MASK_SFT			BIT(29)
47762306a36Sopenharmony_ci#define CHANNEL_MERGE0_UPDATE_CNT_SFT			(16)
47862306a36Sopenharmony_ci#define CHANNEL_MERGE0_UPDATE_CNT_MASK_SFT		GENMASK(28, 16)
47962306a36Sopenharmony_ci#define CM1_FS_SELECT_SFT				(8)
48062306a36Sopenharmony_ci#define CM1_FS_SELECT_MASK_SFT				GENMASK(12, 8)
48162306a36Sopenharmony_ci#define CHANNEL_MERGE0_CHNUM_SFT			(3)
48262306a36Sopenharmony_ci#define CHANNEL_MERGE0_CHNUM_MASK_SFT			GENMASK(7, 3)
48362306a36Sopenharmony_ci#define CHANNEL_MERGE0_BYTE_SWAP_SFT			(1)
48462306a36Sopenharmony_ci#define CHANNEL_MERGE0_BYTE_SWAP_MASK_SFT		BIT(1)
48562306a36Sopenharmony_ci#define CHANNEL_MERGE0_EN_SFT				(0)
48662306a36Sopenharmony_ci#define CHANNEL_MERGE0_EN_MASK_SFT			BIT(0)
48762306a36Sopenharmony_ci
48862306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_CFG0 */
48962306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_SFT			31
49062306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT			BIT(31)
49162306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_SFT			17
49262306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT			BIT(17)
49362306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_SFT			16
49462306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_MASK_SFT			BIT(16)
49562306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_SFT			5
49662306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT			BIT(5)
49762306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_SFT			4
49862306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_MASK_SFT			BIT(4)
49962306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_SFT				2
50062306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_MASK_SFT			BIT(2)
50162306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_SFT				1
50262306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_MASK_SFT			BIT(1)
50362306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_SFT				0
50462306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_MASK_SFT			BIT(0)
50562306a36Sopenharmony_ci
50662306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_RX_CFG2 */
50762306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT		16
50862306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT	BIT(16)
50962306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_SFT			12
51062306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT		GENMASK(15, 12)
51162306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_SFT			8
51262306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK			0x1
51362306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK_SFT			BIT(8)
51462306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT		4
51562306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT		GENMASK(6, 4)
51662306a36Sopenharmony_ci
51762306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON0 */
51862306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_SFT				28
51962306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK_SFT			GENMASK(31, 28)
52062306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_SFT			27
52162306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT		BIT(27)
52262306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_SFT			26
52362306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT		BIT(26)
52462306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_SFT				24
52562306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK_SFT			GENMASK(25, 24)
52662306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_SFT			16
52762306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK_SFT			GENMASK(17, 16)
52862306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_SFT			15
52962306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK_SFT			BIT(15)
53062306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_SFT			14
53162306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT			BIT(14)
53262306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT			13
53362306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT		BIT(13)
53462306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT			12
53562306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT		BIT(12)
53662306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT			11
53762306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT		BIT(11)
53862306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_SFT				9
53962306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK_SFT			GENMASK(10, 9)
54062306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_SFT			6
54162306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK_SFT			GENMASK(8, 6)
54262306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_SFT			5
54362306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT		BIT(5)
54462306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT			4
54562306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT		BIT(4)
54662306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT			3
54762306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT		BIT(3)
54862306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_SFT				2
54962306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK_SFT			BIT(2)
55062306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_SFT			1
55162306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT			BIT(1)
55262306a36Sopenharmony_ci#define DL_2_SRC_ON_CTL_PRE_SFT				0
55362306a36Sopenharmony_ci#define DL_2_SRC_ON_CTL_PRE_MASK_SFT			BIT(0)
55462306a36Sopenharmony_ci
55562306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON1 */
55662306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_SFT				16
55762306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK				0xffff
55862306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK_SFT			GENMASK(31, 16)
55962306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_SFT				0
56062306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK_SFT			BIT(0)
56162306a36Sopenharmony_ci
56262306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON0 */
56362306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_SFT				31
56462306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_MASK_SFT			BIT(31)
56562306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH1_SFT			27
56662306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH1_MASK_SFT			GENMASK(29, 27)
56762306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH2_SFT			24
56862306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH2_MASK_SFT			GENMASK(26, 24)
56962306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_SFT			22
57062306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK_SFT			BIT(22)
57162306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_SFT			21
57262306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK_SFT			BIT(21)
57362306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_SFT			17
57462306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT		GENMASK(19, 17)
57562306a36Sopenharmony_ci#define UL_AP_DMIC_ON_SFT				16
57662306a36Sopenharmony_ci#define UL_AP_DMIC_ON_MASK_SFT				BIT(16)
57762306a36Sopenharmony_ci#define DMIC_LOW_POWER_CTL_SFT				14
57862306a36Sopenharmony_ci#define DMIC_LOW_POWER_CTL_MASK_SFT			GENMASK(15, 14)
57962306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_SFT			12
58062306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK_SFT			BIT(12)
58162306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_SFT				10
58262306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK_SFT			BIT(10)
58362306a36Sopenharmony_ci#define UL_IIRMODE_CTL_SFT				7
58462306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK_SFT				GENMASK(9, 7)
58562306a36Sopenharmony_ci#define DIGMIC_4P33M_SEL_SFT				6
58662306a36Sopenharmony_ci#define DIGMIC_4P33M_SEL_MASK_SFT			BIT(6)
58762306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_SFT			5
58862306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_MASK_SFT		BIT(5)
58962306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_SFT				2
59062306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_MASK_SFT			BIT(2)
59162306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_SFT				1
59262306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_MASK_SFT				BIT(1)
59362306a36Sopenharmony_ci#define UL_SRC_ON_CTL_SFT				0
59462306a36Sopenharmony_ci#define UL_SRC_ON_CTL_MASK_SFT				BIT(0)
59562306a36Sopenharmony_ci
59662306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON1 */
59762306a36Sopenharmony_ci#define C_DAC_EN_CTL_SFT				27
59862306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK_SFT				BIT(27)
59962306a36Sopenharmony_ci#define C_MUTE_SW_CTL_SFT				26
60062306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK_SFT				BIT(26)
60162306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_SFT				25
60262306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK_SFT			BIT(25)
60362306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_SFT				21
60462306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK_SFT			GENMASK(23, 21)
60562306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_SFT				16
60662306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK_SFT			GENMASK(20, 16)
60762306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_SFT				12
60862306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK_SFT			GENMASK(15, 12)
60962306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_SFT				9
61062306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK_SFT			GENMASK(11, 9)
61162306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_SFT				4
61262306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK_SFT			GENMASK(8, 4)
61362306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_SFT				0
61462306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK_SFT			GENMASK(3, 0)
61562306a36Sopenharmony_ci
61662306a36Sopenharmony_ci/* AFE_ADDA_TOP_CON0 */
61762306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_SFT			12
61862306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK_SFT			GENMASK(15, 12)
61962306a36Sopenharmony_ci#define ADDA_UL_GAIN_MODE_SFT				8
62062306a36Sopenharmony_ci#define ADDA_UL_GAIN_MODE_MASK_SFT			GENMASK(9, 8)
62162306a36Sopenharmony_ci#define C_EXT_ADC_CTL_SFT				0
62262306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK_SFT				BIT(0)
62362306a36Sopenharmony_ci
62462306a36Sopenharmony_ci/* AFE_ADDA_UL_DL_CON0 */
62562306a36Sopenharmony_ci#define AFE_ADDA_UL_LR_SWAP_SFT				31
62662306a36Sopenharmony_ci#define AFE_ADDA_UL_LR_SWAP_MASK_SFT			BIT(31)
62762306a36Sopenharmony_ci#define AFE_ADDA_CKDIV_RST_SFT				30
62862306a36Sopenharmony_ci#define AFE_ADDA_CKDIV_RST_MASK_SFT			BIT(30)
62962306a36Sopenharmony_ci#define AFE_ADDA_FIFO_AUTO_RST_SFT			29
63062306a36Sopenharmony_ci#define AFE_ADDA_FIFO_AUTO_RST_MASK_SFT			BIT(29)
63162306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_SFT		21
63262306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK_SFT		GENMASK(22, 21)
63362306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT	20
63462306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT	BIT(20)
63562306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_SFT			15
63662306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_MASK_SFT			BIT(15)
63762306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_SFT				14
63862306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_MASK_SFT			BIT(14)
63962306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_SFT			13
64062306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT		BIT(13)
64162306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_SFT		5
64262306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK_SFT	GENMASK(6, 5)
64362306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT	4
64462306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT	BIT(4)
64562306a36Sopenharmony_ci#define ADDA_AFE_ON_SFT					0
64662306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK_SFT				BIT(0)
64762306a36Sopenharmony_ci
64862306a36Sopenharmony_ci/* AFE_SIDETONE_CON0 */
64962306a36Sopenharmony_ci#define R_RDY_SFT					30
65062306a36Sopenharmony_ci#define R_RDY_MASK_SFT					BIT(30)
65162306a36Sopenharmony_ci#define W_RDY_SFT					29
65262306a36Sopenharmony_ci#define W_RDY_MASK_SFT					BIT(29)
65362306a36Sopenharmony_ci#define R_W_EN_SFT					25
65462306a36Sopenharmony_ci#define R_W_EN_MASK_SFT					BIT(25)
65562306a36Sopenharmony_ci#define R_W_SEL_SFT					24
65662306a36Sopenharmony_ci#define R_W_SEL_MASK_SFT				BIT(24)
65762306a36Sopenharmony_ci#define SEL_CH2_SFT					23
65862306a36Sopenharmony_ci#define SEL_CH2_MASK_SFT				BIT(23)
65962306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_SFT			16
66062306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT		GENMASK(20, 16)
66162306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_SFT			0
66262306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_MASK_SFT			GENMASK(15, 0)
66362306a36Sopenharmony_ci
66462306a36Sopenharmony_ci/* AFE_SIDETONE_COEFF */
66562306a36Sopenharmony_ci#define SIDE_TONE_COEFF_SFT				0
66662306a36Sopenharmony_ci#define SIDE_TONE_COEFF_MASK_SFT			GENMASK(15, 0)
66762306a36Sopenharmony_ci
66862306a36Sopenharmony_ci/* AFE_SIDETONE_CON1 */
66962306a36Sopenharmony_ci#define STF_BYPASS_MODE_SFT				31
67062306a36Sopenharmony_ci#define STF_BYPASS_MODE_MASK_SFT			BIT(31)
67162306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_SFT			30
67262306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_MASK_SFT		BIT(30)
67362306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_SFT			29
67462306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_MASK_SFT			BIT(29)
67562306a36Sopenharmony_ci#define STF_BYPASS_MODE_DL3_SFT				27
67662306a36Sopenharmony_ci#define STF_BYPASS_MODE_DL3_MASK_SFT			BIT(27)
67762306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S7_SFT			26
67862306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S7_MASK_SFT			BIT(26)
67962306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S9_SFT			25
68062306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S9_MASK_SFT			BIT(25)
68162306a36Sopenharmony_ci#define STF_O19O20_OUT_EN_SEL_SFT			13
68262306a36Sopenharmony_ci#define STF_O19O20_OUT_EN_SEL_MASK_SFT			BIT(13)
68362306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_SFT			12
68462306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_MASK_SFT			BIT(12)
68562306a36Sopenharmony_ci#define SIDE_TONE_ON_SFT				8
68662306a36Sopenharmony_ci#define SIDE_TONE_ON_MASK_SFT				BIT(8)
68762306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_SFT			0
68862306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_MASK_SFT			GENMASK(5, 0)
68962306a36Sopenharmony_ci
69062306a36Sopenharmony_ci/* AFE_SIDETONE_GAIN */
69162306a36Sopenharmony_ci#define POSITIVE_GAIN_SFT				16
69262306a36Sopenharmony_ci#define POSITIVE_GAIN_MASK_SFT				GENMASK(18, 16)
69362306a36Sopenharmony_ci#define SIDE_TONE_GAIN_SFT				0
69462306a36Sopenharmony_ci#define SIDE_TONE_GAIN_MASK_SFT				GENMASK(15, 0)
69562306a36Sopenharmony_ci
69662306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_DCCOMP_CON */
69762306a36Sopenharmony_ci#define USE_3RD_SDM_SFT					28
69862306a36Sopenharmony_ci#define USE_3RD_SDM_MASK_SFT				BIT(28)
69962306a36Sopenharmony_ci#define DL_FIFO_START_POINT_SFT				24
70062306a36Sopenharmony_ci#define DL_FIFO_START_POINT_MASK_SFT			GENMASK(26, 24)
70162306a36Sopenharmony_ci#define DL_FIFO_SWAP_SFT				20
70262306a36Sopenharmony_ci#define DL_FIFO_SWAP_MASK_SFT				BIT(20)
70362306a36Sopenharmony_ci#define C_AUDSDM1ORDSELECT_CTL_SFT			19
70462306a36Sopenharmony_ci#define C_AUDSDM1ORDSELECT_CTL_MASK_SFT			BIT(19)
70562306a36Sopenharmony_ci#define C_SDM7BITSEL_CTL_SFT				18
70662306a36Sopenharmony_ci#define C_SDM7BITSEL_CTL_MASK_SFT			BIT(18)
70762306a36Sopenharmony_ci#define GAIN_AT_SDM_RST_PRE_CTL_SFT			15
70862306a36Sopenharmony_ci#define GAIN_AT_SDM_RST_PRE_CTL_MASK_SFT		BIT(15)
70962306a36Sopenharmony_ci#define DL_DCM_AUTO_IDLE_EN_SFT				14
71062306a36Sopenharmony_ci#define DL_DCM_AUTO_IDLE_EN_MASK_SFT			BIT(14)
71162306a36Sopenharmony_ci#define AFE_DL_SRC_DCM_EN_SFT				13
71262306a36Sopenharmony_ci#define AFE_DL_SRC_DCM_EN_MASK_SFT			BIT(13)
71362306a36Sopenharmony_ci#define AFE_DL_POST_SRC_DCM_EN_SFT			12
71462306a36Sopenharmony_ci#define AFE_DL_POST_SRC_DCM_EN_MASK_SFT			BIT(12)
71562306a36Sopenharmony_ci#define AUD_SDM_MONO_SFT				9
71662306a36Sopenharmony_ci#define AUD_SDM_MONO_MASK_SFT				BIT(9)
71762306a36Sopenharmony_ci#define AUD_DC_COMP_EN_SFT				8
71862306a36Sopenharmony_ci#define AUD_DC_COMP_EN_MASK_SFT				BIT(8)
71962306a36Sopenharmony_ci#define ATTGAIN_CTL_SFT					0
72062306a36Sopenharmony_ci#define ATTGAIN_CTL_MASK_SFT				GENMASK(5, 0)
72162306a36Sopenharmony_ci
72262306a36Sopenharmony_ci/* AFE_SINEGEN_CON0 */
72362306a36Sopenharmony_ci#define DAC_EN_SFT					26
72462306a36Sopenharmony_ci#define DAC_EN_MASK					0x1
72562306a36Sopenharmony_ci#define DAC_EN_MASK_SFT					BIT(26)
72662306a36Sopenharmony_ci#define MUTE_SW_CH2_SFT					25
72762306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK				0x1
72862306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK_SFT				BIT(25)
72962306a36Sopenharmony_ci#define MUTE_SW_CH1_SFT					24
73062306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK				0x1
73162306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK_SFT				BIT(24)
73262306a36Sopenharmony_ci#define SINE_MODE_CH2_SFT				20
73362306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK				0xf
73462306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK_SFT				GENMASK(23, 20)
73562306a36Sopenharmony_ci#define AMP_DIV_CH2_SFT					17
73662306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK				0x7
73762306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK_SFT				GENMASK(19, 17)
73862306a36Sopenharmony_ci#define FREQ_DIV_CH2_SFT				12
73962306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK				0x1f
74062306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK_SFT				GENMASK(16, 12)
74162306a36Sopenharmony_ci#define SINE_MODE_CH1_SFT				8
74262306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK				0xf
74362306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK_SFT				GENMASK(11, 8)
74462306a36Sopenharmony_ci#define AMP_DIV_CH1_SFT					5
74562306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK				0x7
74662306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK_SFT				GENMASK(7, 5)
74762306a36Sopenharmony_ci#define FREQ_DIV_CH1_SFT				0
74862306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK				0x1f
74962306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK_SFT				GENMASK(4, 0)
75062306a36Sopenharmony_ci
75162306a36Sopenharmony_ci/* AFE_SINEGEN_CON2 */
75262306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_SFT			0
75362306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_MASK_SFT			GENMASK(7, 0)
75462306a36Sopenharmony_ci
75562306a36Sopenharmony_ci/* AFE_HD_ENGEN_ENABLE */
75662306a36Sopenharmony_ci#define AFE_24M_ON_SFT					1
75762306a36Sopenharmony_ci#define AFE_24M_ON_MASK_SFT				BIT(1)
75862306a36Sopenharmony_ci#define AFE_22M_ON_SFT					0
75962306a36Sopenharmony_ci#define AFE_22M_ON_MASK_SFT				BIT(0)
76062306a36Sopenharmony_ci
76162306a36Sopenharmony_ci/* AFE_ADDA_DL_NLE_FIFO_MON */
76262306a36Sopenharmony_ci#define DL_NLE_FIFO_WBIN_SFT				8
76362306a36Sopenharmony_ci#define DL_NLE_FIFO_WBIN_MASK_SFT			GENMASK(11, 8)
76462306a36Sopenharmony_ci#define DL_NLE_FIFO_RBIN_SFT				4
76562306a36Sopenharmony_ci#define DL_NLE_FIFO_RBIN_MASK_SFT			GENMASK(7, 4)
76662306a36Sopenharmony_ci#define DL_NLE_FIFO_RDACTIVE_SFT			3
76762306a36Sopenharmony_ci#define DL_NLE_FIFO_RDACTIVE_MASK_SFT			BIT(3)
76862306a36Sopenharmony_ci#define DL_NLE_FIFO_STARTRD_SFT				2
76962306a36Sopenharmony_ci#define DL_NLE_FIFO_STARTRD_MASK_SFT			BIT(2)
77062306a36Sopenharmony_ci#define DL_NLE_FIFO_RD_EMPTY_SFT			1
77162306a36Sopenharmony_ci#define DL_NLE_FIFO_RD_EMPTY_MASK_SFT			BIT(1)
77262306a36Sopenharmony_ci#define DL_NLE_FIFO_WR_FULL_SFT				0
77362306a36Sopenharmony_ci#define DL_NLE_FIFO_WR_FULL_MASK_SFT			BIT(0)
77462306a36Sopenharmony_ci
77562306a36Sopenharmony_ci/* AFE_DL1_CON0 */
77662306a36Sopenharmony_ci#define DL1_MODE_SFT					24
77762306a36Sopenharmony_ci#define DL1_MODE_MASK					0xf
77862306a36Sopenharmony_ci#define DL1_MODE_MASK_SFT				GENMASK(27, 24)
77962306a36Sopenharmony_ci#define DL1_MINLEN_SFT					20
78062306a36Sopenharmony_ci#define DL1_MINLEN_MASK					0xf
78162306a36Sopenharmony_ci#define DL1_MINLEN_MASK_SFT				GENMASK(23, 20)
78262306a36Sopenharmony_ci#define DL1_MAXLEN_SFT					16
78362306a36Sopenharmony_ci#define DL1_MAXLEN_MASK					0xf
78462306a36Sopenharmony_ci#define DL1_MAXLEN_MASK_SFT				GENMASK(19, 16)
78562306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_SFT			15
78662306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_MASK			0x1
78762306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
78862306a36Sopenharmony_ci#define DL1_PBUF_SIZE_SFT				12
78962306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK				0x3
79062306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
79162306a36Sopenharmony_ci#define DL1_MONO_SFT					8
79262306a36Sopenharmony_ci#define DL1_MONO_MASK					0x1
79362306a36Sopenharmony_ci#define DL1_MONO_MASK_SFT				BIT(8)
79462306a36Sopenharmony_ci#define DL1_NORMAL_MODE_SFT				5
79562306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK				0x1
79662306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK_SFT			BIT(5)
79762306a36Sopenharmony_ci#define DL1_HALIGN_SFT					4
79862306a36Sopenharmony_ci#define DL1_HALIGN_MASK					0x1
79962306a36Sopenharmony_ci#define DL1_HALIGN_MASK_SFT				BIT(4)
80062306a36Sopenharmony_ci#define DL1_HD_MODE_SFT					0
80162306a36Sopenharmony_ci#define DL1_HD_MODE_MASK				0x3
80262306a36Sopenharmony_ci#define DL1_HD_MODE_MASK_SFT				GENMASK(1, 0)
80362306a36Sopenharmony_ci
80462306a36Sopenharmony_ci/* AFE_DL2_CON0 */
80562306a36Sopenharmony_ci#define DL2_MODE_SFT					24
80662306a36Sopenharmony_ci#define DL2_MODE_MASK					0xf
80762306a36Sopenharmony_ci#define DL2_MODE_MASK_SFT				GENMASK(27, 24)
80862306a36Sopenharmony_ci#define DL2_MINLEN_SFT					20
80962306a36Sopenharmony_ci#define DL2_MINLEN_MASK					0xf
81062306a36Sopenharmony_ci#define DL2_MINLEN_MASK_SFT				GENMASK(23, 20)
81162306a36Sopenharmony_ci#define DL2_MAXLEN_SFT					16
81262306a36Sopenharmony_ci#define DL2_MAXLEN_MASK					0xf
81362306a36Sopenharmony_ci#define DL2_MAXLEN_MASK_SFT				GENMASK(19, 16)
81462306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_SFT			15
81562306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_MASK			0x1
81662306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
81762306a36Sopenharmony_ci#define DL2_PBUF_SIZE_SFT				12
81862306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK				0x3
81962306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
82062306a36Sopenharmony_ci#define DL2_MONO_SFT					8
82162306a36Sopenharmony_ci#define DL2_MONO_MASK					0x1
82262306a36Sopenharmony_ci#define DL2_MONO_MASK_SFT				BIT(8)
82362306a36Sopenharmony_ci#define DL2_NORMAL_MODE_SFT				5
82462306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK				0x1
82562306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK_SFT			BIT(5)
82662306a36Sopenharmony_ci#define DL2_HALIGN_SFT					4
82762306a36Sopenharmony_ci#define DL2_HALIGN_MASK					0x1
82862306a36Sopenharmony_ci#define DL2_HALIGN_MASK_SFT				BIT(4)
82962306a36Sopenharmony_ci#define DL2_HD_MODE_SFT					0
83062306a36Sopenharmony_ci#define DL2_HD_MODE_MASK				0x3
83162306a36Sopenharmony_ci#define DL2_HD_MODE_MASK_SFT				GENMASK(1, 0)
83262306a36Sopenharmony_ci
83362306a36Sopenharmony_ci/* AFE_DL3_CON0 */
83462306a36Sopenharmony_ci#define DL3_MODE_SFT					24
83562306a36Sopenharmony_ci#define DL3_MODE_MASK					0xf
83662306a36Sopenharmony_ci#define DL3_MODE_MASK_SFT				GENMASK(27, 24)
83762306a36Sopenharmony_ci#define DL3_MINLEN_SFT					20
83862306a36Sopenharmony_ci#define DL3_MINLEN_MASK					0xf
83962306a36Sopenharmony_ci#define DL3_MINLEN_MASK_SFT				GENMASK(23, 20)
84062306a36Sopenharmony_ci#define DL3_MAXLEN_SFT					16
84162306a36Sopenharmony_ci#define DL3_MAXLEN_MASK					0xf
84262306a36Sopenharmony_ci#define DL3_MAXLEN_MASK_SFT				GENMASK(19, 16)
84362306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_SFT			15
84462306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_MASK			0x1
84562306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
84662306a36Sopenharmony_ci#define DL3_PBUF_SIZE_SFT				12
84762306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK				0x3
84862306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
84962306a36Sopenharmony_ci#define DL3_MONO_SFT					8
85062306a36Sopenharmony_ci#define DL3_MONO_MASK					0x1
85162306a36Sopenharmony_ci#define DL3_MONO_MASK_SFT				BIT(8)
85262306a36Sopenharmony_ci#define DL3_NORMAL_MODE_SFT				5
85362306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK				0x1
85462306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK_SFT			BIT(5)
85562306a36Sopenharmony_ci#define DL3_HALIGN_SFT					4
85662306a36Sopenharmony_ci#define DL3_HALIGN_MASK					0x1
85762306a36Sopenharmony_ci#define DL3_HALIGN_MASK_SFT				BIT(4)
85862306a36Sopenharmony_ci#define DL3_HD_MODE_SFT					0
85962306a36Sopenharmony_ci#define DL3_HD_MODE_MASK				0x3
86062306a36Sopenharmony_ci#define DL3_HD_MODE_MASK_SFT				GENMASK(1, 0)
86162306a36Sopenharmony_ci
86262306a36Sopenharmony_ci/* AFE_DL4_CON0 */
86362306a36Sopenharmony_ci#define DL4_MODE_SFT					24
86462306a36Sopenharmony_ci#define DL4_MODE_MASK					0xf
86562306a36Sopenharmony_ci#define DL4_MODE_MASK_SFT				GENMASK(27, 24)
86662306a36Sopenharmony_ci#define DL4_MINLEN_SFT					20
86762306a36Sopenharmony_ci#define DL4_MINLEN_MASK					0xf
86862306a36Sopenharmony_ci#define DL4_MINLEN_MASK_SFT				GENMASK(23, 20)
86962306a36Sopenharmony_ci#define DL4_MAXLEN_SFT					16
87062306a36Sopenharmony_ci#define DL4_MAXLEN_MASK					0xf
87162306a36Sopenharmony_ci#define DL4_MAXLEN_MASK_SFT				GENMASK(19, 16)
87262306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_SFT			15
87362306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_MASK			0x1
87462306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
87562306a36Sopenharmony_ci#define DL4_PBUF_SIZE_SFT				12
87662306a36Sopenharmony_ci#define DL4_PBUF_SIZE_MASK				0x3
87762306a36Sopenharmony_ci#define DL4_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
87862306a36Sopenharmony_ci#define DL4_MONO_SFT					8
87962306a36Sopenharmony_ci#define DL4_MONO_MASK					0x1
88062306a36Sopenharmony_ci#define DL4_MONO_MASK_SFT				BIT(8)
88162306a36Sopenharmony_ci#define DL4_NORMAL_MODE_SFT				5
88262306a36Sopenharmony_ci#define DL4_NORMAL_MODE_MASK				0x1
88362306a36Sopenharmony_ci#define DL4_NORMAL_MODE_MASK_SFT			BIT(5)
88462306a36Sopenharmony_ci#define DL4_HALIGN_SFT					4
88562306a36Sopenharmony_ci#define DL4_HALIGN_MASK					0x1
88662306a36Sopenharmony_ci#define DL4_HALIGN_MASK_SFT				BIT(4)
88762306a36Sopenharmony_ci#define DL4_HD_MODE_SFT					0
88862306a36Sopenharmony_ci#define DL4_HD_MODE_MASK				0x3
88962306a36Sopenharmony_ci#define DL4_HD_MODE_MASK_SFT				GENMASK(1, 0)
89062306a36Sopenharmony_ci
89162306a36Sopenharmony_ci/* AFE_DL5_CON0 */
89262306a36Sopenharmony_ci#define DL5_MODE_SFT					24
89362306a36Sopenharmony_ci#define DL5_MODE_MASK					0xf
89462306a36Sopenharmony_ci#define DL5_MODE_MASK_SFT				GENMASK(27, 24)
89562306a36Sopenharmony_ci#define DL5_MINLEN_SFT					20
89662306a36Sopenharmony_ci#define DL5_MINLEN_MASK					0xf
89762306a36Sopenharmony_ci#define DL5_MINLEN_MASK_SFT				GENMASK(23, 20)
89862306a36Sopenharmony_ci#define DL5_MAXLEN_SFT					16
89962306a36Sopenharmony_ci#define DL5_MAXLEN_MASK					0xf
90062306a36Sopenharmony_ci#define DL5_MAXLEN_MASK_SFT				GENMASK(19, 16)
90162306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_SFT			15
90262306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_MASK			0x1
90362306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
90462306a36Sopenharmony_ci#define DL5_PBUF_SIZE_SFT				12
90562306a36Sopenharmony_ci#define DL5_PBUF_SIZE_MASK				0x3
90662306a36Sopenharmony_ci#define DL5_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
90762306a36Sopenharmony_ci#define DL5_MONO_SFT					8
90862306a36Sopenharmony_ci#define DL5_MONO_MASK					0x1
90962306a36Sopenharmony_ci#define DL5_MONO_MASK_SFT				BIT(8)
91062306a36Sopenharmony_ci#define DL5_NORMAL_MODE_SFT				5
91162306a36Sopenharmony_ci#define DL5_NORMAL_MODE_MASK				0x1
91262306a36Sopenharmony_ci#define DL5_NORMAL_MODE_MASK_SFT			BIT(5)
91362306a36Sopenharmony_ci#define DL5_HALIGN_SFT					4
91462306a36Sopenharmony_ci#define DL5_HALIGN_MASK					0x1
91562306a36Sopenharmony_ci#define DL5_HALIGN_MASK_SFT				BIT(4)
91662306a36Sopenharmony_ci#define DL5_HD_MODE_SFT					0
91762306a36Sopenharmony_ci#define DL5_HD_MODE_MASK				0x3
91862306a36Sopenharmony_ci#define DL5_HD_MODE_MASK_SFT				GENMASK(1, 0)
91962306a36Sopenharmony_ci
92062306a36Sopenharmony_ci/* AFE_DL6_CON0 */
92162306a36Sopenharmony_ci#define DL6_MODE_SFT					24
92262306a36Sopenharmony_ci#define DL6_MODE_MASK					0xf
92362306a36Sopenharmony_ci#define DL6_MODE_MASK_SFT				GENMASK(27, 24)
92462306a36Sopenharmony_ci#define DL6_MINLEN_SFT					20
92562306a36Sopenharmony_ci#define DL6_MINLEN_MASK					0xf
92662306a36Sopenharmony_ci#define DL6_MINLEN_MASK_SFT				GENMASK(23, 20)
92762306a36Sopenharmony_ci#define DL6_MAXLEN_SFT					16
92862306a36Sopenharmony_ci#define DL6_MAXLEN_MASK					0xf
92962306a36Sopenharmony_ci#define DL6_MAXLEN_MASK_SFT				GENMASK(19, 16)
93062306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_SFT			15
93162306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_MASK			0x1
93262306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
93362306a36Sopenharmony_ci#define DL6_PBUF_SIZE_SFT				12
93462306a36Sopenharmony_ci#define DL6_PBUF_SIZE_MASK				0x3
93562306a36Sopenharmony_ci#define DL6_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
93662306a36Sopenharmony_ci#define DL6_MONO_SFT					8
93762306a36Sopenharmony_ci#define DL6_MONO_MASK					0x1
93862306a36Sopenharmony_ci#define DL6_MONO_MASK_SFT				BIT(8)
93962306a36Sopenharmony_ci#define DL6_NORMAL_MODE_SFT				5
94062306a36Sopenharmony_ci#define DL6_NORMAL_MODE_MASK				0x1
94162306a36Sopenharmony_ci#define DL6_NORMAL_MODE_MASK_SFT			BIT(5)
94262306a36Sopenharmony_ci#define DL6_HALIGN_SFT					4
94362306a36Sopenharmony_ci#define DL6_HALIGN_MASK					0x1
94462306a36Sopenharmony_ci#define DL6_HALIGN_MASK_SFT				BIT(4)
94562306a36Sopenharmony_ci#define DL6_HD_MODE_SFT					0
94662306a36Sopenharmony_ci#define DL6_HD_MODE_MASK				0x3
94762306a36Sopenharmony_ci#define DL6_HD_MODE_MASK_SFT				GENMASK(1, 0)
94862306a36Sopenharmony_ci
94962306a36Sopenharmony_ci/* AFE_DL7_CON0 */
95062306a36Sopenharmony_ci#define DL7_MODE_SFT					24
95162306a36Sopenharmony_ci#define DL7_MODE_MASK					0xf
95262306a36Sopenharmony_ci#define DL7_MODE_MASK_SFT				GENMASK(27, 24)
95362306a36Sopenharmony_ci#define DL7_MINLEN_SFT					20
95462306a36Sopenharmony_ci#define DL7_MINLEN_MASK					0xf
95562306a36Sopenharmony_ci#define DL7_MINLEN_MASK_SFT				GENMASK(23, 20)
95662306a36Sopenharmony_ci#define DL7_MAXLEN_SFT					16
95762306a36Sopenharmony_ci#define DL7_MAXLEN_MASK					0xf
95862306a36Sopenharmony_ci#define DL7_MAXLEN_MASK_SFT				GENMASK(19, 16)
95962306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_SFT			15
96062306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_MASK			0x1
96162306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
96262306a36Sopenharmony_ci#define DL7_PBUF_SIZE_SFT				12
96362306a36Sopenharmony_ci#define DL7_PBUF_SIZE_MASK				0x3
96462306a36Sopenharmony_ci#define DL7_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
96562306a36Sopenharmony_ci#define DL7_MONO_SFT					8
96662306a36Sopenharmony_ci#define DL7_MONO_MASK					0x1
96762306a36Sopenharmony_ci#define DL7_MONO_MASK_SFT				BIT(8)
96862306a36Sopenharmony_ci#define DL7_NORMAL_MODE_SFT				5
96962306a36Sopenharmony_ci#define DL7_NORMAL_MODE_MASK				0x1
97062306a36Sopenharmony_ci#define DL7_NORMAL_MODE_MASK_SFT			BIT(5)
97162306a36Sopenharmony_ci#define DL7_HALIGN_SFT					4
97262306a36Sopenharmony_ci#define DL7_HALIGN_MASK					0x1
97362306a36Sopenharmony_ci#define DL7_HALIGN_MASK_SFT				BIT(4)
97462306a36Sopenharmony_ci#define DL7_HD_MODE_SFT					0
97562306a36Sopenharmony_ci#define DL7_HD_MODE_MASK				0x3
97662306a36Sopenharmony_ci#define DL7_HD_MODE_MASK_SFT				GENMASK(1, 0)
97762306a36Sopenharmony_ci
97862306a36Sopenharmony_ci/* AFE_DL8_CON0 */
97962306a36Sopenharmony_ci#define DL8_MODE_SFT					24
98062306a36Sopenharmony_ci#define DL8_MODE_MASK					0xf
98162306a36Sopenharmony_ci#define DL8_MODE_MASK_SFT				GENMASK(27, 24)
98262306a36Sopenharmony_ci#define DL8_MINLEN_SFT					20
98362306a36Sopenharmony_ci#define DL8_MINLEN_MASK					0xf
98462306a36Sopenharmony_ci#define DL8_MINLEN_MASK_SFT				GENMASK(23, 20)
98562306a36Sopenharmony_ci#define DL8_MAXLEN_SFT					16
98662306a36Sopenharmony_ci#define DL8_MAXLEN_MASK					0xf
98762306a36Sopenharmony_ci#define DL8_MAXLEN_MASK_SFT				GENMASK(19, 16)
98862306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_SFT			15
98962306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_MASK			0x1
99062306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_MASK_SFT			BIT(15)
99162306a36Sopenharmony_ci#define DL8_PBUF_SIZE_SFT				12
99262306a36Sopenharmony_ci#define DL8_PBUF_SIZE_MASK				0x3
99362306a36Sopenharmony_ci#define DL8_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
99462306a36Sopenharmony_ci#define DL8_MONO_SFT					8
99562306a36Sopenharmony_ci#define DL8_MONO_MASK					0x1
99662306a36Sopenharmony_ci#define DL8_MONO_MASK_SFT				BIT(8)
99762306a36Sopenharmony_ci#define DL8_NORMAL_MODE_SFT				5
99862306a36Sopenharmony_ci#define DL8_NORMAL_MODE_MASK				0x1
99962306a36Sopenharmony_ci#define DL8_NORMAL_MODE_MASK_SFT			BIT(5)
100062306a36Sopenharmony_ci#define DL8_HALIGN_SFT					4
100162306a36Sopenharmony_ci#define DL8_HALIGN_MASK					0x1
100262306a36Sopenharmony_ci#define DL8_HALIGN_MASK_SFT				BIT(4)
100362306a36Sopenharmony_ci#define DL8_HD_MODE_SFT					0
100462306a36Sopenharmony_ci#define DL8_HD_MODE_MASK				0x3
100562306a36Sopenharmony_ci#define DL8_HD_MODE_MASK_SFT				GENMASK(1, 0)
100662306a36Sopenharmony_ci
100762306a36Sopenharmony_ci/* AFE_DL12_CON0 */
100862306a36Sopenharmony_ci#define DL12_MODE_SFT					24
100962306a36Sopenharmony_ci#define DL12_MODE_MASK					0xf
101062306a36Sopenharmony_ci#define DL12_MODE_MASK_SFT				GENMASK(27, 24)
101162306a36Sopenharmony_ci#define DL12_MINLEN_SFT					20
101262306a36Sopenharmony_ci#define DL12_MINLEN_MASK				0xf
101362306a36Sopenharmony_ci#define DL12_MINLEN_MASK_SFT				GENMASK(23, 20)
101462306a36Sopenharmony_ci#define DL12_MAXLEN_SFT					16
101562306a36Sopenharmony_ci#define DL12_MAXLEN_MASK				0xf
101662306a36Sopenharmony_ci#define DL12_MAXLEN_MASK_SFT				GENMASK(19, 16)
101762306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_SFT			15
101862306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_MASK			0x1
101962306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_MASK_SFT		BIT(15)
102062306a36Sopenharmony_ci#define DL12_PBUF_SIZE_SFT				12
102162306a36Sopenharmony_ci#define DL12_PBUF_SIZE_MASK				0x3
102262306a36Sopenharmony_ci#define DL12_PBUF_SIZE_MASK_SFT				GENMASK(13, 12)
102362306a36Sopenharmony_ci#define DL12_4CH_EN_SFT					11
102462306a36Sopenharmony_ci#define DL12_4CH_EN_MASK				0x1
102562306a36Sopenharmony_ci#define DL12_4CH_EN_MASK_SFT				BIT(11)
102662306a36Sopenharmony_ci#define DL12_MONO_SFT					8
102762306a36Sopenharmony_ci#define DL12_MONO_MASK					0x1
102862306a36Sopenharmony_ci#define DL12_MONO_MASK_SFT				BIT(8)
102962306a36Sopenharmony_ci#define DL12_NORMAL_MODE_SFT				5
103062306a36Sopenharmony_ci#define DL12_NORMAL_MODE_MASK				0x1
103162306a36Sopenharmony_ci#define DL12_NORMAL_MODE_MASK_SFT			BIT(5)
103262306a36Sopenharmony_ci#define DL12_HALIGN_SFT					4
103362306a36Sopenharmony_ci#define DL12_HALIGN_MASK				0x1
103462306a36Sopenharmony_ci#define DL12_HALIGN_MASK_SFT				BIT(4)
103562306a36Sopenharmony_ci#define DL12_HD_MODE_SFT				0
103662306a36Sopenharmony_ci#define DL12_HD_MODE_MASK				0x3
103762306a36Sopenharmony_ci#define DL12_HD_MODE_MASK_SFT				GENMASK(1, 0)
103862306a36Sopenharmony_ci
103962306a36Sopenharmony_ci/* AFE_AWB_CON0 */
104062306a36Sopenharmony_ci#define AWB_MODE_SFT					24
104162306a36Sopenharmony_ci#define AWB_MODE_MASK					0xf
104262306a36Sopenharmony_ci#define AWB_MODE_MASK_SFT				GENMASK(27, 24)
104362306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_SFT			15
104462306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_MASK			0x1
104562306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
104662306a36Sopenharmony_ci#define AWB_R_MONO_SFT					9
104762306a36Sopenharmony_ci#define AWB_R_MONO_MASK					0x1
104862306a36Sopenharmony_ci#define AWB_R_MONO_MASK_SFT				BIT(9)
104962306a36Sopenharmony_ci#define AWB_MONO_SFT					8
105062306a36Sopenharmony_ci#define AWB_MONO_MASK					0x1
105162306a36Sopenharmony_ci#define AWB_MONO_MASK_SFT				BIT(8)
105262306a36Sopenharmony_ci#define AWB_WR_SIGN_SFT					6
105362306a36Sopenharmony_ci#define AWB_WR_SIGN_MASK				0x1
105462306a36Sopenharmony_ci#define AWB_WR_SIGN_MASK_SFT				BIT(6)
105562306a36Sopenharmony_ci#define AWB_NORMAL_MODE_SFT				5
105662306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK				0x1
105762306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK_SFT			BIT(5)
105862306a36Sopenharmony_ci#define AWB_HALIGN_SFT					4
105962306a36Sopenharmony_ci#define AWB_HALIGN_MASK					0x1
106062306a36Sopenharmony_ci#define AWB_HALIGN_MASK_SFT				BIT(4)
106162306a36Sopenharmony_ci#define AWB_HD_MODE_SFT					0
106262306a36Sopenharmony_ci#define AWB_HD_MODE_MASK				0x3
106362306a36Sopenharmony_ci#define AWB_HD_MODE_MASK_SFT				GENMASK(1, 0)
106462306a36Sopenharmony_ci
106562306a36Sopenharmony_ci/* AFE_AWB2_CON0 */
106662306a36Sopenharmony_ci#define AWB2_MODE_SFT					24
106762306a36Sopenharmony_ci#define AWB2_MODE_MASK					0xf
106862306a36Sopenharmony_ci#define AWB2_MODE_MASK_SFT				GENMASK(27, 24)
106962306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_SFT			15
107062306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_MASK			0x1
107162306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
107262306a36Sopenharmony_ci#define AWB2_R_MONO_SFT					9
107362306a36Sopenharmony_ci#define AWB2_R_MONO_MASK				0x1
107462306a36Sopenharmony_ci#define AWB2_R_MONO_MASK_SFT				BIT(9)
107562306a36Sopenharmony_ci#define AWB2_MONO_SFT					8
107662306a36Sopenharmony_ci#define AWB2_MONO_MASK					0x1
107762306a36Sopenharmony_ci#define AWB2_MONO_MASK_SFT				BIT(8)
107862306a36Sopenharmony_ci#define AWB2_WR_SIGN_SFT				6
107962306a36Sopenharmony_ci#define AWB2_WR_SIGN_MASK				0x1
108062306a36Sopenharmony_ci#define AWB2_WR_SIGN_MASK_SFT				BIT(6)
108162306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_SFT				5
108262306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK				0x1
108362306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK_SFT			BIT(5)
108462306a36Sopenharmony_ci#define AWB2_HALIGN_SFT					4
108562306a36Sopenharmony_ci#define AWB2_HALIGN_MASK				0x1
108662306a36Sopenharmony_ci#define AWB2_HALIGN_MASK_SFT				BIT(4)
108762306a36Sopenharmony_ci#define AWB2_HD_MODE_SFT				0
108862306a36Sopenharmony_ci#define AWB2_HD_MODE_MASK				0x3
108962306a36Sopenharmony_ci#define AWB2_HD_MODE_MASK_SFT				GENMASK(1, 0)
109062306a36Sopenharmony_ci
109162306a36Sopenharmony_ci/* AFE_VUL_CON0 */
109262306a36Sopenharmony_ci#define VUL_MODE_SFT					24
109362306a36Sopenharmony_ci#define VUL_MODE_MASK					0xf
109462306a36Sopenharmony_ci#define VUL_MODE_MASK_SFT				GENMASK(27, 24)
109562306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_SFT			15
109662306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_MASK			0x1
109762306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
109862306a36Sopenharmony_ci#define VUL_R_MONO_SFT					9
109962306a36Sopenharmony_ci#define VUL_R_MONO_MASK					0x1
110062306a36Sopenharmony_ci#define VUL_R_MONO_MASK_SFT				BIT(9)
110162306a36Sopenharmony_ci#define VUL_MONO_SFT					8
110262306a36Sopenharmony_ci#define VUL_MONO_MASK					0x1
110362306a36Sopenharmony_ci#define VUL_MONO_MASK_SFT				BIT(8)
110462306a36Sopenharmony_ci#define VUL_WR_SIGN_SFT					6
110562306a36Sopenharmony_ci#define VUL_WR_SIGN_MASK				0x1
110662306a36Sopenharmony_ci#define VUL_WR_SIGN_MASK_SFT				BIT(6)
110762306a36Sopenharmony_ci#define VUL_NORMAL_MODE_SFT				5
110862306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK				0x1
110962306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK_SFT			BIT(5)
111062306a36Sopenharmony_ci#define VUL_HALIGN_SFT					4
111162306a36Sopenharmony_ci#define VUL_HALIGN_MASK					0x1
111262306a36Sopenharmony_ci#define VUL_HALIGN_MASK_SFT				BIT(4)
111362306a36Sopenharmony_ci#define VUL_HD_MODE_SFT					0
111462306a36Sopenharmony_ci#define VUL_HD_MODE_MASK				0x3
111562306a36Sopenharmony_ci#define VUL_HD_MODE_MASK_SFT				GENMASK(1, 0)
111662306a36Sopenharmony_ci
111762306a36Sopenharmony_ci/* AFE_VUL12_CON0 */
111862306a36Sopenharmony_ci#define VUL12_MODE_SFT					24
111962306a36Sopenharmony_ci#define VUL12_MODE_MASK					0xf
112062306a36Sopenharmony_ci#define VUL12_MODE_MASK_SFT				GENMASK(27, 24)
112162306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_SFT			15
112262306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_MASK			0x1
112362306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_MASK_SFT		BIT(15)
112462306a36Sopenharmony_ci#define VUL12_4CH_EN_SFT				11
112562306a36Sopenharmony_ci#define VUL12_4CH_EN_MASK				0x1
112662306a36Sopenharmony_ci#define VUL12_4CH_EN_MASK_SFT				BIT(11)
112762306a36Sopenharmony_ci#define VUL12_R_MONO_SFT				9
112862306a36Sopenharmony_ci#define VUL12_R_MONO_MASK				0x1
112962306a36Sopenharmony_ci#define VUL12_R_MONO_MASK_SFT				BIT(9)
113062306a36Sopenharmony_ci#define VUL12_MONO_SFT					8
113162306a36Sopenharmony_ci#define VUL12_MONO_MASK					0x1
113262306a36Sopenharmony_ci#define VUL12_MONO_MASK_SFT				BIT(8)
113362306a36Sopenharmony_ci#define VUL12_WR_SIGN_SFT				6
113462306a36Sopenharmony_ci#define VUL12_WR_SIGN_MASK				0x1
113562306a36Sopenharmony_ci#define VUL12_WR_SIGN_MASK_SFT				BIT(6)
113662306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_SFT				5
113762306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK				0x1
113862306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK_SFT			BIT(5)
113962306a36Sopenharmony_ci#define VUL12_HALIGN_SFT				4
114062306a36Sopenharmony_ci#define VUL12_HALIGN_MASK				0x1
114162306a36Sopenharmony_ci#define VUL12_HALIGN_MASK_SFT				BIT(4)
114262306a36Sopenharmony_ci#define VUL12_HD_MODE_SFT				0
114362306a36Sopenharmony_ci#define VUL12_HD_MODE_MASK				0x3
114462306a36Sopenharmony_ci#define VUL12_HD_MODE_MASK_SFT				GENMASK(1, 0)
114562306a36Sopenharmony_ci
114662306a36Sopenharmony_ci/* AFE_VUL2_CON0 */
114762306a36Sopenharmony_ci#define VUL2_MODE_SFT					24
114862306a36Sopenharmony_ci#define VUL2_MODE_MASK					0xf
114962306a36Sopenharmony_ci#define VUL2_MODE_MASK_SFT				GENMASK(27, 24)
115062306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_SFT			15
115162306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_MASK			0x1
115262306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
115362306a36Sopenharmony_ci#define VUL2_R_MONO_SFT					9
115462306a36Sopenharmony_ci#define VUL2_R_MONO_MASK				0x1
115562306a36Sopenharmony_ci#define VUL2_R_MONO_MASK_SFT				BIT(9)
115662306a36Sopenharmony_ci#define VUL2_MONO_SFT					8
115762306a36Sopenharmony_ci#define VUL2_MONO_MASK					0x1
115862306a36Sopenharmony_ci#define VUL2_MONO_MASK_SFT				BIT(8)
115962306a36Sopenharmony_ci#define VUL2_WR_SIGN_SFT				6
116062306a36Sopenharmony_ci#define VUL2_WR_SIGN_MASK				0x1
116162306a36Sopenharmony_ci#define VUL2_WR_SIGN_MASK_SFT				BIT(6)
116262306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_SFT				5
116362306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK				0x1
116462306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK_SFT			BIT(5)
116562306a36Sopenharmony_ci#define VUL2_HALIGN_SFT					4
116662306a36Sopenharmony_ci#define VUL2_HALIGN_MASK				0x1
116762306a36Sopenharmony_ci#define VUL2_HALIGN_MASK_SFT				BIT(4)
116862306a36Sopenharmony_ci#define VUL2_HD_MODE_SFT				0
116962306a36Sopenharmony_ci#define VUL2_HD_MODE_MASK				0x3
117062306a36Sopenharmony_ci#define VUL2_HD_MODE_MASK_SFT				GENMASK(1, 0)
117162306a36Sopenharmony_ci
117262306a36Sopenharmony_ci/* AFE_VUL3_CON0 */
117362306a36Sopenharmony_ci#define VUL3_MODE_SFT					24
117462306a36Sopenharmony_ci#define VUL3_MODE_MASK					0xf
117562306a36Sopenharmony_ci#define VUL3_MODE_MASK_SFT				GENMASK(27, 24)
117662306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_SFT			15
117762306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_MASK			0x1
117862306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
117962306a36Sopenharmony_ci#define VUL3_R_MONO_SFT					9
118062306a36Sopenharmony_ci#define VUL3_R_MONO_MASK				0x1
118162306a36Sopenharmony_ci#define VUL3_R_MONO_MASK_SFT				BIT(9)
118262306a36Sopenharmony_ci#define VUL3_MONO_SFT					8
118362306a36Sopenharmony_ci#define VUL3_MONO_MASK					0x1
118462306a36Sopenharmony_ci#define VUL3_MONO_MASK_SFT				BIT(8)
118562306a36Sopenharmony_ci#define VUL3_WR_SIGN_SFT				6
118662306a36Sopenharmony_ci#define VUL3_WR_SIGN_MASK				0x1
118762306a36Sopenharmony_ci#define VUL3_WR_SIGN_MASK_SFT				BIT(6)
118862306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_SFT				5
118962306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_MASK				0x1
119062306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_MASK_SFT			BIT(5)
119162306a36Sopenharmony_ci#define VUL3_HALIGN_SFT					4
119262306a36Sopenharmony_ci#define VUL3_HALIGN_MASK				0x1
119362306a36Sopenharmony_ci#define VUL3_HALIGN_MASK_SFT				BIT(4)
119462306a36Sopenharmony_ci#define VUL3_HD_MODE_SFT				0
119562306a36Sopenharmony_ci#define VUL3_HD_MODE_MASK				0x3
119662306a36Sopenharmony_ci#define VUL3_HD_MODE_MASK_SFT				GENMASK(1, 0)
119762306a36Sopenharmony_ci
119862306a36Sopenharmony_ci/* AFE_VUL4_CON0 */
119962306a36Sopenharmony_ci#define VUL4_MODE_SFT					24
120062306a36Sopenharmony_ci#define VUL4_MODE_MASK					0xf
120162306a36Sopenharmony_ci#define VUL4_MODE_MASK_SFT				GENMASK(27, 24)
120262306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_SFT			15
120362306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_MASK			0x1
120462306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
120562306a36Sopenharmony_ci#define VUL4_R_MONO_SFT					9
120662306a36Sopenharmony_ci#define VUL4_R_MONO_MASK				0x1
120762306a36Sopenharmony_ci#define VUL4_R_MONO_MASK_SFT				BIT(9)
120862306a36Sopenharmony_ci#define VUL4_MONO_SFT					8
120962306a36Sopenharmony_ci#define VUL4_MONO_MASK					0x1
121062306a36Sopenharmony_ci#define VUL4_MONO_MASK_SFT				BIT(8)
121162306a36Sopenharmony_ci#define VUL4_WR_SIGN_SFT				6
121262306a36Sopenharmony_ci#define VUL4_WR_SIGN_MASK				0x1
121362306a36Sopenharmony_ci#define VUL4_WR_SIGN_MASK_SFT				BIT(6)
121462306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_SFT				5
121562306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_MASK				0x1
121662306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_MASK_SFT			BIT(5)
121762306a36Sopenharmony_ci#define VUL4_HALIGN_SFT					4
121862306a36Sopenharmony_ci#define VUL4_HALIGN_MASK				0x1
121962306a36Sopenharmony_ci#define VUL4_HALIGN_MASK_SFT				BIT(4)
122062306a36Sopenharmony_ci#define VUL4_HD_MODE_SFT				0
122162306a36Sopenharmony_ci#define VUL4_HD_MODE_MASK				0x3
122262306a36Sopenharmony_ci#define VUL4_HD_MODE_MASK_SFT				GENMASK(1, 0)
122362306a36Sopenharmony_ci
122462306a36Sopenharmony_ci/* AFE_VUL5_CON0 */
122562306a36Sopenharmony_ci#define VUL5_MODE_SFT					24
122662306a36Sopenharmony_ci#define VUL5_MODE_MASK					0xf
122762306a36Sopenharmony_ci#define VUL5_MODE_MASK_SFT				GENMASK(27, 24)
122862306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_SFT			15
122962306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_MASK			0x1
123062306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
123162306a36Sopenharmony_ci#define VUL5_R_MONO_SFT					9
123262306a36Sopenharmony_ci#define VUL5_R_MONO_MASK				0x1
123362306a36Sopenharmony_ci#define VUL5_R_MONO_MASK_SFT				BIT(9)
123462306a36Sopenharmony_ci#define VUL5_MONO_SFT					8
123562306a36Sopenharmony_ci#define VUL5_MONO_MASK					0x1
123662306a36Sopenharmony_ci#define VUL5_MONO_MASK_SFT				BIT(8)
123762306a36Sopenharmony_ci#define VUL5_WR_SIGN_SFT				6
123862306a36Sopenharmony_ci#define VUL5_WR_SIGN_MASK				0x1
123962306a36Sopenharmony_ci#define VUL5_WR_SIGN_MASK_SFT				BIT(6)
124062306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_SFT				5
124162306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_MASK				0x1
124262306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_MASK_SFT			BIT(5)
124362306a36Sopenharmony_ci#define VUL5_HALIGN_SFT					4
124462306a36Sopenharmony_ci#define VUL5_HALIGN_MASK				0x1
124562306a36Sopenharmony_ci#define VUL5_HALIGN_MASK_SFT				BIT(4)
124662306a36Sopenharmony_ci#define VUL5_HD_MODE_SFT				0
124762306a36Sopenharmony_ci#define VUL5_HD_MODE_MASK				0x3
124862306a36Sopenharmony_ci#define VUL5_HD_MODE_MASK_SFT				GENMASK(1, 0)
124962306a36Sopenharmony_ci
125062306a36Sopenharmony_ci/* AFE_VUL6_CON0 */
125162306a36Sopenharmony_ci#define VUL6_MODE_SFT					24
125262306a36Sopenharmony_ci#define VUL6_MODE_MASK					0xf
125362306a36Sopenharmony_ci#define VUL6_MODE_MASK_SFT				GENMASK(27, 24)
125462306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_SFT			15
125562306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_MASK			0x1
125662306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
125762306a36Sopenharmony_ci#define VUL6_R_MONO_SFT					9
125862306a36Sopenharmony_ci#define VUL6_R_MONO_MASK				0x1
125962306a36Sopenharmony_ci#define VUL6_R_MONO_MASK_SFT				BIT(9)
126062306a36Sopenharmony_ci#define VUL6_MONO_SFT					8
126162306a36Sopenharmony_ci#define VUL6_MONO_MASK					0x1
126262306a36Sopenharmony_ci#define VUL6_MONO_MASK_SFT				BIT(8)
126362306a36Sopenharmony_ci#define VUL6_WR_SIGN_SFT				6
126462306a36Sopenharmony_ci#define VUL6_WR_SIGN_MASK				0x1
126562306a36Sopenharmony_ci#define VUL6_WR_SIGN_MASK_SFT				BIT(6)
126662306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_SFT				5
126762306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_MASK				0x1
126862306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_MASK_SFT			BIT(5)
126962306a36Sopenharmony_ci#define VUL6_HALIGN_SFT					4
127062306a36Sopenharmony_ci#define VUL6_HALIGN_MASK				0x1
127162306a36Sopenharmony_ci#define VUL6_HALIGN_MASK_SFT				BIT(4)
127262306a36Sopenharmony_ci#define VUL6_HD_MODE_SFT				0
127362306a36Sopenharmony_ci#define VUL6_HD_MODE_MASK				0x3
127462306a36Sopenharmony_ci#define VUL6_HD_MODE_MASK_SFT				GENMASK(1, 0)
127562306a36Sopenharmony_ci
127662306a36Sopenharmony_ci/* AFE_DAI_CON0 */
127762306a36Sopenharmony_ci#define DAI_MODE_SFT					24
127862306a36Sopenharmony_ci#define DAI_MODE_MASK					0x3
127962306a36Sopenharmony_ci#define DAI_MODE_MASK_SFT				GENMASK(25, 24)
128062306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_SFT			15
128162306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_MASK			0x1
128262306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
128362306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_SFT				10
128462306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_MASK				0x1
128562306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_MASK_SFT			BIT(10)
128662306a36Sopenharmony_ci#define DAI_MONO_SFT					8
128762306a36Sopenharmony_ci#define DAI_MONO_MASK					0x1
128862306a36Sopenharmony_ci#define DAI_MONO_MASK_SFT				BIT(8)
128962306a36Sopenharmony_ci#define DAI_WR_SIGN_SFT					6
129062306a36Sopenharmony_ci#define DAI_WR_SIGN_MASK				0x1
129162306a36Sopenharmony_ci#define DAI_WR_SIGN_MASK_SFT				BIT(6)
129262306a36Sopenharmony_ci#define DAI_NORMAL_MODE_SFT				5
129362306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK				0x1
129462306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK_SFT			BIT(5)
129562306a36Sopenharmony_ci#define DAI_HALIGN_SFT					4
129662306a36Sopenharmony_ci#define DAI_HALIGN_MASK					0x1
129762306a36Sopenharmony_ci#define DAI_HALIGN_MASK_SFT				BIT(4)
129862306a36Sopenharmony_ci#define DAI_HD_MODE_SFT					0
129962306a36Sopenharmony_ci#define DAI_HD_MODE_MASK				0x3
130062306a36Sopenharmony_ci#define DAI_HD_MODE_MASK_SFT				GENMASK(1, 0)
130162306a36Sopenharmony_ci
130262306a36Sopenharmony_ci/* AFE_MOD_DAI_CON0 */
130362306a36Sopenharmony_ci#define MOD_DAI_MODE_SFT				24
130462306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK				0x3
130562306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK_SFT				GENMASK(25, 24)
130662306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_SFT			15
130762306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_MASK			0x1
130862306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_MASK_SFT		BIT(15)
130962306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_SFT			10
131062306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_MASK			0x1
131162306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_MASK_SFT			BIT(10)
131262306a36Sopenharmony_ci#define MOD_DAI_MONO_SFT				8
131362306a36Sopenharmony_ci#define MOD_DAI_MONO_MASK				0x1
131462306a36Sopenharmony_ci#define MOD_DAI_MONO_MASK_SFT				BIT(8)
131562306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_SFT				6
131662306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_MASK				0x1
131762306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_MASK_SFT			BIT(6)
131862306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_SFT				5
131962306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK			0x1
132062306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK_SFT			BIT(5)
132162306a36Sopenharmony_ci#define MOD_DAI_HALIGN_SFT				4
132262306a36Sopenharmony_ci#define MOD_DAI_HALIGN_MASK				0x1
132362306a36Sopenharmony_ci#define MOD_DAI_HALIGN_MASK_SFT				BIT(4)
132462306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_SFT				0
132562306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_MASK				0x3
132662306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_MASK_SFT			GENMASK(1, 0)
132762306a36Sopenharmony_ci
132862306a36Sopenharmony_ci/* AFE_DAI2_CON0 */
132962306a36Sopenharmony_ci#define DAI2_MODE_SFT					24
133062306a36Sopenharmony_ci#define DAI2_MODE_MASK					0xf
133162306a36Sopenharmony_ci#define DAI2_MODE_MASK_SFT				GENMASK(27, 24)
133262306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_SFT			15
133362306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_MASK			0x1
133462306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_MASK_SFT			BIT(15)
133562306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_SFT				10
133662306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_MASK				0x1
133762306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_MASK_SFT			BIT(10)
133862306a36Sopenharmony_ci#define DAI2_MONO_SFT					8
133962306a36Sopenharmony_ci#define DAI2_MONO_MASK					0x1
134062306a36Sopenharmony_ci#define DAI2_MONO_MASK_SFT				BIT(8)
134162306a36Sopenharmony_ci#define DAI2_WR_SIGN_SFT				6
134262306a36Sopenharmony_ci#define DAI2_WR_SIGN_MASK				0x1
134362306a36Sopenharmony_ci#define DAI2_WR_SIGN_MASK_SFT				BIT(6)
134462306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_SFT				5
134562306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_MASK				0x1
134662306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_MASK_SFT			BIT(5)
134762306a36Sopenharmony_ci#define DAI2_HALIGN_SFT					4
134862306a36Sopenharmony_ci#define DAI2_HALIGN_MASK				0x1
134962306a36Sopenharmony_ci#define DAI2_HALIGN_MASK_SFT				BIT(4)
135062306a36Sopenharmony_ci#define DAI2_HD_MODE_SFT				0
135162306a36Sopenharmony_ci#define DAI2_HD_MODE_MASK				0x3
135262306a36Sopenharmony_ci#define DAI2_HD_MODE_MASK_SFT				GENMASK(1, 0)
135362306a36Sopenharmony_ci
135462306a36Sopenharmony_ci/* AFE_MEMIF_CON0 */
135562306a36Sopenharmony_ci#define CPU_COMPACT_MODE_SFT				2
135662306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK_SFT			BIT(2)
135762306a36Sopenharmony_ci#define CPU_HD_ALIGN_SFT				1
135862306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK_SFT				BIT(1)
135962306a36Sopenharmony_ci#define SYSRAM_SIGN_SFT					0
136062306a36Sopenharmony_ci#define SYSRAM_SIGN_MASK_SFT				BIT(0)
136162306a36Sopenharmony_ci
136262306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON0 */
136362306a36Sopenharmony_ci#define IRQ31_MCU_ON_SFT				31
136462306a36Sopenharmony_ci#define IRQ31_MCU_ON_MASK				0x1
136562306a36Sopenharmony_ci#define IRQ31_MCU_ON_MASK_SFT				BIT(31)
136662306a36Sopenharmony_ci#define IRQ26_MCU_ON_SFT				26
136762306a36Sopenharmony_ci#define IRQ26_MCU_ON_MASK				0x1
136862306a36Sopenharmony_ci#define IRQ26_MCU_ON_MASK_SFT				BIT(26)
136962306a36Sopenharmony_ci#define IRQ25_MCU_ON_SFT				25
137062306a36Sopenharmony_ci#define IRQ25_MCU_ON_MASK				0x1
137162306a36Sopenharmony_ci#define IRQ25_MCU_ON_MASK_SFT				BIT(25)
137262306a36Sopenharmony_ci#define IRQ24_MCU_ON_SFT				24
137362306a36Sopenharmony_ci#define IRQ24_MCU_ON_MASK				0x1
137462306a36Sopenharmony_ci#define IRQ24_MCU_ON_MASK_SFT				BIT(24)
137562306a36Sopenharmony_ci#define IRQ23_MCU_ON_SFT				23
137662306a36Sopenharmony_ci#define IRQ23_MCU_ON_MASK				0x1
137762306a36Sopenharmony_ci#define IRQ23_MCU_ON_MASK_SFT				BIT(23)
137862306a36Sopenharmony_ci#define IRQ22_MCU_ON_SFT				22
137962306a36Sopenharmony_ci#define IRQ22_MCU_ON_MASK				0x1
138062306a36Sopenharmony_ci#define IRQ22_MCU_ON_MASK_SFT				BIT(22)
138162306a36Sopenharmony_ci#define IRQ21_MCU_ON_SFT				21
138262306a36Sopenharmony_ci#define IRQ21_MCU_ON_MASK				0x1
138362306a36Sopenharmony_ci#define IRQ21_MCU_ON_MASK_SFT				BIT(21)
138462306a36Sopenharmony_ci#define IRQ20_MCU_ON_SFT				20
138562306a36Sopenharmony_ci#define IRQ20_MCU_ON_MASK				0x1
138662306a36Sopenharmony_ci#define IRQ20_MCU_ON_MASK_SFT				BIT(20)
138762306a36Sopenharmony_ci#define IRQ19_MCU_ON_SFT				19
138862306a36Sopenharmony_ci#define IRQ19_MCU_ON_MASK				0x1
138962306a36Sopenharmony_ci#define IRQ19_MCU_ON_MASK_SFT				BIT(19)
139062306a36Sopenharmony_ci#define IRQ18_MCU_ON_SFT				18
139162306a36Sopenharmony_ci#define IRQ18_MCU_ON_MASK				0x1
139262306a36Sopenharmony_ci#define IRQ18_MCU_ON_MASK_SFT				BIT(18)
139362306a36Sopenharmony_ci#define IRQ17_MCU_ON_SFT				17
139462306a36Sopenharmony_ci#define IRQ17_MCU_ON_MASK				0x1
139562306a36Sopenharmony_ci#define IRQ17_MCU_ON_MASK_SFT				BIT(17)
139662306a36Sopenharmony_ci#define IRQ16_MCU_ON_SFT				16
139762306a36Sopenharmony_ci#define IRQ16_MCU_ON_MASK				0x1
139862306a36Sopenharmony_ci#define IRQ16_MCU_ON_MASK_SFT				BIT(16)
139962306a36Sopenharmony_ci#define IRQ15_MCU_ON_SFT				15
140062306a36Sopenharmony_ci#define IRQ15_MCU_ON_MASK				0x1
140162306a36Sopenharmony_ci#define IRQ15_MCU_ON_MASK_SFT				BIT(15)
140262306a36Sopenharmony_ci#define IRQ14_MCU_ON_SFT				14
140362306a36Sopenharmony_ci#define IRQ14_MCU_ON_MASK				0x1
140462306a36Sopenharmony_ci#define IRQ14_MCU_ON_MASK_SFT				BIT(14)
140562306a36Sopenharmony_ci#define IRQ13_MCU_ON_SFT				13
140662306a36Sopenharmony_ci#define IRQ13_MCU_ON_MASK				0x1
140762306a36Sopenharmony_ci#define IRQ13_MCU_ON_MASK_SFT				BIT(13)
140862306a36Sopenharmony_ci#define IRQ12_MCU_ON_SFT				12
140962306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK				0x1
141062306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK_SFT				BIT(12)
141162306a36Sopenharmony_ci#define IRQ11_MCU_ON_SFT				11
141262306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK				0x1
141362306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK_SFT				BIT(11)
141462306a36Sopenharmony_ci#define IRQ10_MCU_ON_SFT				10
141562306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK				0x1
141662306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK_SFT				BIT(10)
141762306a36Sopenharmony_ci#define IRQ9_MCU_ON_SFT					9
141862306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK				0x1
141962306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK_SFT				BIT(9)
142062306a36Sopenharmony_ci#define IRQ8_MCU_ON_SFT					8
142162306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK				0x1
142262306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK_SFT				BIT(8)
142362306a36Sopenharmony_ci#define IRQ7_MCU_ON_SFT					7
142462306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK				0x1
142562306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK_SFT				BIT(7)
142662306a36Sopenharmony_ci#define IRQ6_MCU_ON_SFT					6
142762306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK				0x1
142862306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK_SFT				BIT(6)
142962306a36Sopenharmony_ci#define IRQ5_MCU_ON_SFT					5
143062306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK				0x1
143162306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK_SFT				BIT(5)
143262306a36Sopenharmony_ci#define IRQ4_MCU_ON_SFT					4
143362306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK				0x1
143462306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK_SFT				BIT(4)
143562306a36Sopenharmony_ci#define IRQ3_MCU_ON_SFT					3
143662306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK				0x1
143762306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK_SFT				BIT(3)
143862306a36Sopenharmony_ci#define IRQ2_MCU_ON_SFT					2
143962306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK				0x1
144062306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK_SFT				BIT(2)
144162306a36Sopenharmony_ci#define IRQ1_MCU_ON_SFT					1
144262306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK				0x1
144362306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK_SFT				BIT(1)
144462306a36Sopenharmony_ci#define IRQ0_MCU_ON_SFT					0
144562306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK				0x1
144662306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK_SFT				BIT(0)
144762306a36Sopenharmony_ci
144862306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON1 */
144962306a36Sopenharmony_ci#define IRQ7_MCU_MODE_SFT				28
145062306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK				0xf
145162306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK_SFT				GENMASK(31, 28)
145262306a36Sopenharmony_ci#define IRQ6_MCU_MODE_SFT				24
145362306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK				0xf
145462306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK_SFT				GENMASK(27, 24)
145562306a36Sopenharmony_ci#define IRQ5_MCU_MODE_SFT				20
145662306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK				0xf
145762306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK_SFT				GENMASK(23, 20)
145862306a36Sopenharmony_ci#define IRQ4_MCU_MODE_SFT				16
145962306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK				0xf
146062306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK_SFT				GENMASK(19, 16)
146162306a36Sopenharmony_ci#define IRQ3_MCU_MODE_SFT				12
146262306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK				0xf
146362306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK_SFT				GENMASK(15, 12)
146462306a36Sopenharmony_ci#define IRQ2_MCU_MODE_SFT				8
146562306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK				0xf
146662306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK_SFT				GENMASK(11, 8)
146762306a36Sopenharmony_ci#define IRQ1_MCU_MODE_SFT				4
146862306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK				0xf
146962306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK_SFT				GENMASK(7, 4)
147062306a36Sopenharmony_ci#define IRQ0_MCU_MODE_SFT				0
147162306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK				0xf
147262306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK_SFT				GENMASK(3, 0)
147362306a36Sopenharmony_ci
147462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON2 */
147562306a36Sopenharmony_ci#define IRQ15_MCU_MODE_SFT				28
147662306a36Sopenharmony_ci#define IRQ15_MCU_MODE_MASK				0xf
147762306a36Sopenharmony_ci#define IRQ15_MCU_MODE_MASK_SFT				GENMASK(31, 28)
147862306a36Sopenharmony_ci#define IRQ14_MCU_MODE_SFT				24
147962306a36Sopenharmony_ci#define IRQ14_MCU_MODE_MASK				0xf
148062306a36Sopenharmony_ci#define IRQ14_MCU_MODE_MASK_SFT				GENMASK(27, 24)
148162306a36Sopenharmony_ci#define IRQ13_MCU_MODE_SFT				20
148262306a36Sopenharmony_ci#define IRQ13_MCU_MODE_MASK				0xf
148362306a36Sopenharmony_ci#define IRQ13_MCU_MODE_MASK_SFT				GENMASK(23, 20)
148462306a36Sopenharmony_ci#define IRQ12_MCU_MODE_SFT				16
148562306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK				0xf
148662306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK_SFT				GENMASK(19, 16)
148762306a36Sopenharmony_ci#define IRQ11_MCU_MODE_SFT				12
148862306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK				0xf
148962306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK_SFT				GENMASK(15, 12)
149062306a36Sopenharmony_ci#define IRQ10_MCU_MODE_SFT				8
149162306a36Sopenharmony_ci#define IRQ10_MCU_MODE_MASK				0xf
149262306a36Sopenharmony_ci#define IRQ10_MCU_MODE_MASK_SFT				GENMASK(11, 8)
149362306a36Sopenharmony_ci#define IRQ9_MCU_MODE_SFT				4
149462306a36Sopenharmony_ci#define IRQ9_MCU_MODE_MASK				0xf
149562306a36Sopenharmony_ci#define IRQ9_MCU_MODE_MASK_SFT				GENMASK(7, 4)
149662306a36Sopenharmony_ci#define IRQ8_MCU_MODE_SFT				0
149762306a36Sopenharmony_ci#define IRQ8_MCU_MODE_MASK				0xf
149862306a36Sopenharmony_ci#define IRQ8_MCU_MODE_MASK_SFT				GENMASK(3, 0)
149962306a36Sopenharmony_ci
150062306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON3 */
150162306a36Sopenharmony_ci#define IRQ23_MCU_MODE_SFT				28
150262306a36Sopenharmony_ci#define IRQ23_MCU_MODE_MASK				0xf
150362306a36Sopenharmony_ci#define IRQ23_MCU_MODE_MASK_SFT				GENMASK(31, 28)
150462306a36Sopenharmony_ci#define IRQ22_MCU_MODE_SFT				24
150562306a36Sopenharmony_ci#define IRQ22_MCU_MODE_MASK				0xf
150662306a36Sopenharmony_ci#define IRQ22_MCU_MODE_MASK_SFT				GENMASK(27, 24)
150762306a36Sopenharmony_ci#define IRQ21_MCU_MODE_SFT				20
150862306a36Sopenharmony_ci#define IRQ21_MCU_MODE_MASK				0xf
150962306a36Sopenharmony_ci#define IRQ21_MCU_MODE_MASK_SFT				GENMASK(23, 20)
151062306a36Sopenharmony_ci#define IRQ20_MCU_MODE_SFT				16
151162306a36Sopenharmony_ci#define IRQ20_MCU_MODE_MASK				0xf
151262306a36Sopenharmony_ci#define IRQ20_MCU_MODE_MASK_SFT				GENMASK(19, 16)
151362306a36Sopenharmony_ci#define IRQ19_MCU_MODE_SFT				12
151462306a36Sopenharmony_ci#define IRQ19_MCU_MODE_MASK				0xf
151562306a36Sopenharmony_ci#define IRQ19_MCU_MODE_MASK_SFT				GENMASK(15, 12)
151662306a36Sopenharmony_ci#define IRQ18_MCU_MODE_SFT				8
151762306a36Sopenharmony_ci#define IRQ18_MCU_MODE_MASK				0xf
151862306a36Sopenharmony_ci#define IRQ18_MCU_MODE_MASK_SFT				GENMASK(11, 8)
151962306a36Sopenharmony_ci#define IRQ17_MCU_MODE_SFT				4
152062306a36Sopenharmony_ci#define IRQ17_MCU_MODE_MASK				0xf
152162306a36Sopenharmony_ci#define IRQ17_MCU_MODE_MASK_SFT				GENMASK(7, 4)
152262306a36Sopenharmony_ci#define IRQ16_MCU_MODE_SFT				0
152362306a36Sopenharmony_ci#define IRQ16_MCU_MODE_MASK				0xf
152462306a36Sopenharmony_ci#define IRQ16_MCU_MODE_MASK_SFT				GENMASK(3, 0)
152562306a36Sopenharmony_ci
152662306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON4 */
152762306a36Sopenharmony_ci#define IRQ26_MCU_MODE_SFT				8
152862306a36Sopenharmony_ci#define IRQ26_MCU_MODE_MASK				0xf
152962306a36Sopenharmony_ci#define IRQ26_MCU_MODE_MASK_SFT				GENMASK(11, 8)
153062306a36Sopenharmony_ci#define IRQ25_MCU_MODE_SFT				4
153162306a36Sopenharmony_ci#define IRQ25_MCU_MODE_MASK				0xf
153262306a36Sopenharmony_ci#define IRQ25_MCU_MODE_MASK_SFT				GENMASK(7, 4)
153362306a36Sopenharmony_ci#define IRQ24_MCU_MODE_SFT				0
153462306a36Sopenharmony_ci#define IRQ24_MCU_MODE_MASK				0xf
153562306a36Sopenharmony_ci#define IRQ24_MCU_MODE_MASK_SFT				GENMASK(3, 0)
153662306a36Sopenharmony_ci
153762306a36Sopenharmony_ci/* AFE_IRQ_MCU_CLR */
153862306a36Sopenharmony_ci#define IRQ31_MCU_CLR_SFT				31
153962306a36Sopenharmony_ci#define IRQ31_MCU_CLR_MASK_SFT				BIT(31)
154062306a36Sopenharmony_ci#define IRQ26_MCU_CLR_SFT				26
154162306a36Sopenharmony_ci#define IRQ26_MCU_CLR_MASK_SFT				BIT(26)
154262306a36Sopenharmony_ci#define IRQ25_MCU_CLR_SFT				25
154362306a36Sopenharmony_ci#define IRQ25_MCU_CLR_MASK_SFT				BIT(25)
154462306a36Sopenharmony_ci#define IRQ24_MCU_CLR_SFT				24
154562306a36Sopenharmony_ci#define IRQ24_MCU_CLR_MASK_SFT				BIT(24)
154662306a36Sopenharmony_ci#define IRQ23_MCU_CLR_SFT				23
154762306a36Sopenharmony_ci#define IRQ23_MCU_CLR_MASK_SFT				BIT(23)
154862306a36Sopenharmony_ci#define IRQ22_MCU_CLR_SFT				22
154962306a36Sopenharmony_ci#define IRQ22_MCU_CLR_MASK_SFT				BIT(22)
155062306a36Sopenharmony_ci#define IRQ21_MCU_CLR_SFT				21
155162306a36Sopenharmony_ci#define IRQ21_MCU_CLR_MASK_SFT				BIT(21)
155262306a36Sopenharmony_ci#define IRQ20_MCU_CLR_SFT				20
155362306a36Sopenharmony_ci#define IRQ20_MCU_CLR_MASK_SFT				BIT(20)
155462306a36Sopenharmony_ci#define IRQ19_MCU_CLR_SFT				19
155562306a36Sopenharmony_ci#define IRQ19_MCU_CLR_MASK_SFT				BIT(19)
155662306a36Sopenharmony_ci#define IRQ18_MCU_CLR_SFT				18
155762306a36Sopenharmony_ci#define IRQ18_MCU_CLR_MASK_SFT				BIT(18)
155862306a36Sopenharmony_ci#define IRQ17_MCU_CLR_SFT				17
155962306a36Sopenharmony_ci#define IRQ17_MCU_CLR_MASK_SFT				BIT(17)
156062306a36Sopenharmony_ci#define IRQ16_MCU_CLR_SFT				16
156162306a36Sopenharmony_ci#define IRQ16_MCU_CLR_MASK_SFT				BIT(16)
156262306a36Sopenharmony_ci#define IRQ15_MCU_CLR_SFT				15
156362306a36Sopenharmony_ci#define IRQ15_MCU_CLR_MASK_SFT				BIT(15)
156462306a36Sopenharmony_ci#define IRQ14_MCU_CLR_SFT				14
156562306a36Sopenharmony_ci#define IRQ14_MCU_CLR_MASK_SFT				BIT(14)
156662306a36Sopenharmony_ci#define IRQ13_MCU_CLR_SFT				13
156762306a36Sopenharmony_ci#define IRQ13_MCU_CLR_MASK_SFT				BIT(13)
156862306a36Sopenharmony_ci#define IRQ12_MCU_CLR_SFT				12
156962306a36Sopenharmony_ci#define IRQ12_MCU_CLR_MASK_SFT				BIT(12)
157062306a36Sopenharmony_ci#define IRQ11_MCU_CLR_SFT				11
157162306a36Sopenharmony_ci#define IRQ11_MCU_CLR_MASK_SFT				BIT(11)
157262306a36Sopenharmony_ci#define IRQ10_MCU_CLR_SFT				10
157362306a36Sopenharmony_ci#define IRQ10_MCU_CLR_MASK_SFT				BIT(10)
157462306a36Sopenharmony_ci#define IRQ9_MCU_CLR_SFT				9
157562306a36Sopenharmony_ci#define IRQ9_MCU_CLR_MASK_SFT				BIT(9)
157662306a36Sopenharmony_ci#define IRQ8_MCU_CLR_SFT				8
157762306a36Sopenharmony_ci#define IRQ8_MCU_CLR_MASK_SFT				BIT(8)
157862306a36Sopenharmony_ci#define IRQ7_MCU_CLR_SFT				7
157962306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK_SFT				BIT(7)
158062306a36Sopenharmony_ci#define IRQ6_MCU_CLR_SFT				6
158162306a36Sopenharmony_ci#define IRQ6_MCU_CLR_MASK_SFT				BIT(6)
158262306a36Sopenharmony_ci#define IRQ5_MCU_CLR_SFT				5
158362306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK_SFT				BIT(5)
158462306a36Sopenharmony_ci#define IRQ4_MCU_CLR_SFT				4
158562306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK_SFT				BIT(4)
158662306a36Sopenharmony_ci#define IRQ3_MCU_CLR_SFT				3
158762306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK_SFT				BIT(3)
158862306a36Sopenharmony_ci#define IRQ2_MCU_CLR_SFT				2
158962306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK_SFT				BIT(2)
159062306a36Sopenharmony_ci#define IRQ1_MCU_CLR_SFT				1
159162306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK_SFT				BIT(1)
159262306a36Sopenharmony_ci#define IRQ0_MCU_CLR_SFT				0
159362306a36Sopenharmony_ci#define IRQ0_MCU_CLR_MASK_SFT				BIT(0)
159462306a36Sopenharmony_ci
159562306a36Sopenharmony_ci/* AFE_IRQ_MCU_EN */
159662306a36Sopenharmony_ci#define IRQ31_MCU_EN_SFT				31
159762306a36Sopenharmony_ci#define IRQ30_MCU_EN_SFT				30
159862306a36Sopenharmony_ci#define IRQ29_MCU_EN_SFT				29
159962306a36Sopenharmony_ci#define IRQ28_MCU_EN_SFT				28
160062306a36Sopenharmony_ci#define IRQ27_MCU_EN_SFT				27
160162306a36Sopenharmony_ci#define IRQ26_MCU_EN_SFT				26
160262306a36Sopenharmony_ci#define IRQ25_MCU_EN_SFT				25
160362306a36Sopenharmony_ci#define IRQ24_MCU_EN_SFT				24
160462306a36Sopenharmony_ci#define IRQ23_MCU_EN_SFT				23
160562306a36Sopenharmony_ci#define IRQ22_MCU_EN_SFT				22
160662306a36Sopenharmony_ci#define IRQ21_MCU_EN_SFT				21
160762306a36Sopenharmony_ci#define IRQ20_MCU_EN_SFT				20
160862306a36Sopenharmony_ci#define IRQ19_MCU_EN_SFT				19
160962306a36Sopenharmony_ci#define IRQ18_MCU_EN_SFT				18
161062306a36Sopenharmony_ci#define IRQ17_MCU_EN_SFT				17
161162306a36Sopenharmony_ci#define IRQ16_MCU_EN_SFT				16
161262306a36Sopenharmony_ci#define IRQ15_MCU_EN_SFT				15
161362306a36Sopenharmony_ci#define IRQ14_MCU_EN_SFT				14
161462306a36Sopenharmony_ci#define IRQ13_MCU_EN_SFT				13
161562306a36Sopenharmony_ci#define IRQ12_MCU_EN_SFT				12
161662306a36Sopenharmony_ci#define IRQ11_MCU_EN_SFT				11
161762306a36Sopenharmony_ci#define IRQ10_MCU_EN_SFT				10
161862306a36Sopenharmony_ci#define IRQ9_MCU_EN_SFT					9
161962306a36Sopenharmony_ci#define IRQ8_MCU_EN_SFT					8
162062306a36Sopenharmony_ci#define IRQ7_MCU_EN_SFT					7
162162306a36Sopenharmony_ci#define IRQ6_MCU_EN_SFT					6
162262306a36Sopenharmony_ci#define IRQ5_MCU_EN_SFT					5
162362306a36Sopenharmony_ci#define IRQ4_MCU_EN_SFT					4
162462306a36Sopenharmony_ci#define IRQ3_MCU_EN_SFT					3
162562306a36Sopenharmony_ci#define IRQ2_MCU_EN_SFT					2
162662306a36Sopenharmony_ci#define IRQ1_MCU_EN_SFT					1
162762306a36Sopenharmony_ci#define IRQ0_MCU_EN_SFT					0
162862306a36Sopenharmony_ci
162962306a36Sopenharmony_ci/* AFE_IRQ_MCU_SCP_EN */
163062306a36Sopenharmony_ci#define IRQ31_MCU_SCP_EN_SFT				31
163162306a36Sopenharmony_ci#define IRQ30_MCU_SCP_EN_SFT				30
163262306a36Sopenharmony_ci#define IRQ29_MCU_SCP_EN_SFT				29
163362306a36Sopenharmony_ci#define IRQ28_MCU_SCP_EN_SFT				28
163462306a36Sopenharmony_ci#define IRQ27_MCU_SCP_EN_SFT				27
163562306a36Sopenharmony_ci#define IRQ26_MCU_SCP_EN_SFT				26
163662306a36Sopenharmony_ci#define IRQ25_MCU_SCP_EN_SFT				25
163762306a36Sopenharmony_ci#define IRQ24_MCU_SCP_EN_SFT				24
163862306a36Sopenharmony_ci#define IRQ23_MCU_SCP_EN_SFT				23
163962306a36Sopenharmony_ci#define IRQ22_MCU_SCP_EN_SFT				22
164062306a36Sopenharmony_ci#define IRQ21_MCU_SCP_EN_SFT				21
164162306a36Sopenharmony_ci#define IRQ20_MCU_SCP_EN_SFT				20
164262306a36Sopenharmony_ci#define IRQ19_MCU_SCP_EN_SFT				19
164362306a36Sopenharmony_ci#define IRQ18_MCU_SCP_EN_SFT				18
164462306a36Sopenharmony_ci#define IRQ17_MCU_SCP_EN_SFT				17
164562306a36Sopenharmony_ci#define IRQ16_MCU_SCP_EN_SFT				16
164662306a36Sopenharmony_ci#define IRQ15_MCU_SCP_EN_SFT				15
164762306a36Sopenharmony_ci#define IRQ14_MCU_SCP_EN_SFT				14
164862306a36Sopenharmony_ci#define IRQ13_MCU_SCP_EN_SFT				13
164962306a36Sopenharmony_ci#define IRQ12_MCU_SCP_EN_SFT				12
165062306a36Sopenharmony_ci#define IRQ11_MCU_SCP_EN_SFT				11
165162306a36Sopenharmony_ci#define IRQ10_MCU_SCP_EN_SFT				10
165262306a36Sopenharmony_ci#define IRQ9_MCU_SCP_EN_SFT				9
165362306a36Sopenharmony_ci#define IRQ8_MCU_SCP_EN_SFT				8
165462306a36Sopenharmony_ci#define IRQ7_MCU_SCP_EN_SFT				7
165562306a36Sopenharmony_ci#define IRQ6_MCU_SCP_EN_SFT				6
165662306a36Sopenharmony_ci#define IRQ5_MCU_SCP_EN_SFT				5
165762306a36Sopenharmony_ci#define IRQ4_MCU_SCP_EN_SFT				4
165862306a36Sopenharmony_ci#define IRQ3_MCU_SCP_EN_SFT				3
165962306a36Sopenharmony_ci#define IRQ2_MCU_SCP_EN_SFT				2
166062306a36Sopenharmony_ci#define IRQ1_MCU_SCP_EN_SFT				1
166162306a36Sopenharmony_ci#define IRQ0_MCU_SCP_EN_SFT				0
166262306a36Sopenharmony_ci
166362306a36Sopenharmony_ci/* AFE_IRQ_MCU_DSP_EN */
166462306a36Sopenharmony_ci#define IRQ31_MCU_DSP_EN_SFT				31
166562306a36Sopenharmony_ci#define IRQ30_MCU_DSP_EN_SFT				30
166662306a36Sopenharmony_ci#define IRQ29_MCU_DSP_EN_SFT				29
166762306a36Sopenharmony_ci#define IRQ28_MCU_DSP_EN_SFT				28
166862306a36Sopenharmony_ci#define IRQ27_MCU_DSP_EN_SFT				27
166962306a36Sopenharmony_ci#define IRQ26_MCU_DSP_EN_SFT				26
167062306a36Sopenharmony_ci#define IRQ25_MCU_DSP_EN_SFT				25
167162306a36Sopenharmony_ci#define IRQ24_MCU_DSP_EN_SFT				24
167262306a36Sopenharmony_ci#define IRQ23_MCU_DSP_EN_SFT				23
167362306a36Sopenharmony_ci#define IRQ22_MCU_DSP_EN_SFT				22
167462306a36Sopenharmony_ci#define IRQ21_MCU_DSP_EN_SFT				21
167562306a36Sopenharmony_ci#define IRQ20_MCU_DSP_EN_SFT				20
167662306a36Sopenharmony_ci#define IRQ19_MCU_DSP_EN_SFT				19
167762306a36Sopenharmony_ci#define IRQ18_MCU_DSP_EN_SFT				18
167862306a36Sopenharmony_ci#define IRQ17_MCU_DSP_EN_SFT				17
167962306a36Sopenharmony_ci#define IRQ16_MCU_DSP_EN_SFT				16
168062306a36Sopenharmony_ci#define IRQ15_MCU_DSP_EN_SFT				15
168162306a36Sopenharmony_ci#define IRQ14_MCU_DSP_EN_SFT				14
168262306a36Sopenharmony_ci#define IRQ13_MCU_DSP_EN_SFT				13
168362306a36Sopenharmony_ci#define IRQ12_MCU_DSP_EN_SFT				12
168462306a36Sopenharmony_ci#define IRQ11_MCU_DSP_EN_SFT				11
168562306a36Sopenharmony_ci#define IRQ10_MCU_DSP_EN_SFT				10
168662306a36Sopenharmony_ci#define IRQ9_MCU_DSP_EN_SFT				9
168762306a36Sopenharmony_ci#define IRQ8_MCU_DSP_EN_SFT				8
168862306a36Sopenharmony_ci#define IRQ7_MCU_DSP_EN_SFT				7
168962306a36Sopenharmony_ci#define IRQ6_MCU_DSP_EN_SFT				6
169062306a36Sopenharmony_ci#define IRQ5_MCU_DSP_EN_SFT				5
169162306a36Sopenharmony_ci#define IRQ4_MCU_DSP_EN_SFT				4
169262306a36Sopenharmony_ci#define IRQ3_MCU_DSP_EN_SFT				3
169362306a36Sopenharmony_ci#define IRQ2_MCU_DSP_EN_SFT				2
169462306a36Sopenharmony_ci#define IRQ1_MCU_DSP_EN_SFT				1
169562306a36Sopenharmony_ci#define IRQ0_MCU_DSP_EN_SFT				0
169662306a36Sopenharmony_ci
169762306a36Sopenharmony_ci/* AFE_AUD_PAD_TOP */
169862306a36Sopenharmony_ci#define AUD_PAD_TOP_MON_SFT				15
169962306a36Sopenharmony_ci#define AUD_PAD_TOP_MON_MASK_SFT			GENMASK(31, 15)
170062306a36Sopenharmony_ci#define AUD_PAD_TOP_FIFO_RSP_SFT			4
170162306a36Sopenharmony_ci#define AUD_PAD_TOP_FIFO_RSP_MASK_SFT			GENMASK(7, 4)
170262306a36Sopenharmony_ci#define RG_RX_PROTOCOL2_SFT				3
170362306a36Sopenharmony_ci#define RG_RX_PROTOCOL2_MASK_SFT			BIT(3)
170462306a36Sopenharmony_ci#define RESERVDED_01_SFT				1
170562306a36Sopenharmony_ci#define RESERVDED_01_MASK_SFT				GENMASK(2, 1)
170662306a36Sopenharmony_ci#define RG_RX_FIFO_ON_SFT				0
170762306a36Sopenharmony_ci#define RG_RX_FIFO_ON_MASK_SFT				BIT(0)
170862306a36Sopenharmony_ci
170962306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_SYNCWORD_CFG */
171062306a36Sopenharmony_ci#define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_SFT	23
171162306a36Sopenharmony_ci#define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK_SFT	BIT(23)
171262306a36Sopenharmony_ci
171362306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_RX_CFG0 */
171462306a36Sopenharmony_ci#define MTKAIF_RXIF_VOICE_MODE_SFT			20
171562306a36Sopenharmony_ci#define MTKAIF_RXIF_VOICE_MODE_MASK_SFT			GENMASK(23, 20)
171662306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_SFT			16
171762306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_MASK_SFT			BIT(16)
171862306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_BIT_SFT			8
171962306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_BIT_MASK_SFT			GENMASK(10, 8)
172062306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_SFT			4
172162306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_MASK_SFT			GENMASK(6, 4)
172262306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_MODE_SFT			0
172362306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_MODE_MASK_SFT			BIT(0)
172462306a36Sopenharmony_ci
172562306a36Sopenharmony_ci/* GENERAL_ASRC_MODE */
172662306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_SFT			12
172762306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_MASK			0xf
172862306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_MASK_SFT			GENMASK(15, 12)
172962306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_SFT			8
173062306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_MASK			0xf
173162306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_MASK_SFT			GENMASK(11, 8)
173262306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_SFT			4
173362306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_MASK			0xf
173462306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_MASK_SFT			GENMASK(7, 4)
173562306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_SFT			0
173662306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_MASK			0xf
173762306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_MASK_SFT			GENMASK(3, 0)
173862306a36Sopenharmony_ci
173962306a36Sopenharmony_ci/* GENERAL_ASRC_EN_ON */
174062306a36Sopenharmony_ci#define GENERAL2_ASRC_EN_ON_SFT				1
174162306a36Sopenharmony_ci#define GENERAL2_ASRC_EN_ON_MASK_SFT			BIT(1)
174262306a36Sopenharmony_ci#define GENERAL1_ASRC_EN_ON_SFT				0
174362306a36Sopenharmony_ci#define GENERAL1_ASRC_EN_ON_MASK_SFT			BIT(0)
174462306a36Sopenharmony_ci
174562306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON0 */
174662306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_SFT				4
174762306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_MASK_SFT			BIT(4)
174862306a36Sopenharmony_ci#define G_SRC_CHSET_ON_SFT				2
174962306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK_SFT				BIT(2)
175062306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_SFT			1
175162306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK_SFT			BIT(1)
175262306a36Sopenharmony_ci#define G_SRC_ASM_ON_SFT				0
175362306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK_SFT				BIT(0)
175462306a36Sopenharmony_ci
175562306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON3 */
175662306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_4_SFT				0
175762306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_4_MASK_SFT			GENMASK(23, 0)
175862306a36Sopenharmony_ci
175962306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON4 */
176062306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_5_SFT				0
176162306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_5_MASK_SFT			GENMASK(23, 0)
176262306a36Sopenharmony_ci
176362306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON13 */
176462306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_ADR_SFT			0
176562306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_ADR_MASK_SFT			GENMASK(5, 0)
176662306a36Sopenharmony_ci
176762306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON2 */
176862306a36Sopenharmony_ci#define G_SRC_CHSET_O16BIT_SFT				19
176962306a36Sopenharmony_ci#define G_SRC_CHSET_O16BIT_MASK_SFT			BIT(19)
177062306a36Sopenharmony_ci#define G_SRC_CHSET_CLR_IIR_HISTORY_SFT			17
177162306a36Sopenharmony_ci#define G_SRC_CHSET_CLR_IIR_HISTORY_MASK_SFT		BIT(17)
177262306a36Sopenharmony_ci#define G_SRC_CHSET_IS_MONO_SFT				16
177362306a36Sopenharmony_ci#define G_SRC_CHSET_IS_MONO_MASK_SFT			BIT(16)
177462306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_EN_SFT				11
177562306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_EN_MASK_SFT			BIT(11)
177662306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_STAGE_SFT			8
177762306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_STAGE_MASK_SFT			GENMASK(10, 8)
177862306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_RU_SFT			5
177962306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_RU_MASK_SFT			BIT(5)
178062306a36Sopenharmony_ci#define G_SRC_CHSET_ON_SFT				2
178162306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK_SFT				BIT(2)
178262306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_SFT			1
178362306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK_SFT			BIT(1)
178462306a36Sopenharmony_ci#define G_SRC_ASM_ON_SFT				0
178562306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK_SFT				BIT(0)
178662306a36Sopenharmony_ci
178762306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_DITHER_CON */
178862306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_64TAP_EN_SFT			20
178962306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_64TAP_EN_MASK_SFT		BIT(20)
179062306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_EN_SFT			16
179162306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_EN_MASK_SFT			BIT(16)
179262306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_GAIN_SFT			0
179362306a36Sopenharmony_ci#define AFE_DL_SDM_DITHER_GAIN_MASK_SFT			GENMASK(7, 0)
179462306a36Sopenharmony_ci
179562306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_AUTO_RESET_CON */
179662306a36Sopenharmony_ci#define SDM_AUTO_RESET_TEST_ON_SFT			31
179762306a36Sopenharmony_ci#define SDM_AUTO_RESET_TEST_ON_MASK_SFT			BIT(31)
179862306a36Sopenharmony_ci#define AFE_DL_USE_NEW_2ND_SDM_SFT			28
179962306a36Sopenharmony_ci#define AFE_DL_USE_NEW_2ND_SDM_MASK_SFT			BIT(28)
180062306a36Sopenharmony_ci#define SDM_AUTO_RESET_COUNT_TH_SFT			0
180162306a36Sopenharmony_ci#define SDM_AUTO_RESET_COUNT_TH_MASK_SFT		GENMASK(23, 0)
180262306a36Sopenharmony_ci
180362306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON0 */
180462306a36Sopenharmony_ci#define CON0_CHSET_STR_CLR_SFT				4
180562306a36Sopenharmony_ci#define CON0_CHSET_STR_CLR_MASK_SFT			BIT(4)
180662306a36Sopenharmony_ci#define CON0_ASM_ON_SFT					0
180762306a36Sopenharmony_ci#define CON0_ASM_ON_MASK_SFT				BIT(0)
180862306a36Sopenharmony_ci
180962306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON5 */
181062306a36Sopenharmony_ci#define CALI_EN_SFT					0
181162306a36Sopenharmony_ci#define CALI_EN_MASK_SFT				BIT(0)
181262306a36Sopenharmony_ci
181362306a36Sopenharmony_ci/* FPGA_CFG4 */
181462306a36Sopenharmony_ci#define IRQ_COUNTER_SFT					3
181562306a36Sopenharmony_ci#define IRQ_COUNTER_MASK_SFT				GENMASK(31, 3)
181662306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_CLEAN_SFT			2
181762306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_CLEAN_MASK_SFT			BIT(2)
181862306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_PAUSE_SFT			1
181962306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_PAUSE_MASK_SFT			BIT(1)
182062306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_ON_SFT				0
182162306a36Sopenharmony_ci#define IRQ_CLK_COUNTER_ON_MASK_SFT			BIT(0)
182262306a36Sopenharmony_ci
182362306a36Sopenharmony_ci/* FPGA_CFG5 */
182462306a36Sopenharmony_ci#define WR_MSTR_ON_SFT					16
182562306a36Sopenharmony_ci#define WR_MSTR_ON_MASK_SFT				GENMASK(28, 16)
182662306a36Sopenharmony_ci#define WR_AG_SEL_SFT					0
182762306a36Sopenharmony_ci#define WR_AG_SEL_MASK_SFT				GENMASK(12, 0)
182862306a36Sopenharmony_ci
182962306a36Sopenharmony_ci/* FPGA_CFG6 */
183062306a36Sopenharmony_ci#define WR_MSTR_REQ_REAL_SFT				16
183162306a36Sopenharmony_ci#define WR_MSTR_REQ_REAL_MASK_SFT			GENMASK(28, 16)
183262306a36Sopenharmony_ci#define WR_MSTR_REQ_IN_SFT				0
183362306a36Sopenharmony_ci#define WR_MSTR_REQ_IN_MASK_SFT				GENMASK(12, 0)
183462306a36Sopenharmony_ci
183562306a36Sopenharmony_ci/* FPGA_CFG7 */
183662306a36Sopenharmony_ci#define MEM1_WDATA_MON0_SFT				0
183762306a36Sopenharmony_ci#define MEM1_WDATA_MON0_MASK_SFT			GENMASK(31, 0)
183862306a36Sopenharmony_ci
183962306a36Sopenharmony_ci/* FPGA_CFG8 */
184062306a36Sopenharmony_ci#define MEM1_WDATA_MON1_SFT				0
184162306a36Sopenharmony_ci#define MEM1_WDATA_MON1_MASK_SFT			GENMASK(31, 0)
184262306a36Sopenharmony_ci
184362306a36Sopenharmony_ci/* FPGA_CFG9 */
184462306a36Sopenharmony_ci#define MEM_WE_SFT					31
184562306a36Sopenharmony_ci#define MEM_WE_MASK_SFT					BIT(31)
184662306a36Sopenharmony_ci#define AFE_HREADY_SFT					30
184762306a36Sopenharmony_ci#define AFE_HREADY_MASK_SFT				BIT(30)
184862306a36Sopenharmony_ci#define MEM_WR_REQ_SFT					29
184962306a36Sopenharmony_ci#define MEM_WR_REQ_MASK_SFT				BIT(29)
185062306a36Sopenharmony_ci#define WR_AG_REG_MON_SFT				16
185162306a36Sopenharmony_ci#define WR_AG_REG_MON_MASK_SFT				GENMASK(28, 16)
185262306a36Sopenharmony_ci#define HCLK_CK_SFT					15
185362306a36Sopenharmony_ci#define HCLK_CK_MASK_SFT				BIT(15)
185462306a36Sopenharmony_ci#define MEM_RD_REQ_SFT					14
185562306a36Sopenharmony_ci#define MEM_RD_REQ_MASK_SFT				BIT(14)
185662306a36Sopenharmony_ci#define RD_AG_REQ_MON_SFT				0
185762306a36Sopenharmony_ci#define RD_AG_REQ_MON_MASK_SFT				GENMASK(13, 0)
185862306a36Sopenharmony_ci
185962306a36Sopenharmony_ci/* FPGA_CFG10 */
186062306a36Sopenharmony_ci#define MEM_BYTE_0_SFT					0
186162306a36Sopenharmony_ci#define MEM_BYTE_0_MASK_SFT				GENMASK(31, 0)
186262306a36Sopenharmony_ci
186362306a36Sopenharmony_ci/* FPGA_CFG11 */
186462306a36Sopenharmony_ci#define MEM_BYTE_1_SFT					0
186562306a36Sopenharmony_ci#define MEM_BYTE_1_MASK_SFT				GENMASK(31, 0)
186662306a36Sopenharmony_ci
186762306a36Sopenharmony_ci/* FPGA_CFG12 */
186862306a36Sopenharmony_ci#define RDATA_CNT_SFT					30
186962306a36Sopenharmony_ci#define RDATA_CNT_MASK_SFT				GENMASK(31, 30)
187062306a36Sopenharmony_ci#define MS2_HREADY_SFT					29
187162306a36Sopenharmony_ci#define MS2_HREADY_MASK_SFT				BIT(29)
187262306a36Sopenharmony_ci#define MS1_HREADY_SFT					28
187362306a36Sopenharmony_ci#define MS1_HREADY_MASK_SFT				BIT(28)
187462306a36Sopenharmony_ci#define AG_SEL_SFT					0
187562306a36Sopenharmony_ci#define AG_SEL_MASK_SFT					GENMASK(25, 0)
187662306a36Sopenharmony_ci
187762306a36Sopenharmony_ci/* FPGA_CFG13 */
187862306a36Sopenharmony_ci#define AFE_ST_SFT					27
187962306a36Sopenharmony_ci#define AFE_ST_MASK_SFT					GENMASK(31, 27)
188062306a36Sopenharmony_ci#define AG_IN_SERVICE_SFT				0
188162306a36Sopenharmony_ci#define AG_IN_SERVICE_MASK_SFT				GENMASK(25, 0)
188262306a36Sopenharmony_ci
188362306a36Sopenharmony_ci/* ETDM_IN1_CON0 */
188462306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_ETDM_IN_EN_SFT			0
188562306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_ETDM_IN_EN_MASK_SFT			BIT(0)
188662306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SYNC_MODE_SFT				1
188762306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SYNC_MODE_MASK_SFT			BIT(1)
188862306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_LSB_FIRST_SFT				3
188962306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_LSB_FIRST_MASK_SFT			BIT(3)
189062306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SOFT_RST_SFT				4
189162306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SOFT_RST_MASK_SFT			BIT(4)
189262306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SLAVE_MODE_SFT			5
189362306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_SLAVE_MODE_MASK_SFT			BIT(5)
189462306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_FMT_SFT				6
189562306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_FMT_MASK_SFT				GENMASK(8, 6)
189662306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_LRCK_EDGE_SEL_SFT			10
189762306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_LRCK_EDGE_SEL_MASK_SFT		BIT(10)
189862306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_BIT_LENGTH_SFT			11
189962306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_BIT_LENGTH_MASK_SFT			GENMASK(15, 11)
190062306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_WORD_LENGTH_SFT			16
190162306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_WORD_LENGTH_MASK_SFT			GENMASK(20, 16)
190262306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_CH_NUM_SFT				23
190362306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_CH_NUM_MASK_SFT			GENMASK(27, 23)
190462306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_RELATCH_1X_EN_SEL_DOMAIN_SFT		28
190562306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_RELATCH_1X_EN_SEL_DOMAIN_MASK_SFT	GENMASK(31, 28)
190662306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_VALID_TOGETHER_SFT			31
190762306a36Sopenharmony_ci#define ETDM_IN1_CON0_REG_VALID_TOGETHER_MASK_SFT		BIT(31)
190862306a36Sopenharmony_ci#define ETDM_IN_CON0_CTRL_MASK					0x1f9ff9e2
190962306a36Sopenharmony_ci
191062306a36Sopenharmony_ci/* ETDM_IN1_CON1 */
191162306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_COUNT_SFT			0
191262306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_COUNT_MASK_SFT		GENMASK(4, 0)
191362306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_POINT_SFT			5
191462306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_POINT_MASK_SFT		GENMASK(9, 5)
191562306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_AUTO_OFF_SFT			10
191662306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_AUTO_OFF_MASK_SFT		BIT(10)
191762306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_BCK_AUTO_OFF_SFT			11
191862306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_BCK_AUTO_OFF_MASK_SFT			BIT(11)
191962306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_LRCK_SFT			13
192062306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_INITIAL_LRCK_MASK_SFT			BIT(13)
192162306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_RESET_SFT			15
192262306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_RESET_MASK_SFT			BIT(15)
192362306a36Sopenharmony_ci#define ETDM_IN1_CON1_PINMUX_MCLK_CTRL_OE_SFT			16
192462306a36Sopenharmony_ci#define ETDM_IN1_CON1_PINMUX_MCLK_CTRL_OE_MASK_SFT		BIT(16)
192562306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_OUTPUT_CR_EN_SFT			18
192662306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_OUTPUT_CR_EN_MASK_SFT			BIT(18)
192762306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LR_ALIGN_SFT				19
192862306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LR_ALIGN_MASK_SFT			BIT(19)
192962306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_WIDTH_SFT			20
193062306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_WIDTH_MASK_SFT			GENMASK(29, 20)
193162306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_DIRECT_INPUT_MASTER_BCK_SFT		30
193262306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_DIRECT_INPUT_MASTER_BCK_MASK_SFT	BIT(30)
193362306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_AUTO_MODE_SFT			31
193462306a36Sopenharmony_ci#define ETDM_IN1_CON1_REG_LRCK_AUTO_MODE_MASK_SFT		BIT(31)
193562306a36Sopenharmony_ci#define ETDM_IN_CON1_CTRL_MASK					0xbff10000
193662306a36Sopenharmony_ci
193762306a36Sopenharmony_ci/* ETDM_IN1_CON2 */
193862306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_POINT_SFT			0
193962306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_POINT_MASK_SFT			GENMASK(4, 0)
194062306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_GAP_SFT			5
194162306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_GAP_MASK_SFT			GENMASK(9, 5)
194262306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_CLOCK_SOURCE_SEL_SFT			10
194362306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_CLOCK_SOURCE_SEL_MASK_SFT		GENMASK(12, 10)
194462306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_AGENT_USE_ETDM_BCK_SFT		13
194562306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_AGENT_USE_ETDM_BCK_MASK_SFT		BIT(13)
194662306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_CK_EN_SEL_AUTO_SFT			14
194762306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_CK_EN_SEL_AUTO_MASK_SFT		BIT(14)
194862306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MULTI_IP_ONE_DATA_CH_NUM_SFT		15
194962306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MULTI_IP_ONE_DATA_CH_NUM_MASK_SFT	GENMASK(19, 15)
195062306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MASK_AUTO_SFT				20
195162306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MASK_AUTO_MASK_SFT			BIT(20)
195262306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MASK_NUM_SFT				21
195362306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MASK_NUM_MASK_SFT			GENMASK(25, 21)
195462306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_POINT_AUTO_SFT			26
195562306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_UPDATE_POINT_AUTO_MASK_SFT		BIT(26)
195662306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_SDATA_DELAY_0P5T_EN_SFT		27
195762306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_SDATA_DELAY_0P5T_EN_MASK_SFT		BIT(27)
195862306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_SDATA_DELAY_BCK_INV_SFT		28
195962306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_SDATA_DELAY_BCK_INV_MASK_SFT		BIT(28)
196062306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_LRCK_DELAY_0P5T_EN_SFT		29
196162306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_LRCK_DELAY_0P5T_EN_MASK_SFT		BIT(29)
196262306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_LRCK_DELAY_BCK_INV_SFT		30
196362306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_LRCK_DELAY_BCK_INV_MASK_SFT		BIT(30)
196462306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MULTI_IP_MODE_SFT			31
196562306a36Sopenharmony_ci#define ETDM_IN1_CON2_REG_MULTI_IP_MODE_MASK_SFT		BIT(31)
196662306a36Sopenharmony_ci#define ETDM_IN_CON2_CTRL_MASK					0x800f8000
196762306a36Sopenharmony_ci#define ETDM_IN_CON2_MULTI_IP_CH(x)				(((x) - 1) << 15)
196862306a36Sopenharmony_ci#define ETDM_IN_CON2_MULTI_IP_2CH_MODE				BIT(31)
196962306a36Sopenharmony_ci
197062306a36Sopenharmony_ci/* ETDM_IN1_CON3 */
197162306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_0_SFT			0
197262306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_0_MASK_SFT		BIT(0)
197362306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_1_SFT			1
197462306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_1_MASK_SFT		BIT(1)
197562306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_2_SFT			2
197662306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_2_MASK_SFT		BIT(2)
197762306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_3_SFT			3
197862306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_3_MASK_SFT		BIT(3)
197962306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_4_SFT			4
198062306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_4_MASK_SFT		BIT(4)
198162306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_5_SFT			5
198262306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_5_MASK_SFT		BIT(5)
198362306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_6_SFT			6
198462306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_6_MASK_SFT		BIT(6)
198562306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_7_SFT			7
198662306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_7_MASK_SFT		BIT(7)
198762306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_8_SFT			8
198862306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_8_MASK_SFT		BIT(8)
198962306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_9_SFT			9
199062306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_9_MASK_SFT		BIT(9)
199162306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_10_SFT			10
199262306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_10_MASK_SFT		BIT(10)
199362306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_11_SFT			11
199462306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_11_MASK_SFT		BIT(11)
199562306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_12_SFT			12
199662306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_12_MASK_SFT		BIT(12)
199762306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_13_SFT			13
199862306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_13_MASK_SFT		BIT(13)
199962306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_14_SFT			14
200062306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_14_MASK_SFT		BIT(14)
200162306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_15_SFT			15
200262306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_DISABLE_OUT_15_MASK_SFT		BIT(15)
200362306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_RJ_DATA_RIGHT_ALIGN_SFT		16
200462306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_RJ_DATA_RIGHT_ALIGN_MASK_SFT		BIT(16)
200562306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_MONITOR_SEL_SFT			17
200662306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_MONITOR_SEL_MASK_SFT			GENMASK(18, 17)
200762306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_CNT_UPPER_LIMIT_SFT			19
200862306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_CNT_UPPER_LIMIT_MASK_SFT		GENMASK(24, 19)
200962306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_COMPACT_SAMPLE_END_DIS_SFT		25
201062306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_COMPACT_SAMPLE_END_DIS_MASK_SFT	BIT(25)
201162306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_FS_TIMING_SEL_SFT			26
201262306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_FS_TIMING_SEL_MASK_SFT		GENMASK(30, 26)
201362306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_SAMPLE_END_MODE_SFT			31
201462306a36Sopenharmony_ci#define ETDM_IN1_CON3_REG_SAMPLE_END_MODE_MASK_SFT		BIT(31)
201562306a36Sopenharmony_ci#define ETDM_IN_CON3_CTRL_MASK					(0x7c000000)
201662306a36Sopenharmony_ci#define ETDM_IN_CON3_FS(x)					(((x) & 0x1f) << 26)
201762306a36Sopenharmony_ci
201862306a36Sopenharmony_ci/* ETDM_IN1_CON4 */
201962306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_MODE_SFT				0
202062306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_MODE_MASK_SFT			GENMASK(5, 0)
202162306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_REPACK_AUTO_MODE_SFT		8
202262306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_REPACK_AUTO_MODE_MASK_SFT		BIT(8)
202362306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_REPACK_WORD_LENGTH_SFT		9
202462306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_REPACK_WORD_LENGTH_MASK_SFT		GENMASK(10, 9)
202562306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_ASYNC_RESET_SFT			11
202662306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_ASYNC_RESET_MASK_SFT			BIT(11)
202762306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_CHNUM_SFT				12
202862306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_DSD_CHNUM_MASK_SFT			GENMASK(15, 12)
202962306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SLAVE_BCK_INV_SFT			16
203062306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SLAVE_BCK_INV_MASK_SFT		BIT(16)
203162306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SLAVE_LRCK_INV_SFT			17
203262306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SLAVE_LRCK_INV_MASK_SFT		BIT(17)
203362306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_BCK_INV_SFT			18
203462306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_BCK_INV_MASK_SFT		BIT(18)
203562306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_LRCK_INV_SFT			19
203662306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_LRCK_INV_MASK_SFT		BIT(19)
203762306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_RELATCH_1X_EN_SEL_SFT			20
203862306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_RELATCH_1X_EN_SEL_MASK_SFT		GENMASK(24, 20)
203962306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SAMPLE_END_POINT_SFT			25
204062306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_SAMPLE_END_POINT_MASK_SFT		GENMASK(29, 25)
204162306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_WAIT_LAST_SAMPLE_SFT			30
204262306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_WAIT_LAST_SAMPLE_MASK_SFT		BIT(30)
204362306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_BCK_FORCE_ON_SFT		31
204462306a36Sopenharmony_ci#define ETDM_IN1_CON4_REG_MASTER_BCK_FORCE_ON_MASK_SFT		BIT(31)
204562306a36Sopenharmony_ci#define ETDM_IN_CON4_CTRL_MASK					0x1ff0000
204662306a36Sopenharmony_ci#define ETDM_IN_CON4_FS(x)					(((x) & 0x1f) << 20)
204762306a36Sopenharmony_ci#define ETDM_IN_CON4_CON0_MASTER_LRCK_INV			BIT(19)
204862306a36Sopenharmony_ci#define ETDM_IN_CON4_CON0_MASTER_BCK_INV			BIT(18)
204962306a36Sopenharmony_ci#define ETDM_IN_CON4_CON0_SLAVE_LRCK_INV			BIT(17)
205062306a36Sopenharmony_ci#define ETDM_IN_CON4_CON0_SLAVE_BCK_INV				BIT(16)
205162306a36Sopenharmony_ci
205262306a36Sopenharmony_ci/* ETDM_IN1_CON5 */
205362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_0_SFT			0
205462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_0_MASK_SFT		BIT(0)
205562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_1_SFT			1
205662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_1_MASK_SFT		BIT(1)
205762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_2_SFT			2
205862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_2_MASK_SFT		BIT(2)
205962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_3_SFT			3
206062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_3_MASK_SFT		BIT(3)
206162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_4_SFT			4
206262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_4_MASK_SFT		BIT(4)
206362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_5_SFT			5
206462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_5_MASK_SFT		BIT(5)
206562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_6_SFT			6
206662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_6_MASK_SFT		BIT(6)
206762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_7_SFT			7
206862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_7_MASK_SFT		BIT(7)
206962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_8_SFT			8
207062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_8_MASK_SFT		BIT(8)
207162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_9_SFT			9
207262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_9_MASK_SFT		BIT(9)
207362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_10_SFT			10
207462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_10_MASK_SFT		BIT(10)
207562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_11_SFT			11
207662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_11_MASK_SFT		BIT(11)
207762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_12_SFT			12
207862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_12_MASK_SFT		BIT(12)
207962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_13_SFT			13
208062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_13_MASK_SFT		BIT(13)
208162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_14_SFT			14
208262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_14_MASK_SFT		BIT(14)
208362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_15_SFT			15
208462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_ODD_FLAG_EN_15_MASK_SFT		BIT(15)
208562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_0_SFT				16
208662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_0_MASK_SFT			BIT(16)
208762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_1_SFT				17
208862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_1_MASK_SFT			BIT(17)
208962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_2_SFT				18
209062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_2_MASK_SFT			BIT(18)
209162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_3_SFT				19
209262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_3_MASK_SFT			BIT(19)
209362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_4_SFT				20
209462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_4_MASK_SFT			BIT(20)
209562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_5_SFT				21
209662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_5_MASK_SFT			BIT(21)
209762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_6_SFT				22
209862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_6_MASK_SFT			BIT(22)
209962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_7_SFT				23
210062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_7_MASK_SFT			BIT(23)
210162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_8_SFT				24
210262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_8_MASK_SFT			BIT(24)
210362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_9_SFT				25
210462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_9_MASK_SFT			BIT(25)
210562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_10_SFT			26
210662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_10_MASK_SFT			BIT(26)
210762306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_11_SFT			27
210862306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_11_MASK_SFT			BIT(27)
210962306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_12_SFT			28
211062306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_12_MASK_SFT			BIT(28)
211162306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_13_SFT			29
211262306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_13_MASK_SFT			BIT(29)
211362306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_14_SFT			30
211462306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_14_MASK_SFT			BIT(30)
211562306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_15_SFT			31
211662306a36Sopenharmony_ci#define ETDM_IN1_CON5_REG_LR_SWAP_15_MASK_SFT			BIT(31)
211762306a36Sopenharmony_ci
211862306a36Sopenharmony_ci/* ETDM_IN1_CON6 */
211962306a36Sopenharmony_ci#define ETDM_IN1_CON6_LCH_DATA_REG_SFT				0
212062306a36Sopenharmony_ci#define ETDM_IN1_CON6_LCH_DATA_REG_MASK_SFT			GENMASK(31, 0)
212162306a36Sopenharmony_ci
212262306a36Sopenharmony_ci/* ETDM_IN1_CON7 */
212362306a36Sopenharmony_ci#define ETDM_IN1_CON7_RCH_DATA_REG_SFT				0
212462306a36Sopenharmony_ci#define ETDM_IN1_CON7_RCH_DATA_REG_MASK_SFT			GENMASK(31, 0)
212562306a36Sopenharmony_ci
212662306a36Sopenharmony_ci/* ETDM_IN1_CON8 */
212762306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_THRESHOLD_SFT			29
212862306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_THRESHOLD_MASK_SFT		GENMASK(30, 29)
212962306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_CK_EN_SEL_MANUAL_SFT			16
213062306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_CK_EN_SEL_MANUAL_MASK_SFT		GENMASK(25, 16)
213162306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_SW_RESET_SFT			15
213262306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_SW_RESET_MASK_SFT		BIT(15)
213362306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_RESET_SEL_SFT			14
213462306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_RESET_SEL_MASK_SFT		BIT(14)
213562306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_AUTO_RESET_DIS_SFT		9
213662306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_AUTO_RESET_DIS_MASK_SFT		BIT(9)
213762306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_ETDM_USE_AFIFO_SFT			8
213862306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_ETDM_USE_AFIFO_MASK_SFT		BIT(8)
213962306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_CLOCK_DOMAIN_SEL_SFT		5
214062306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_CLOCK_DOMAIN_SEL_MASK_SFT	GENMASK(7, 5)
214162306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_MODE_SFT			0
214262306a36Sopenharmony_ci#define ETDM_IN1_CON8_REG_AFIFO_MODE_MASK_SFT			GENMASK(4, 0)
214362306a36Sopenharmony_ci#define ETDM_IN_CON8_FS(x)					(((x) & 0x1f) << 0)
214462306a36Sopenharmony_ci#define ETDM_IN_CON8_CTRL_MASK					0x13f
214562306a36Sopenharmony_ci
214662306a36Sopenharmony_ci#define AUDIO_TOP_CON0					0x0000
214762306a36Sopenharmony_ci#define AUDIO_TOP_CON1					0x0004
214862306a36Sopenharmony_ci#define AUDIO_TOP_CON2					0x0008
214962306a36Sopenharmony_ci#define AUDIO_TOP_CON3					0x000c
215062306a36Sopenharmony_ci#define AFE_DAC_CON0					0x0010
215162306a36Sopenharmony_ci#define AFE_I2S_CON					0x0018
215262306a36Sopenharmony_ci#define AFE_CONN0					0x0020
215362306a36Sopenharmony_ci#define AFE_CONN1					0x0024
215462306a36Sopenharmony_ci#define AFE_CONN2					0x0028
215562306a36Sopenharmony_ci#define AFE_CONN3					0x002c
215662306a36Sopenharmony_ci#define AFE_CONN4					0x0030
215762306a36Sopenharmony_ci#define AFE_I2S_CON1					0x0034
215862306a36Sopenharmony_ci#define AFE_I2S_CON2					0x0038
215962306a36Sopenharmony_ci#define AFE_I2S_CON3					0x0040
216062306a36Sopenharmony_ci#define AFE_CONN5					0x0044
216162306a36Sopenharmony_ci#define AFE_CONN_24BIT					0x0048
216262306a36Sopenharmony_ci#define AFE_DL1_CON0					0x004c
216362306a36Sopenharmony_ci#define AFE_DL1_BASE_MSB				0x0050
216462306a36Sopenharmony_ci#define AFE_DL1_BASE					0x0054
216562306a36Sopenharmony_ci#define AFE_DL1_CUR_MSB					0x0058
216662306a36Sopenharmony_ci#define AFE_DL1_CUR					0x005c
216762306a36Sopenharmony_ci#define AFE_DL1_END_MSB					0x0060
216862306a36Sopenharmony_ci#define AFE_DL1_END					0x0064
216962306a36Sopenharmony_ci#define AFE_DL2_CON0					0x0068
217062306a36Sopenharmony_ci#define AFE_DL2_BASE_MSB				0x006c
217162306a36Sopenharmony_ci#define AFE_DL2_BASE					0x0070
217262306a36Sopenharmony_ci#define AFE_DL2_CUR_MSB					0x0074
217362306a36Sopenharmony_ci#define AFE_DL2_CUR					0x0078
217462306a36Sopenharmony_ci#define AFE_DL2_END_MSB					0x007c
217562306a36Sopenharmony_ci#define AFE_DL2_END					0x0080
217662306a36Sopenharmony_ci#define AFE_DL3_CON0					0x0084
217762306a36Sopenharmony_ci#define AFE_DL3_BASE_MSB				0x0088
217862306a36Sopenharmony_ci#define AFE_DL3_BASE					0x008c
217962306a36Sopenharmony_ci#define AFE_DL3_CUR_MSB					0x0090
218062306a36Sopenharmony_ci#define AFE_DL3_CUR					0x0094
218162306a36Sopenharmony_ci#define AFE_DL3_END_MSB					0x0098
218262306a36Sopenharmony_ci#define AFE_DL3_END					0x009c
218362306a36Sopenharmony_ci#define AFE_CONN6					0x00bc
218462306a36Sopenharmony_ci#define AFE_DL4_CON0					0x00cc
218562306a36Sopenharmony_ci#define AFE_DL4_BASE_MSB				0x00d0
218662306a36Sopenharmony_ci#define AFE_DL4_BASE					0x00d4
218762306a36Sopenharmony_ci#define AFE_DL4_CUR_MSB					0x00d8
218862306a36Sopenharmony_ci#define AFE_DL4_CUR					0x00dc
218962306a36Sopenharmony_ci#define AFE_DL4_END_MSB					0x00e0
219062306a36Sopenharmony_ci#define AFE_DL4_END					0x00e4
219162306a36Sopenharmony_ci#define AFE_DL12_CON0					0x00e8
219262306a36Sopenharmony_ci#define AFE_DL12_BASE_MSB				0x00ec
219362306a36Sopenharmony_ci#define AFE_DL12_BASE					0x00f0
219462306a36Sopenharmony_ci#define AFE_DL12_CUR_MSB				0x00f4
219562306a36Sopenharmony_ci#define AFE_DL12_CUR					0x00f8
219662306a36Sopenharmony_ci#define AFE_DL12_END_MSB				0x00fc
219762306a36Sopenharmony_ci#define AFE_DL12_END					0x0100
219862306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON0				0x0108
219962306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON1				0x010c
220062306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON0				0x0114
220162306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON1				0x0118
220262306a36Sopenharmony_ci#define AFE_ADDA_TOP_CON0				0x0120
220362306a36Sopenharmony_ci#define AFE_ADDA_UL_DL_CON0				0x0124
220462306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG				0x012c
220562306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON0				0x0130
220662306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON1				0x0134
220762306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON0				0x0148
220862306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON1				0x014c
220962306a36Sopenharmony_ci#define AFE_SECURE_CON0					0x0150
221062306a36Sopenharmony_ci#define AFE_SRAM_BOUND					0x0154
221162306a36Sopenharmony_ci#define AFE_SECURE_CON1					0x0158
221262306a36Sopenharmony_ci#define AFE_SECURE_CONN0				0x015c
221362306a36Sopenharmony_ci#define AFE_VUL_CON0					0x0170
221462306a36Sopenharmony_ci#define AFE_VUL_BASE_MSB				0x0174
221562306a36Sopenharmony_ci#define AFE_VUL_BASE					0x0178
221662306a36Sopenharmony_ci#define AFE_VUL_CUR_MSB					0x017c
221762306a36Sopenharmony_ci#define AFE_VUL_CUR					0x0180
221862306a36Sopenharmony_ci#define AFE_VUL_END_MSB					0x0184
221962306a36Sopenharmony_ci#define AFE_VUL_END					0x0188
222062306a36Sopenharmony_ci#define AFE_SIDETONE_DEBUG				0x01d0
222162306a36Sopenharmony_ci#define AFE_SIDETONE_MON				0x01d4
222262306a36Sopenharmony_ci#define AFE_SINEGEN_CON2				0x01dc
222362306a36Sopenharmony_ci#define AFE_SIDETONE_CON0				0x01e0
222462306a36Sopenharmony_ci#define AFE_SIDETONE_COEFF				0x01e4
222562306a36Sopenharmony_ci#define AFE_SIDETONE_CON1				0x01e8
222662306a36Sopenharmony_ci#define AFE_SIDETONE_GAIN				0x01ec
222762306a36Sopenharmony_ci#define AFE_SINEGEN_CON0				0x01f0
222862306a36Sopenharmony_ci#define AFE_TOP_CON0					0x0200
222962306a36Sopenharmony_ci#define AFE_VUL2_CON0					0x020c
223062306a36Sopenharmony_ci#define AFE_VUL2_BASE_MSB				0x0210
223162306a36Sopenharmony_ci#define AFE_VUL2_BASE					0x0214
223262306a36Sopenharmony_ci#define AFE_VUL2_CUR_MSB				0x0218
223362306a36Sopenharmony_ci#define AFE_VUL2_CUR					0x021c
223462306a36Sopenharmony_ci#define AFE_VUL2_END_MSB				0x0220
223562306a36Sopenharmony_ci#define AFE_VUL2_END					0x0224
223662306a36Sopenharmony_ci#define AFE_VUL3_CON0					0x0228
223762306a36Sopenharmony_ci#define AFE_VUL3_BASE_MSB				0x022c
223862306a36Sopenharmony_ci#define AFE_VUL3_BASE					0x0230
223962306a36Sopenharmony_ci#define AFE_VUL3_CUR_MSB				0x0234
224062306a36Sopenharmony_ci#define AFE_VUL3_CUR					0x0238
224162306a36Sopenharmony_ci#define AFE_VUL3_END_MSB				0x023c
224262306a36Sopenharmony_ci#define AFE_VUL3_END					0x0240
224362306a36Sopenharmony_ci#define AFE_BUSY					0x0244
224462306a36Sopenharmony_ci#define AFE_BUS_CFG					0x0250
224562306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON0				0x0260
224662306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON1				0x0264
224762306a36Sopenharmony_ci#define AFE_I2S_MON					0x027c
224862306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_02_01				0x0290
224962306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_04_03				0x0294
225062306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_06_05				0x0298
225162306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_08_07				0x029c
225262306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_10_09				0x02a0
225362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON1				0x02e4
225462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON2				0x02e8
225562306a36Sopenharmony_ci#define AFE_DAC_MON					0x02ec
225662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON3				0x02f0
225762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON4				0x02f4
225862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT0				0x0300
225962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT6				0x0304
226062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT8				0x0308
226162306a36Sopenharmony_ci#define AFE_IRQ_MCU_DSP2_EN				0x030c
226262306a36Sopenharmony_ci#define AFE_IRQ0_MCU_CNT_MON				0x0310
226362306a36Sopenharmony_ci#define AFE_IRQ6_MCU_CNT_MON				0x0314
226462306a36Sopenharmony_ci#define AFE_VUL4_CON0					0x0358
226562306a36Sopenharmony_ci#define AFE_VUL4_BASE_MSB				0x035c
226662306a36Sopenharmony_ci#define AFE_VUL4_BASE					0x0360
226762306a36Sopenharmony_ci#define AFE_VUL4_CUR_MSB				0x0364
226862306a36Sopenharmony_ci#define AFE_VUL4_CUR					0x0368
226962306a36Sopenharmony_ci#define AFE_VUL4_END_MSB				0x036c
227062306a36Sopenharmony_ci#define AFE_VUL4_END					0x0370
227162306a36Sopenharmony_ci#define AFE_VUL12_CON0					0x0374
227262306a36Sopenharmony_ci#define AFE_VUL12_BASE_MSB				0x0378
227362306a36Sopenharmony_ci#define AFE_VUL12_BASE					0x037c
227462306a36Sopenharmony_ci#define AFE_VUL12_CUR_MSB				0x0380
227562306a36Sopenharmony_ci#define AFE_VUL12_CUR					0x0384
227662306a36Sopenharmony_ci#define AFE_VUL12_END_MSB				0x0388
227762306a36Sopenharmony_ci#define AFE_VUL12_END					0x038c
227862306a36Sopenharmony_ci#define AFE_IRQ3_MCU_CNT_MON				0x0398
227962306a36Sopenharmony_ci#define AFE_IRQ4_MCU_CNT_MON				0x039c
228062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON0				0x03a0
228162306a36Sopenharmony_ci#define AFE_IRQ_MCU_STATUS				0x03a4
228262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CLR					0x03a8
228362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1				0x03ac
228462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2				0x03b0
228562306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN					0x03b4
228662306a36Sopenharmony_ci#define AFE_IRQ_MCU_MON2				0x03b8
228762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5				0x03bc
228862306a36Sopenharmony_ci#define AFE_IRQ1_MCU_CNT_MON				0x03c0
228962306a36Sopenharmony_ci#define AFE_IRQ2_MCU_CNT_MON				0x03c4
229062306a36Sopenharmony_ci#define AFE_IRQ5_MCU_CNT_MON				0x03cc
229162306a36Sopenharmony_ci#define AFE_IRQ_MCU_DSP_EN				0x03d0
229262306a36Sopenharmony_ci#define AFE_IRQ_MCU_SCP_EN				0x03d4
229362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7				0x03dc
229462306a36Sopenharmony_ci#define AFE_IRQ7_MCU_CNT_MON				0x03e0
229562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3				0x03e4
229662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4				0x03e8
229762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT11				0x03ec
229862306a36Sopenharmony_ci#define AFE_APLL1_TUNER_CFG				0x03f0
229962306a36Sopenharmony_ci#define AFE_APLL2_TUNER_CFG				0x03f4
230062306a36Sopenharmony_ci#define AFE_IRQ_MCU_MISS_CLR				0x03f8
230162306a36Sopenharmony_ci#define AFE_CONN33					0x0408
230262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT12				0x040c
230362306a36Sopenharmony_ci#define AFE_GAIN1_CON0					0x0410
230462306a36Sopenharmony_ci#define AFE_GAIN1_CON1					0x0414
230562306a36Sopenharmony_ci#define AFE_GAIN1_CON2					0x0418
230662306a36Sopenharmony_ci#define AFE_GAIN1_CON3					0x041c
230762306a36Sopenharmony_ci#define AFE_CONN7					0x0420
230862306a36Sopenharmony_ci#define AFE_GAIN1_CUR					0x0424
230962306a36Sopenharmony_ci#define AFE_GAIN2_CON0					0x0428
231062306a36Sopenharmony_ci#define AFE_GAIN2_CON1					0x042c
231162306a36Sopenharmony_ci#define AFE_GAIN2_CON2					0x0430
231262306a36Sopenharmony_ci#define AFE_GAIN2_CON3					0x0434
231362306a36Sopenharmony_ci#define AFE_CONN8					0x0438
231462306a36Sopenharmony_ci#define AFE_GAIN2_CUR					0x043c
231562306a36Sopenharmony_ci#define AFE_CONN9					0x0440
231662306a36Sopenharmony_ci#define AFE_CONN10					0x0444
231762306a36Sopenharmony_ci#define AFE_CONN11					0x0448
231862306a36Sopenharmony_ci#define AFE_CONN12					0x044c
231962306a36Sopenharmony_ci#define AFE_CONN13					0x0450
232062306a36Sopenharmony_ci#define AFE_CONN14					0x0454
232162306a36Sopenharmony_ci#define AFE_CONN15					0x0458
232262306a36Sopenharmony_ci#define AFE_CONN16					0x045c
232362306a36Sopenharmony_ci#define AFE_CONN17					0x0460
232462306a36Sopenharmony_ci#define AFE_CONN18					0x0464
232562306a36Sopenharmony_ci#define AFE_CONN19					0x0468
232662306a36Sopenharmony_ci#define AFE_CONN20					0x046c
232762306a36Sopenharmony_ci#define AFE_CONN21					0x0470
232862306a36Sopenharmony_ci#define AFE_CONN22					0x0474
232962306a36Sopenharmony_ci#define AFE_CONN23					0x0478
233062306a36Sopenharmony_ci#define AFE_CONN24					0x047c
233162306a36Sopenharmony_ci#define AFE_CONN_RS					0x0494
233262306a36Sopenharmony_ci#define AFE_CONN_DI					0x0498
233362306a36Sopenharmony_ci#define AFE_CONN25					0x04b0
233462306a36Sopenharmony_ci#define AFE_CONN26					0x04b4
233562306a36Sopenharmony_ci#define AFE_CONN27					0x04b8
233662306a36Sopenharmony_ci#define AFE_CONN28					0x04bc
233762306a36Sopenharmony_ci#define AFE_CONN29					0x04c0
233862306a36Sopenharmony_ci#define AFE_CONN30					0x04c4
233962306a36Sopenharmony_ci#define AFE_CONN31					0x04c8
234062306a36Sopenharmony_ci#define AFE_CONN32					0x04cc
234162306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON1				0x04f4
234262306a36Sopenharmony_ci#define AFE_CONN56					0x0500
234362306a36Sopenharmony_ci#define AFE_CONN57					0x0504
234462306a36Sopenharmony_ci#define AFE_CONN58					0x0508
234562306a36Sopenharmony_ci#define AFE_CONN59					0x050c
234662306a36Sopenharmony_ci#define AFE_CONN56_1					0x0510
234762306a36Sopenharmony_ci#define AFE_CONN57_1					0x0514
234862306a36Sopenharmony_ci#define AFE_CONN58_1					0x0518
234962306a36Sopenharmony_ci#define AFE_CONN59_1					0x051c
235062306a36Sopenharmony_ci#define PCM_INTF_CON1					0x0530
235162306a36Sopenharmony_ci#define PCM_INTF_CON2					0x0538
235262306a36Sopenharmony_ci#define PCM2_INTF_CON					0x053c
235362306a36Sopenharmony_ci#define AFE_CM1_CON					0x0550
235462306a36Sopenharmony_ci#define AFE_CONN34					0x0580
235562306a36Sopenharmony_ci#define FPGA_CFG0					0x05b0
235662306a36Sopenharmony_ci#define FPGA_CFG1					0x05b4
235762306a36Sopenharmony_ci#define FPGA_CFG2					0x05c0
235862306a36Sopenharmony_ci#define FPGA_CFG3					0x05c4
235962306a36Sopenharmony_ci#define AUDIO_TOP_DBG_CON				0x05c8
236062306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON0				0x05cc
236162306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON1				0x05d0
236262306a36Sopenharmony_ci#define AFE_IRQ8_MCU_CNT_MON				0x05e4
236362306a36Sopenharmony_ci#define AFE_IRQ11_MCU_CNT_MON				0x05e8
236462306a36Sopenharmony_ci#define AFE_IRQ12_MCU_CNT_MON				0x05ec
236562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT9				0x0600
236662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT10				0x0604
236762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT13				0x0608
236862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT14				0x060c
236962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT15				0x0610
237062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT16				0x0614
237162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT17				0x0618
237262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT18				0x061c
237362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT19				0x0620
237462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT20				0x0624
237562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT21				0x0628
237662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT22				0x062c
237762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT23				0x0630
237862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT24				0x0634
237962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT25				0x0638
238062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT26				0x063c
238162306a36Sopenharmony_ci#define AFE_IRQ9_MCU_CNT_MON				0x0660
238262306a36Sopenharmony_ci#define AFE_IRQ10_MCU_CNT_MON				0x0664
238362306a36Sopenharmony_ci#define AFE_IRQ13_MCU_CNT_MON				0x0668
238462306a36Sopenharmony_ci#define AFE_IRQ14_MCU_CNT_MON				0x066c
238562306a36Sopenharmony_ci#define AFE_IRQ15_MCU_CNT_MON				0x0670
238662306a36Sopenharmony_ci#define AFE_IRQ16_MCU_CNT_MON				0x0674
238762306a36Sopenharmony_ci#define AFE_IRQ17_MCU_CNT_MON				0x0678
238862306a36Sopenharmony_ci#define AFE_IRQ18_MCU_CNT_MON				0x067c
238962306a36Sopenharmony_ci#define AFE_IRQ19_MCU_CNT_MON				0x0680
239062306a36Sopenharmony_ci#define AFE_IRQ20_MCU_CNT_MON				0x0684
239162306a36Sopenharmony_ci#define AFE_IRQ21_MCU_CNT_MON				0x0688
239262306a36Sopenharmony_ci#define AFE_IRQ22_MCU_CNT_MON				0x068c
239362306a36Sopenharmony_ci#define AFE_IRQ23_MCU_CNT_MON				0x0690
239462306a36Sopenharmony_ci#define AFE_IRQ24_MCU_CNT_MON				0x0694
239562306a36Sopenharmony_ci#define AFE_IRQ25_MCU_CNT_MON				0x0698
239662306a36Sopenharmony_ci#define AFE_IRQ26_MCU_CNT_MON				0x069c
239762306a36Sopenharmony_ci#define AFE_IRQ31_MCU_CNT_MON				0x06a0
239862306a36Sopenharmony_ci#define AFE_GENERAL_REG0				0x0800
239962306a36Sopenharmony_ci#define AFE_GENERAL_REG1				0x0804
240062306a36Sopenharmony_ci#define AFE_GENERAL_REG2				0x0808
240162306a36Sopenharmony_ci#define AFE_GENERAL_REG3				0x080c
240262306a36Sopenharmony_ci#define AFE_GENERAL_REG4				0x0810
240362306a36Sopenharmony_ci#define AFE_GENERAL_REG5				0x0814
240462306a36Sopenharmony_ci#define AFE_GENERAL_REG6				0x0818
240562306a36Sopenharmony_ci#define AFE_GENERAL_REG7				0x081c
240662306a36Sopenharmony_ci#define AFE_GENERAL_REG8				0x0820
240762306a36Sopenharmony_ci#define AFE_GENERAL_REG9				0x0824
240862306a36Sopenharmony_ci#define AFE_GENERAL_REG10				0x0828
240962306a36Sopenharmony_ci#define AFE_GENERAL_REG11				0x082c
241062306a36Sopenharmony_ci#define AFE_GENERAL_REG12				0x0830
241162306a36Sopenharmony_ci#define AFE_GENERAL_REG13				0x0834
241262306a36Sopenharmony_ci#define AFE_GENERAL_REG14				0x0838
241362306a36Sopenharmony_ci#define AFE_GENERAL_REG15				0x083c
241462306a36Sopenharmony_ci#define AFE_CBIP_CFG0					0x0840
241562306a36Sopenharmony_ci#define AFE_CBIP_MON0					0x0844
241662306a36Sopenharmony_ci#define AFE_CBIP_SLV_MUX_MON0				0x0848
241762306a36Sopenharmony_ci#define AFE_CBIP_SLV_DECODER_MON0			0x084c
241862306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_MON0				0x0854
241962306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_MON1				0x0858
242062306a36Sopenharmony_ci#define AFE_AWB_CON0					0x085c
242162306a36Sopenharmony_ci#define AFE_AWB_BASE_MSB				0x0860
242262306a36Sopenharmony_ci#define AFE_AWB_BASE					0x0864
242362306a36Sopenharmony_ci#define AFE_AWB_CUR_MSB					0x0868
242462306a36Sopenharmony_ci#define AFE_AWB_CUR					0x086c
242562306a36Sopenharmony_ci#define AFE_AWB_END_MSB					0x0870
242662306a36Sopenharmony_ci#define AFE_AWB_END					0x0874
242762306a36Sopenharmony_ci#define AFE_AWB2_CON0					0x0878
242862306a36Sopenharmony_ci#define AFE_AWB2_BASE_MSB				0x087c
242962306a36Sopenharmony_ci#define AFE_AWB2_BASE					0x0880
243062306a36Sopenharmony_ci#define AFE_AWB2_CUR_MSB				0x0884
243162306a36Sopenharmony_ci#define AFE_AWB2_CUR					0x0888
243262306a36Sopenharmony_ci#define AFE_AWB2_END_MSB				0x088c
243362306a36Sopenharmony_ci#define AFE_AWB2_END					0x0890
243462306a36Sopenharmony_ci#define AFE_DAI_CON0					0x0894
243562306a36Sopenharmony_ci#define AFE_DAI_BASE_MSB				0x0898
243662306a36Sopenharmony_ci#define AFE_DAI_BASE					0x089c
243762306a36Sopenharmony_ci#define AFE_DAI_CUR_MSB					0x08a0
243862306a36Sopenharmony_ci#define AFE_DAI_CUR					0x08a4
243962306a36Sopenharmony_ci#define AFE_DAI_END_MSB					0x08a8
244062306a36Sopenharmony_ci#define AFE_DAI_END					0x08ac
244162306a36Sopenharmony_ci#define AFE_DAI2_CON0					0x08b0
244262306a36Sopenharmony_ci#define AFE_DAI2_BASE_MSB				0x08b4
244362306a36Sopenharmony_ci#define AFE_DAI2_BASE					0x08b8
244462306a36Sopenharmony_ci#define AFE_DAI2_CUR_MSB				0x08bc
244562306a36Sopenharmony_ci#define AFE_DAI2_CUR					0x08c0
244662306a36Sopenharmony_ci#define AFE_DAI2_END_MSB				0x08c4
244762306a36Sopenharmony_ci#define AFE_DAI2_END					0x08c8
244862306a36Sopenharmony_ci#define AFE_MEMIF_CON0					0x08cc
244962306a36Sopenharmony_ci#define AFE_CONN0_1					0x0900
245062306a36Sopenharmony_ci#define AFE_CONN1_1					0x0904
245162306a36Sopenharmony_ci#define AFE_CONN2_1					0x0908
245262306a36Sopenharmony_ci#define AFE_CONN3_1					0x090c
245362306a36Sopenharmony_ci#define AFE_CONN4_1					0x0910
245462306a36Sopenharmony_ci#define AFE_CONN5_1					0x0914
245562306a36Sopenharmony_ci#define AFE_CONN6_1					0x0918
245662306a36Sopenharmony_ci#define AFE_CONN7_1					0x091c
245762306a36Sopenharmony_ci#define AFE_CONN8_1					0x0920
245862306a36Sopenharmony_ci#define AFE_CONN9_1					0x0924
245962306a36Sopenharmony_ci#define AFE_CONN10_1					0x0928
246062306a36Sopenharmony_ci#define AFE_CONN11_1					0x092c
246162306a36Sopenharmony_ci#define AFE_CONN12_1					0x0930
246262306a36Sopenharmony_ci#define AFE_CONN13_1					0x0934
246362306a36Sopenharmony_ci#define AFE_CONN14_1					0x0938
246462306a36Sopenharmony_ci#define AFE_CONN15_1					0x093c
246562306a36Sopenharmony_ci#define AFE_CONN16_1					0x0940
246662306a36Sopenharmony_ci#define AFE_CONN17_1					0x0944
246762306a36Sopenharmony_ci#define AFE_CONN18_1					0x0948
246862306a36Sopenharmony_ci#define AFE_CONN19_1					0x094c
246962306a36Sopenharmony_ci#define AFE_CONN20_1					0x0950
247062306a36Sopenharmony_ci#define AFE_CONN21_1					0x0954
247162306a36Sopenharmony_ci#define AFE_CONN22_1					0x0958
247262306a36Sopenharmony_ci#define AFE_CONN23_1					0x095c
247362306a36Sopenharmony_ci#define AFE_CONN24_1					0x0960
247462306a36Sopenharmony_ci#define AFE_CONN25_1					0x0964
247562306a36Sopenharmony_ci#define AFE_CONN26_1					0x0968
247662306a36Sopenharmony_ci#define AFE_CONN27_1					0x096c
247762306a36Sopenharmony_ci#define AFE_CONN28_1					0x0970
247862306a36Sopenharmony_ci#define AFE_CONN29_1					0x0974
247962306a36Sopenharmony_ci#define AFE_CONN30_1					0x0978
248062306a36Sopenharmony_ci#define AFE_CONN31_1					0x097c
248162306a36Sopenharmony_ci#define AFE_CONN32_1					0x0980
248262306a36Sopenharmony_ci#define AFE_CONN33_1					0x0984
248362306a36Sopenharmony_ci#define AFE_CONN34_1					0x0988
248462306a36Sopenharmony_ci#define AFE_CONN_RS_1					0x098c
248562306a36Sopenharmony_ci#define AFE_CONN_DI_1					0x0990
248662306a36Sopenharmony_ci#define AFE_CONN_24BIT_1				0x0994
248762306a36Sopenharmony_ci#define AFE_CONN_REG					0x0998
248862306a36Sopenharmony_ci#define AFE_CONN35					0x09a0
248962306a36Sopenharmony_ci#define AFE_CONN36					0x09a4
249062306a36Sopenharmony_ci#define AFE_CONN37					0x09a8
249162306a36Sopenharmony_ci#define AFE_CONN38					0x09ac
249262306a36Sopenharmony_ci#define AFE_CONN35_1					0x09b0
249362306a36Sopenharmony_ci#define AFE_CONN36_1					0x09b4
249462306a36Sopenharmony_ci#define AFE_CONN37_1					0x09b8
249562306a36Sopenharmony_ci#define AFE_CONN38_1					0x09bc
249662306a36Sopenharmony_ci#define AFE_CONN39					0x09c0
249762306a36Sopenharmony_ci#define AFE_CONN40					0x09c4
249862306a36Sopenharmony_ci#define AFE_CONN41					0x09c8
249962306a36Sopenharmony_ci#define AFE_CONN42					0x09cc
250062306a36Sopenharmony_ci#define AFE_CONN39_1					0x09e0
250162306a36Sopenharmony_ci#define AFE_CONN40_1					0x09e4
250262306a36Sopenharmony_ci#define AFE_CONN41_1					0x09e8
250362306a36Sopenharmony_ci#define AFE_CONN42_1					0x09ec
250462306a36Sopenharmony_ci#define AFE_I2S_CON4					0x09f8
250562306a36Sopenharmony_ci#define AFE_CONN60					0x0a64
250662306a36Sopenharmony_ci#define AFE_CONN61					0x0a68
250762306a36Sopenharmony_ci#define AFE_CONN62					0x0a6c
250862306a36Sopenharmony_ci#define AFE_CONN63					0x0a70
250962306a36Sopenharmony_ci#define AFE_CONN64					0x0a74
251062306a36Sopenharmony_ci#define AFE_CONN65					0x0a78
251162306a36Sopenharmony_ci#define AFE_CONN66					0x0a7c
251262306a36Sopenharmony_ci#define AFE_ADDA6_TOP_CON0				0x0a80
251362306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_CON0				0x0a84
251462306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_CON1				0x0a88
251562306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG				0x0a8c
251662306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG_MON0			0x0a90
251762306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_02_01			0x0aa0
251862306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_04_03			0x0aa4
251962306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_06_05			0x0aa8
252062306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_08_07			0x0aac
252162306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_10_09			0x0ab0
252262306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_12_11			0x0ab4
252362306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_14_13			0x0ab8
252462306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_16_15			0x0abc
252562306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_18_17			0x0ac0
252662306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_20_19			0x0ac4
252762306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_22_21			0x0ac8
252862306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_24_23			0x0acc
252962306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_26_25			0x0ad0
253062306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_28_27			0x0ad4
253162306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_30_29			0x0ad8
253262306a36Sopenharmony_ci#define AFE_ADD6A_UL_SRC_MON0				0x0ae4
253362306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_MON1				0x0ae8
253462306a36Sopenharmony_ci#define AFE_CONN43					0x0af8
253562306a36Sopenharmony_ci#define AFE_CONN43_1					0x0afc
253662306a36Sopenharmony_ci#define AFE_MOD_DAI_CON0				0x0b00
253762306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE_MSB				0x0b04
253862306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE				0x0b08
253962306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR_MSB				0x0b0c
254062306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR					0x0b10
254162306a36Sopenharmony_ci#define AFE_MOD_DAI_END_MSB				0x0b14
254262306a36Sopenharmony_ci#define AFE_MOD_DAI_END					0x0b18
254362306a36Sopenharmony_ci#define AFE_AWB_RCH_MON					0x0b70
254462306a36Sopenharmony_ci#define AFE_AWB_LCH_MON					0x0b74
254562306a36Sopenharmony_ci#define AFE_VUL_RCH_MON					0x0b78
254662306a36Sopenharmony_ci#define AFE_VUL_LCH_MON					0x0b7c
254762306a36Sopenharmony_ci#define AFE_VUL12_RCH_MON				0x0b80
254862306a36Sopenharmony_ci#define AFE_VUL12_LCH_MON				0x0b84
254962306a36Sopenharmony_ci#define AFE_VUL2_RCH_MON				0x0b88
255062306a36Sopenharmony_ci#define AFE_VUL2_LCH_MON				0x0b8c
255162306a36Sopenharmony_ci#define AFE_DAI_DATA_MON				0x0b90
255262306a36Sopenharmony_ci#define AFE_MOD_DAI_DATA_MON				0x0b94
255362306a36Sopenharmony_ci#define AFE_DAI2_DATA_MON				0x0b98
255462306a36Sopenharmony_ci#define AFE_AWB2_RCH_MON				0x0b9c
255562306a36Sopenharmony_ci#define AFE_AWB2_LCH_MON				0x0ba0
255662306a36Sopenharmony_ci#define AFE_VUL3_RCH_MON				0x0ba4
255762306a36Sopenharmony_ci#define AFE_VUL3_LCH_MON				0x0ba8
255862306a36Sopenharmony_ci#define AFE_VUL4_RCH_MON				0x0bac
255962306a36Sopenharmony_ci#define AFE_VUL4_LCH_MON				0x0bb0
256062306a36Sopenharmony_ci#define AFE_VUL5_RCH_MON				0x0bb4
256162306a36Sopenharmony_ci#define AFE_VUL5_LCH_MON				0x0bb8
256262306a36Sopenharmony_ci#define AFE_VUL6_RCH_MON				0x0bbc
256362306a36Sopenharmony_ci#define AFE_VUL6_LCH_MON				0x0bc0
256462306a36Sopenharmony_ci#define AFE_DL1_RCH_MON					0x0bc4
256562306a36Sopenharmony_ci#define AFE_DL1_LCH_MON					0x0bc8
256662306a36Sopenharmony_ci#define AFE_DL2_RCH_MON					0x0bcc
256762306a36Sopenharmony_ci#define AFE_DL2_LCH_MON					0x0bd0
256862306a36Sopenharmony_ci#define AFE_DL12_RCH1_MON				0x0bd4
256962306a36Sopenharmony_ci#define AFE_DL12_LCH1_MON				0x0bd8
257062306a36Sopenharmony_ci#define AFE_DL12_RCH2_MON				0x0bdc
257162306a36Sopenharmony_ci#define AFE_DL12_LCH2_MON				0x0be0
257262306a36Sopenharmony_ci#define AFE_DL3_RCH_MON					0x0be4
257362306a36Sopenharmony_ci#define AFE_DL3_LCH_MON					0x0be8
257462306a36Sopenharmony_ci#define AFE_DL4_RCH_MON					0x0bec
257562306a36Sopenharmony_ci#define AFE_DL4_LCH_MON					0x0bf0
257662306a36Sopenharmony_ci#define AFE_DL5_RCH_MON					0x0bf4
257762306a36Sopenharmony_ci#define AFE_DL5_LCH_MON					0x0bf8
257862306a36Sopenharmony_ci#define AFE_DL6_RCH_MON					0x0bfc
257962306a36Sopenharmony_ci#define AFE_DL6_LCH_MON					0x0c00
258062306a36Sopenharmony_ci#define AFE_DL7_RCH_MON					0x0c04
258162306a36Sopenharmony_ci#define AFE_DL7_LCH_MON					0x0c08
258262306a36Sopenharmony_ci#define AFE_DL8_RCH_MON					0x0c0c
258362306a36Sopenharmony_ci#define AFE_DL8_LCH_MON					0x0c10
258462306a36Sopenharmony_ci#define AFE_VUL5_CON0					0x0c14
258562306a36Sopenharmony_ci#define AFE_VUL5_BASE_MSB				0x0c18
258662306a36Sopenharmony_ci#define AFE_VUL5_BASE					0x0c1c
258762306a36Sopenharmony_ci#define AFE_VUL5_CUR_MSB				0x0c20
258862306a36Sopenharmony_ci#define AFE_VUL5_CUR					0x0c24
258962306a36Sopenharmony_ci#define AFE_VUL5_END_MSB				0x0c28
259062306a36Sopenharmony_ci#define AFE_VUL5_END					0x0c2c
259162306a36Sopenharmony_ci#define AFE_VUL6_CON0					0x0c30
259262306a36Sopenharmony_ci#define AFE_VUL6_BASE_MSB				0x0c34
259362306a36Sopenharmony_ci#define AFE_VUL6_BASE					0x0c38
259462306a36Sopenharmony_ci#define AFE_VUL6_CUR_MSB				0x0c3c
259562306a36Sopenharmony_ci#define AFE_VUL6_CUR					0x0c40
259662306a36Sopenharmony_ci#define AFE_VUL6_END_MSB				0x0c44
259762306a36Sopenharmony_ci#define AFE_VUL6_END					0x0c48
259862306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_DCCOMP_CON			0x0c50
259962306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_TEST				0x0c54
260062306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG0			0x0c58
260162306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG1			0x0c5c
260262306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_FIFO_MON			0x0c60
260362306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_LCH_MON				0x0c64
260462306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_RCH_MON				0x0c68
260562306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_OUT_MON				0x0c6c
260662306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_DITHER_CON			0x0c70
260762306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_AUTO_RESET_CON			0x0c74
260862306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_CON				0x0c78
260962306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_MON				0x0c7c
261062306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON0				0x0c80
261162306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON1				0x0c84
261262306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON2				0x0c88
261362306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON3				0x0c8c
261462306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON4				0x0c90
261562306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON5				0x0c94
261662306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON6				0x0c98
261762306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON7				0x0c9c
261862306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON8				0x0ca0
261962306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON9				0x0ca4
262062306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON10				0x0ca8
262162306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON12				0x0cb0
262262306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON13				0x0cb4
262362306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_02_01			0x0ce0
262462306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_04_03			0x0ce4
262562306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_06_05			0x0ce8
262662306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_08_07			0x0cec
262762306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_10_09			0x0cf0
262862306a36Sopenharmony_ci#define AFE_CONN67					0x0cf4
262962306a36Sopenharmony_ci#define AFE_CONN68					0x0cf8
263062306a36Sopenharmony_ci#define AFE_CONN69					0x0cfc
263162306a36Sopenharmony_ci#define AFE_SE_PROT_SIDEBAND				0x0d38
263262306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND0				0x0d3c
263362306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON2				0x0d40
263462306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON3				0x0d44
263562306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND1				0x0d54
263662306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND2				0x0d58
263762306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND3				0x0d5c
263862306a36Sopenharmony_ci#define AFE_CONN44					0x0d70
263962306a36Sopenharmony_ci#define AFE_CONN45					0x0d74
264062306a36Sopenharmony_ci#define AFE_CONN46					0x0d78
264162306a36Sopenharmony_ci#define AFE_CONN47					0x0d7c
264262306a36Sopenharmony_ci#define AFE_CONN44_1					0x0d80
264362306a36Sopenharmony_ci#define AFE_CONN45_1					0x0d84
264462306a36Sopenharmony_ci#define AFE_CONN46_1					0x0d88
264562306a36Sopenharmony_ci#define AFE_CONN47_1					0x0d8c
264662306a36Sopenharmony_ci#define AFE_HD_ENGEN_ENABLE				0x0dd0
264762306a36Sopenharmony_ci#define AFE_ADDA_DL_NLE_FIFO_MON			0x0dfc
264862306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_CFG0				0x0e00
264962306a36Sopenharmony_ci#define AFE_CONN67_1					0x0e04
265062306a36Sopenharmony_ci#define AFE_CONN68_1					0x0e08
265162306a36Sopenharmony_ci#define AFE_CONN69_1					0x0e0c
265262306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_SYNCWORD_CFG			0x0e14
265362306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG0				0x0e20
265462306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG1				0x0e24
265562306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG2				0x0e28
265662306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON0				0x0e34
265762306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON1				0x0e38
265862306a36Sopenharmony_ci#define AFE_AUD_PAD_TOP					0x0e40
265962306a36Sopenharmony_ci#define AFE_DL_NLE_R_CFG0				0x0e44
266062306a36Sopenharmony_ci#define AFE_DL_NLE_R_CFG1				0x0e48
266162306a36Sopenharmony_ci#define AFE_DL_NLE_L_CFG0				0x0e4c
266262306a36Sopenharmony_ci#define AFE_DL_NLE_L_CFG1				0x0e50
266362306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON0				0x0e54
266462306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON1				0x0e58
266562306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON2				0x0e5c
266662306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON0				0x0e60
266762306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON1				0x0e64
266862306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON2				0x0e68
266962306a36Sopenharmony_ci#define AFE_DL_NLE_GAIN_CFG0				0x0e6c
267062306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_CFG0				0x0e70
267162306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG0			0x0e74
267262306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG1			0x0e78
267362306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG2			0x0e7c
267462306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON0			0x0e80
267562306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON1			0x0e84
267662306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON2			0x0e88
267762306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON3			0x0e8c
267862306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON4			0x0e90
267962306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON5			0x0e94
268062306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON6			0x0e98
268162306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON7			0x0e9c
268262306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON8			0x0ea0
268362306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON9			0x0ea4
268462306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON10			0x0ea8
268562306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON12			0x0eb0
268662306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON13			0x0eb4
268762306a36Sopenharmony_ci#define GENERAL_ASRC_MODE				0x0eb8
268862306a36Sopenharmony_ci#define GENERAL_ASRC_EN_ON				0x0ebc
268962306a36Sopenharmony_ci#define AFE_CONN48					0x0ec0
269062306a36Sopenharmony_ci#define AFE_CONN49					0x0ec4
269162306a36Sopenharmony_ci#define AFE_CONN50					0x0ec8
269262306a36Sopenharmony_ci#define AFE_CONN51					0x0ecc
269362306a36Sopenharmony_ci#define AFE_CONN52					0x0ed0
269462306a36Sopenharmony_ci#define AFE_CONN53					0x0ed4
269562306a36Sopenharmony_ci#define AFE_CONN54					0x0ed8
269662306a36Sopenharmony_ci#define AFE_CONN55					0x0edc
269762306a36Sopenharmony_ci#define AFE_CONN48_1					0x0ee0
269862306a36Sopenharmony_ci#define AFE_CONN49_1					0x0ee4
269962306a36Sopenharmony_ci#define AFE_CONN50_1					0x0ee8
270062306a36Sopenharmony_ci#define AFE_CONN51_1					0x0eec
270162306a36Sopenharmony_ci#define AFE_CONN52_1					0x0ef0
270262306a36Sopenharmony_ci#define AFE_CONN53_1					0x0ef4
270362306a36Sopenharmony_ci#define AFE_CONN54_1					0x0ef8
270462306a36Sopenharmony_ci#define AFE_CONN55_1					0x0efc
270562306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON0			0x0f00
270662306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON1			0x0f04
270762306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON2			0x0f08
270862306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON3			0x0f0c
270962306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON4			0x0f10
271062306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON5			0x0f14
271162306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON6			0x0f18
271262306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON7			0x0f1c
271362306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON8			0x0f20
271462306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON9			0x0f24
271562306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON10			0x0f28
271662306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON12			0x0f30
271762306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON13			0x0f34
271862306a36Sopenharmony_ci#define AFE_DL5_CON0					0x0f4c
271962306a36Sopenharmony_ci#define AFE_DL5_BASE_MSB				0x0f50
272062306a36Sopenharmony_ci#define AFE_DL5_BASE					0x0f54
272162306a36Sopenharmony_ci#define AFE_DL5_CUR_MSB					0x0f58
272262306a36Sopenharmony_ci#define AFE_DL5_CUR					0x0f5c
272362306a36Sopenharmony_ci#define AFE_DL5_END_MSB					0x0f60
272462306a36Sopenharmony_ci#define AFE_DL5_END					0x0f64
272562306a36Sopenharmony_ci#define AFE_DL6_CON0					0x0f68
272662306a36Sopenharmony_ci#define AFE_DL6_BASE_MSB				0x0f6c
272762306a36Sopenharmony_ci#define AFE_DL6_BASE					0x0f70
272862306a36Sopenharmony_ci#define AFE_DL6_CUR_MSB					0x0f74
272962306a36Sopenharmony_ci#define AFE_DL6_CUR					0x0f78
273062306a36Sopenharmony_ci#define AFE_DL6_END_MSB					0x0f7c
273162306a36Sopenharmony_ci#define AFE_DL6_END					0x0f80
273262306a36Sopenharmony_ci#define AFE_DL7_CON0					0x0f84
273362306a36Sopenharmony_ci#define AFE_DL7_BASE_MSB				0x0f88
273462306a36Sopenharmony_ci#define AFE_DL7_BASE					0x0f8c
273562306a36Sopenharmony_ci#define AFE_DL7_CUR_MSB					0x0f90
273662306a36Sopenharmony_ci#define AFE_DL7_CUR					0x0f94
273762306a36Sopenharmony_ci#define AFE_DL7_END_MSB					0x0f98
273862306a36Sopenharmony_ci#define AFE_DL7_END					0x0f9c
273962306a36Sopenharmony_ci#define AFE_DL8_CON0					0x0fa0
274062306a36Sopenharmony_ci#define AFE_DL8_BASE_MSB				0x0fa4
274162306a36Sopenharmony_ci#define AFE_DL8_BASE					0x0fa8
274262306a36Sopenharmony_ci#define AFE_DL8_CUR_MSB					0x0fac
274362306a36Sopenharmony_ci#define AFE_DL8_CUR					0x0fb0
274462306a36Sopenharmony_ci#define AFE_DL8_END_MSB					0x0fb4
274562306a36Sopenharmony_ci#define AFE_DL8_END					0x0fb8
274662306a36Sopenharmony_ci#define AFE_SE_SECURE_CON				0x1004
274762306a36Sopenharmony_ci#define AFE_PROT_SIDEBAND_MON				0x1008
274862306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND0_MON			0x100c
274962306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND1_MON			0x1010
275062306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND2_MON			0x1014
275162306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND3_MON			0x1018
275262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN0				0x1020
275362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN1				0x1024
275462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN2				0x1028
275562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN3				0x102c
275662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN4				0x1030
275762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN5				0x1034
275862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN6				0x1038
275962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN7				0x103c
276062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN8				0x1040
276162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN9				0x1044
276262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN10				0x1048
276362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN11				0x104c
276462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN12				0x1050
276562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN13				0x1054
276662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN14				0x1058
276762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN15				0x105c
276862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN16				0x1060
276962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN17				0x1064
277062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN18				0x1068
277162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN19				0x106c
277262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN20				0x1070
277362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN21				0x1074
277462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN22				0x1078
277562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN23				0x107c
277662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN24				0x1080
277762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN25				0x1084
277862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN26				0x1088
277962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN27				0x108c
278062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN28				0x1090
278162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN29				0x1094
278262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN30				0x1098
278362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN31				0x109c
278462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN32				0x10a0
278562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN33				0x10a4
278662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN34				0x10a8
278762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN35				0x10ac
278862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN36				0x10b0
278962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN37				0x10b4
279062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN38				0x10b8
279162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN39				0x10bc
279262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN40				0x10c0
279362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN41				0x10c4
279462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN42				0x10c8
279562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN43				0x10cc
279662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN44				0x10d0
279762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN45				0x10d4
279862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN46				0x10d8
279962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN47				0x10dc
280062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN48				0x10e0
280162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN49				0x10e4
280262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN50				0x10e8
280362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN51				0x10ec
280462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN52				0x10f0
280562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN53				0x10f4
280662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN54				0x10f8
280762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN55				0x10fc
280862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN56				0x1100
280962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN57				0x1104
281062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN0_1				0x1108
281162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN1_1				0x110c
281262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN2_1				0x1110
281362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN3_1				0x1114
281462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN4_1				0x1118
281562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN5_1				0x111c
281662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN6_1				0x1120
281762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN7_1				0x1124
281862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN8_1				0x1128
281962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN9_1				0x112c
282062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN10_1			0x1130
282162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN11_1			0x1134
282262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN12_1			0x1138
282362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN13_1			0x113c
282462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN14_1			0x1140
282562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN15_1			0x1144
282662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN16_1			0x1148
282762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN17_1			0x114c
282862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN18_1			0x1150
282962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN19_1			0x1154
283062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN20_1			0x1158
283162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN21_1			0x115c
283262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN22_1			0x1160
283362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN23_1			0x1164
283462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN24_1			0x1168
283562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN25_1			0x116c
283662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN26_1			0x1170
283762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN27_1			0x1174
283862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN28_1			0x1178
283962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN29_1			0x117c
284062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN30_1			0x1180
284162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN31_1			0x1184
284262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN32_1			0x1188
284362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN33_1			0x118c
284462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN34_1			0x1190
284562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN35_1			0x1194
284662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN36_1			0x1198
284762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN37_1			0x119c
284862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN38_1			0x11a0
284962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN39_1			0x11a4
285062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN40_1			0x11a8
285162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN41_1			0x11ac
285262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN42_1			0x11b0
285362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN43_1			0x11b4
285462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN44_1			0x11b8
285562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN45_1			0x11bc
285662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN46_1			0x11c0
285762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN47_1			0x11c4
285862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN48_1			0x11c8
285962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN49_1			0x11cc
286062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN50_1			0x11d0
286162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN51_1			0x11d4
286262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN52_1			0x11d8
286362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN53_1			0x11dc
286462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN54_1			0x11e0
286562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN55_1			0x11e4
286662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN56_1			0x11e8
286762306a36Sopenharmony_ci#define AFE_CONN60_1					0x11f0
286862306a36Sopenharmony_ci#define AFE_CONN61_1					0x11f4
286962306a36Sopenharmony_ci#define AFE_CONN62_1					0x11f8
287062306a36Sopenharmony_ci#define AFE_CONN63_1					0x11fc
287162306a36Sopenharmony_ci#define AFE_CONN64_1					0x1220
287262306a36Sopenharmony_ci#define AFE_CONN65_1					0x1224
287362306a36Sopenharmony_ci#define AFE_CONN66_1					0x1228
287462306a36Sopenharmony_ci#define FPGA_CFG4					0x1230
287562306a36Sopenharmony_ci#define FPGA_CFG5					0x1234
287662306a36Sopenharmony_ci#define FPGA_CFG6					0x1238
287762306a36Sopenharmony_ci#define FPGA_CFG7					0x123c
287862306a36Sopenharmony_ci#define FPGA_CFG8					0x1240
287962306a36Sopenharmony_ci#define FPGA_CFG9					0x1244
288062306a36Sopenharmony_ci#define FPGA_CFG10					0x1248
288162306a36Sopenharmony_ci#define FPGA_CFG11					0x124c
288262306a36Sopenharmony_ci#define FPGA_CFG12					0x1250
288362306a36Sopenharmony_ci#define FPGA_CFG13					0x1254
288462306a36Sopenharmony_ci#define ETDM_IN1_CON0					0x1430
288562306a36Sopenharmony_ci#define ETDM_IN1_CON1					0x1434
288662306a36Sopenharmony_ci#define ETDM_IN1_CON2					0x1438
288762306a36Sopenharmony_ci#define ETDM_IN1_CON3					0x143c
288862306a36Sopenharmony_ci#define ETDM_IN1_CON4					0x1440
288962306a36Sopenharmony_ci#define ETDM_IN1_CON5					0x1444
289062306a36Sopenharmony_ci#define ETDM_IN1_CON6					0x1448
289162306a36Sopenharmony_ci#define ETDM_IN1_CON7					0x144c
289262306a36Sopenharmony_ci#define ETDM_IN1_CON8					0x1450
289362306a36Sopenharmony_ci#define ETDM_OUT1_CON0					0x1454
289462306a36Sopenharmony_ci#define ETDM_OUT1_CON1					0x1458
289562306a36Sopenharmony_ci#define ETDM_OUT1_CON2					0x145c
289662306a36Sopenharmony_ci#define ETDM_OUT1_CON3					0x1460
289762306a36Sopenharmony_ci#define ETDM_OUT1_CON4					0x1464
289862306a36Sopenharmony_ci#define ETDM_OUT1_CON5					0x1468
289962306a36Sopenharmony_ci#define ETDM_OUT1_CON6					0x146c
290062306a36Sopenharmony_ci#define ETDM_OUT1_CON7					0x1470
290162306a36Sopenharmony_ci#define ETDM_OUT1_CON8					0x1474
290262306a36Sopenharmony_ci#define ETDM_IN1_MON					0x1478
290362306a36Sopenharmony_ci#define ETDM_OUT1_MON					0x147c
290462306a36Sopenharmony_ci#define ETDM_0_3_COWORK_CON0				0x18b0
290562306a36Sopenharmony_ci#define ETDM_0_3_COWORK_CON1				0x18b4
290662306a36Sopenharmony_ci#define ETDM_0_3_COWORK_CON3				0x18bc
290762306a36Sopenharmony_ci
290862306a36Sopenharmony_ci#define AFE_MAX_REGISTER				ETDM_0_3_COWORK_CON3
290962306a36Sopenharmony_ci
291062306a36Sopenharmony_ci#define AFE_IRQ_STATUS_BITS				0x87FFFFFF
291162306a36Sopenharmony_ci#define AFE_IRQ_CNT_SHIFT				0
291262306a36Sopenharmony_ci#define AFE_IRQ_CNT_MASK				0x3ffff
291362306a36Sopenharmony_ci#endif
2914