162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * mt8192-reg.h -- Mediatek 8192 audio driver reg definition 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2020 MediaTek Inc. 662306a36Sopenharmony_ci * Author: Shane Chien <shane.chien@mediatek.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _MT8192_REG_H_ 1062306a36Sopenharmony_ci#define _MT8192_REG_H_ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* reg bit enum */ 1362306a36Sopenharmony_cienum { 1462306a36Sopenharmony_ci MT8192_MEMIF_PBUF_SIZE_32_BYTES, 1562306a36Sopenharmony_ci MT8192_MEMIF_PBUF_SIZE_64_BYTES, 1662306a36Sopenharmony_ci MT8192_MEMIF_PBUF_SIZE_128_BYTES, 1762306a36Sopenharmony_ci MT8192_MEMIF_PBUF_SIZE_256_BYTES, 1862306a36Sopenharmony_ci MT8192_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_CON3 */ 2562306a36Sopenharmony_ci#define BCK_INVERSE_SFT 3 2662306a36Sopenharmony_ci#define BCK_INVERSE_MASK 0x1 2762306a36Sopenharmony_ci#define BCK_INVERSE_MASK_SFT (0x1 << 3) 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* AFE_DAC_CON0 */ 3062306a36Sopenharmony_ci#define VUL12_ON_SFT 31 3162306a36Sopenharmony_ci#define VUL12_ON_MASK 0x1 3262306a36Sopenharmony_ci#define VUL12_ON_MASK_SFT (0x1 << 31) 3362306a36Sopenharmony_ci#define MOD_DAI_ON_SFT 30 3462306a36Sopenharmony_ci#define MOD_DAI_ON_MASK 0x1 3562306a36Sopenharmony_ci#define MOD_DAI_ON_MASK_SFT (0x1 << 30) 3662306a36Sopenharmony_ci#define DAI_ON_SFT 29 3762306a36Sopenharmony_ci#define DAI_ON_MASK 0x1 3862306a36Sopenharmony_ci#define DAI_ON_MASK_SFT (0x1 << 29) 3962306a36Sopenharmony_ci#define DAI2_ON_SFT 28 4062306a36Sopenharmony_ci#define DAI2_ON_MASK 0x1 4162306a36Sopenharmony_ci#define DAI2_ON_MASK_SFT (0x1 << 28) 4262306a36Sopenharmony_ci#define VUL6_ON_SFT 23 4362306a36Sopenharmony_ci#define VUL6_ON_MASK 0x1 4462306a36Sopenharmony_ci#define VUL6_ON_MASK_SFT (0x1 << 23) 4562306a36Sopenharmony_ci#define VUL5_ON_SFT 22 4662306a36Sopenharmony_ci#define VUL5_ON_MASK 0x1 4762306a36Sopenharmony_ci#define VUL5_ON_MASK_SFT (0x1 << 22) 4862306a36Sopenharmony_ci#define VUL4_ON_SFT 21 4962306a36Sopenharmony_ci#define VUL4_ON_MASK 0x1 5062306a36Sopenharmony_ci#define VUL4_ON_MASK_SFT (0x1 << 21) 5162306a36Sopenharmony_ci#define VUL3_ON_SFT 20 5262306a36Sopenharmony_ci#define VUL3_ON_MASK 0x1 5362306a36Sopenharmony_ci#define VUL3_ON_MASK_SFT (0x1 << 20) 5462306a36Sopenharmony_ci#define VUL2_ON_SFT 19 5562306a36Sopenharmony_ci#define VUL2_ON_MASK 0x1 5662306a36Sopenharmony_ci#define VUL2_ON_MASK_SFT (0x1 << 19) 5762306a36Sopenharmony_ci#define VUL_ON_SFT 18 5862306a36Sopenharmony_ci#define VUL_ON_MASK 0x1 5962306a36Sopenharmony_ci#define VUL_ON_MASK_SFT (0x1 << 18) 6062306a36Sopenharmony_ci#define AWB2_ON_SFT 17 6162306a36Sopenharmony_ci#define AWB2_ON_MASK 0x1 6262306a36Sopenharmony_ci#define AWB2_ON_MASK_SFT (0x1 << 17) 6362306a36Sopenharmony_ci#define AWB_ON_SFT 16 6462306a36Sopenharmony_ci#define AWB_ON_MASK 0x1 6562306a36Sopenharmony_ci#define AWB_ON_MASK_SFT (0x1 << 16) 6662306a36Sopenharmony_ci#define DL12_ON_SFT 15 6762306a36Sopenharmony_ci#define DL12_ON_MASK 0x1 6862306a36Sopenharmony_ci#define DL12_ON_MASK_SFT (0x1 << 15) 6962306a36Sopenharmony_ci#define DL9_ON_SFT 12 7062306a36Sopenharmony_ci#define DL9_ON_MASK 0x1 7162306a36Sopenharmony_ci#define DL9_ON_MASK_SFT (0x1 << 12) 7262306a36Sopenharmony_ci#define DL8_ON_SFT 11 7362306a36Sopenharmony_ci#define DL8_ON_MASK 0x1 7462306a36Sopenharmony_ci#define DL8_ON_MASK_SFT (0x1 << 11) 7562306a36Sopenharmony_ci#define DL7_ON_SFT 10 7662306a36Sopenharmony_ci#define DL7_ON_MASK 0x1 7762306a36Sopenharmony_ci#define DL7_ON_MASK_SFT (0x1 << 10) 7862306a36Sopenharmony_ci#define DL6_ON_SFT 9 7962306a36Sopenharmony_ci#define DL6_ON_MASK 0x1 8062306a36Sopenharmony_ci#define DL6_ON_MASK_SFT (0x1 << 9) 8162306a36Sopenharmony_ci#define DL5_ON_SFT 8 8262306a36Sopenharmony_ci#define DL5_ON_MASK 0x1 8362306a36Sopenharmony_ci#define DL5_ON_MASK_SFT (0x1 << 8) 8462306a36Sopenharmony_ci#define DL4_ON_SFT 7 8562306a36Sopenharmony_ci#define DL4_ON_MASK 0x1 8662306a36Sopenharmony_ci#define DL4_ON_MASK_SFT (0x1 << 7) 8762306a36Sopenharmony_ci#define DL3_ON_SFT 6 8862306a36Sopenharmony_ci#define DL3_ON_MASK 0x1 8962306a36Sopenharmony_ci#define DL3_ON_MASK_SFT (0x1 << 6) 9062306a36Sopenharmony_ci#define DL2_ON_SFT 5 9162306a36Sopenharmony_ci#define DL2_ON_MASK 0x1 9262306a36Sopenharmony_ci#define DL2_ON_MASK_SFT (0x1 << 5) 9362306a36Sopenharmony_ci#define DL1_ON_SFT 4 9462306a36Sopenharmony_ci#define DL1_ON_MASK 0x1 9562306a36Sopenharmony_ci#define DL1_ON_MASK_SFT (0x1 << 4) 9662306a36Sopenharmony_ci#define HDMI_OUT_ON_SFT 1 9762306a36Sopenharmony_ci#define HDMI_OUT_ON_MASK 0x1 9862306a36Sopenharmony_ci#define HDMI_OUT_ON_MASK_SFT (0x1 << 1) 9962306a36Sopenharmony_ci#define AFE_ON_SFT 0 10062306a36Sopenharmony_ci#define AFE_ON_MASK 0x1 10162306a36Sopenharmony_ci#define AFE_ON_MASK_SFT (0x1 << 0) 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci/* AFE_DAC_MON */ 10462306a36Sopenharmony_ci#define AFE_ON_RETM_SFT 0 10562306a36Sopenharmony_ci#define AFE_ON_RETM_MASK 0x1 10662306a36Sopenharmony_ci#define AFE_ON_RETM_MASK_SFT (0x1 << 0) 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci/* AFE_I2S_CON */ 10962306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT 30 11062306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK 0x1 11162306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30) 11262306a36Sopenharmony_ci#define BCK_INV_SFT 29 11362306a36Sopenharmony_ci#define BCK_INV_MASK 0x1 11462306a36Sopenharmony_ci#define BCK_INV_MASK_SFT (0x1 << 29) 11562306a36Sopenharmony_ci#define I2SIN_PAD_SEL_SFT 28 11662306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK 0x1 11762306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28) 11862306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT 20 11962306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK 0x1 12062306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT (0x1 << 20) 12162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 12262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 12362306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 12462306a36Sopenharmony_ci#define I2S1_HD_EN_SFT 12 12562306a36Sopenharmony_ci#define I2S1_HD_EN_MASK 0x1 12662306a36Sopenharmony_ci#define I2S1_HD_EN_MASK_SFT (0x1 << 12) 12762306a36Sopenharmony_ci#define I2S_OUT_MODE_SFT 8 12862306a36Sopenharmony_ci#define I2S_OUT_MODE_MASK 0xf 12962306a36Sopenharmony_ci#define I2S_OUT_MODE_MASK_SFT (0xf << 8) 13062306a36Sopenharmony_ci#define INV_PAD_CTRL_SFT 7 13162306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK 0x1 13262306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK_SFT (0x1 << 7) 13362306a36Sopenharmony_ci#define I2S_BYPSRC_SFT 6 13462306a36Sopenharmony_ci#define I2S_BYPSRC_MASK 0x1 13562306a36Sopenharmony_ci#define I2S_BYPSRC_MASK_SFT (0x1 << 6) 13662306a36Sopenharmony_ci#define INV_LRCK_SFT 5 13762306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 13862306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 13962306a36Sopenharmony_ci#define I2S_FMT_SFT 3 14062306a36Sopenharmony_ci#define I2S_FMT_MASK 0x1 14162306a36Sopenharmony_ci#define I2S_FMT_MASK_SFT (0x1 << 3) 14262306a36Sopenharmony_ci#define I2S_SRC_SFT 2 14362306a36Sopenharmony_ci#define I2S_SRC_MASK 0x1 14462306a36Sopenharmony_ci#define I2S_SRC_MASK_SFT (0x1 << 2) 14562306a36Sopenharmony_ci#define I2S_WLEN_SFT 1 14662306a36Sopenharmony_ci#define I2S_WLEN_MASK 0x1 14762306a36Sopenharmony_ci#define I2S_WLEN_MASK_SFT (0x1 << 1) 14862306a36Sopenharmony_ci#define I2S_EN_SFT 0 14962306a36Sopenharmony_ci#define I2S_EN_MASK 0x1 15062306a36Sopenharmony_ci#define I2S_EN_MASK_SFT (0x1 << 0) 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ci/* AFE_I2S_CON1 */ 15362306a36Sopenharmony_ci#define I2S2_LR_SWAP_SFT 31 15462306a36Sopenharmony_ci#define I2S2_LR_SWAP_MASK 0x1 15562306a36Sopenharmony_ci#define I2S2_LR_SWAP_MASK_SFT (0x1 << 31) 15662306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_SFT 18 15762306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_MASK 0x1 15862306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_MASK_SFT (0x1 << 18) 15962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 16062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 16162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 16262306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_SFT 16 16362306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_MASK 0x1 16462306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_MASK_SFT (0x1 << 16) 16562306a36Sopenharmony_ci#define I2S2_32BIT_EN_SFT 13 16662306a36Sopenharmony_ci#define I2S2_32BIT_EN_MASK 0x1 16762306a36Sopenharmony_ci#define I2S2_32BIT_EN_MASK_SFT (0x1 << 13) 16862306a36Sopenharmony_ci#define I2S2_HD_EN_SFT 12 16962306a36Sopenharmony_ci#define I2S2_HD_EN_MASK 0x1 17062306a36Sopenharmony_ci#define I2S2_HD_EN_MASK_SFT (0x1 << 12) 17162306a36Sopenharmony_ci#define I2S2_OUT_MODE_SFT 8 17262306a36Sopenharmony_ci#define I2S2_OUT_MODE_MASK 0xf 17362306a36Sopenharmony_ci#define I2S2_OUT_MODE_MASK_SFT (0xf << 8) 17462306a36Sopenharmony_ci#define INV_LRCK_SFT 5 17562306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 17662306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 17762306a36Sopenharmony_ci#define I2S2_FMT_SFT 3 17862306a36Sopenharmony_ci#define I2S2_FMT_MASK 0x1 17962306a36Sopenharmony_ci#define I2S2_FMT_MASK_SFT (0x1 << 3) 18062306a36Sopenharmony_ci#define I2S2_WLEN_SFT 1 18162306a36Sopenharmony_ci#define I2S2_WLEN_MASK 0x1 18262306a36Sopenharmony_ci#define I2S2_WLEN_MASK_SFT (0x1 << 1) 18362306a36Sopenharmony_ci#define I2S2_EN_SFT 0 18462306a36Sopenharmony_ci#define I2S2_EN_MASK 0x1 18562306a36Sopenharmony_ci#define I2S2_EN_MASK_SFT (0x1 << 0) 18662306a36Sopenharmony_ci 18762306a36Sopenharmony_ci/* AFE_I2S_CON2 */ 18862306a36Sopenharmony_ci#define I2S3_LR_SWAP_SFT 31 18962306a36Sopenharmony_ci#define I2S3_LR_SWAP_MASK 0x1 19062306a36Sopenharmony_ci#define I2S3_LR_SWAP_MASK_SFT (0x1 << 31) 19162306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_SFT 24 19262306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_MASK 0x1f 19362306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_MASK_SFT (0x1f << 24) 19462306a36Sopenharmony_ci#define I2S3_BCK_INV_SFT 23 19562306a36Sopenharmony_ci#define I2S3_BCK_INV_MASK 0x1 19662306a36Sopenharmony_ci#define I2S3_BCK_INV_MASK_SFT (0x1 << 23) 19762306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_SFT 22 19862306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_MASK 0x1 19962306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_MASK_SFT (0x1 << 22) 20062306a36Sopenharmony_ci#define I2S3_FPGA_BIT_SFT 21 20162306a36Sopenharmony_ci#define I2S3_FPGA_BIT_MASK 0x1 20262306a36Sopenharmony_ci#define I2S3_FPGA_BIT_MASK_SFT (0x1 << 21) 20362306a36Sopenharmony_ci#define I2S3_LOOPBACK_SFT 20 20462306a36Sopenharmony_ci#define I2S3_LOOPBACK_MASK 0x1 20562306a36Sopenharmony_ci#define I2S3_LOOPBACK_MASK_SFT (0x1 << 20) 20662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 20762306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 20862306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 20962306a36Sopenharmony_ci#define I2S3_HD_EN_SFT 12 21062306a36Sopenharmony_ci#define I2S3_HD_EN_MASK 0x1 21162306a36Sopenharmony_ci#define I2S3_HD_EN_MASK_SFT (0x1 << 12) 21262306a36Sopenharmony_ci#define I2S3_OUT_MODE_SFT 8 21362306a36Sopenharmony_ci#define I2S3_OUT_MODE_MASK 0xf 21462306a36Sopenharmony_ci#define I2S3_OUT_MODE_MASK_SFT (0xf << 8) 21562306a36Sopenharmony_ci#define I2S3_FMT_SFT 3 21662306a36Sopenharmony_ci#define I2S3_FMT_MASK 0x1 21762306a36Sopenharmony_ci#define I2S3_FMT_MASK_SFT (0x1 << 3) 21862306a36Sopenharmony_ci#define I2S3_WLEN_SFT 1 21962306a36Sopenharmony_ci#define I2S3_WLEN_MASK 0x1 22062306a36Sopenharmony_ci#define I2S3_WLEN_MASK_SFT (0x1 << 1) 22162306a36Sopenharmony_ci#define I2S3_EN_SFT 0 22262306a36Sopenharmony_ci#define I2S3_EN_MASK 0x1 22362306a36Sopenharmony_ci#define I2S3_EN_MASK_SFT (0x1 << 0) 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci/* AFE_I2S_CON3 */ 22662306a36Sopenharmony_ci#define I2S4_LR_SWAP_SFT 31 22762306a36Sopenharmony_ci#define I2S4_LR_SWAP_MASK 0x1 22862306a36Sopenharmony_ci#define I2S4_LR_SWAP_MASK_SFT (0x1 << 31) 22962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 23062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 23162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 23262306a36Sopenharmony_ci#define I2S4_32BIT_EN_SFT 13 23362306a36Sopenharmony_ci#define I2S4_32BIT_EN_MASK 0x1 23462306a36Sopenharmony_ci#define I2S4_32BIT_EN_MASK_SFT (0x1 << 13) 23562306a36Sopenharmony_ci#define I2S4_HD_EN_SFT 12 23662306a36Sopenharmony_ci#define I2S4_HD_EN_MASK 0x1 23762306a36Sopenharmony_ci#define I2S4_HD_EN_MASK_SFT (0x1 << 12) 23862306a36Sopenharmony_ci#define I2S4_OUT_MODE_SFT 8 23962306a36Sopenharmony_ci#define I2S4_OUT_MODE_MASK 0xf 24062306a36Sopenharmony_ci#define I2S4_OUT_MODE_MASK_SFT (0xf << 8) 24162306a36Sopenharmony_ci#define INV_LRCK_SFT 5 24262306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 24362306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 24462306a36Sopenharmony_ci#define I2S4_FMT_SFT 3 24562306a36Sopenharmony_ci#define I2S4_FMT_MASK 0x1 24662306a36Sopenharmony_ci#define I2S4_FMT_MASK_SFT (0x1 << 3) 24762306a36Sopenharmony_ci#define I2S4_WLEN_SFT 1 24862306a36Sopenharmony_ci#define I2S4_WLEN_MASK 0x1 24962306a36Sopenharmony_ci#define I2S4_WLEN_MASK_SFT (0x1 << 1) 25062306a36Sopenharmony_ci#define I2S4_EN_SFT 0 25162306a36Sopenharmony_ci#define I2S4_EN_MASK 0x1 25262306a36Sopenharmony_ci#define I2S4_EN_MASK_SFT (0x1 << 0) 25362306a36Sopenharmony_ci 25462306a36Sopenharmony_ci/* AFE_I2S_CON4 */ 25562306a36Sopenharmony_ci#define I2S5_LR_SWAP_SFT 31 25662306a36Sopenharmony_ci#define I2S5_LR_SWAP_MASK 0x1 25762306a36Sopenharmony_ci#define I2S5_LR_SWAP_MASK_SFT (0x1 << 31) 25862306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT 20 25962306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK 0x1 26062306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT (0x1 << 20) 26162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 26262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 26362306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 26462306a36Sopenharmony_ci#define I2S5_32BIT_EN_SFT 13 26562306a36Sopenharmony_ci#define I2S5_32BIT_EN_MASK 0x1 26662306a36Sopenharmony_ci#define I2S5_32BIT_EN_MASK_SFT (0x1 << 13) 26762306a36Sopenharmony_ci#define I2S5_HD_EN_SFT 12 26862306a36Sopenharmony_ci#define I2S5_HD_EN_MASK 0x1 26962306a36Sopenharmony_ci#define I2S5_HD_EN_MASK_SFT (0x1 << 12) 27062306a36Sopenharmony_ci#define I2S5_OUT_MODE_SFT 8 27162306a36Sopenharmony_ci#define I2S5_OUT_MODE_MASK 0xf 27262306a36Sopenharmony_ci#define I2S5_OUT_MODE_MASK_SFT (0xf << 8) 27362306a36Sopenharmony_ci#define INV_LRCK_SFT 5 27462306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 27562306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 27662306a36Sopenharmony_ci#define I2S5_FMT_SFT 3 27762306a36Sopenharmony_ci#define I2S5_FMT_MASK 0x1 27862306a36Sopenharmony_ci#define I2S5_FMT_MASK_SFT (0x1 << 3) 27962306a36Sopenharmony_ci#define I2S5_WLEN_SFT 1 28062306a36Sopenharmony_ci#define I2S5_WLEN_MASK 0x1 28162306a36Sopenharmony_ci#define I2S5_WLEN_MASK_SFT (0x1 << 1) 28262306a36Sopenharmony_ci#define I2S5_EN_SFT 0 28362306a36Sopenharmony_ci#define I2S5_EN_MASK 0x1 28462306a36Sopenharmony_ci#define I2S5_EN_MASK_SFT (0x1 << 0) 28562306a36Sopenharmony_ci 28662306a36Sopenharmony_ci/* AFE_CONNSYS_I2S_CON */ 28762306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT 30 28862306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK 0x1 28962306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30) 29062306a36Sopenharmony_ci#define BCK_INV_SFT 29 29162306a36Sopenharmony_ci#define BCK_INV_MASK 0x1 29262306a36Sopenharmony_ci#define BCK_INV_MASK_SFT (0x1 << 29) 29362306a36Sopenharmony_ci#define I2SIN_PAD_SEL_SFT 28 29462306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK 0x1 29562306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28) 29662306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT 20 29762306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK 0x1 29862306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT (0x1 << 20) 29962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 30062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 30162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 30262306a36Sopenharmony_ci#define I2S_MODE_SFT 8 30362306a36Sopenharmony_ci#define I2S_MODE_MASK 0xf 30462306a36Sopenharmony_ci#define I2S_MODE_MASK_SFT (0xf << 8) 30562306a36Sopenharmony_ci#define INV_PAD_CTRL_SFT 7 30662306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK 0x1 30762306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK_SFT (0x1 << 7) 30862306a36Sopenharmony_ci#define I2S_BYPSRC_SFT 6 30962306a36Sopenharmony_ci#define I2S_BYPSRC_MASK 0x1 31062306a36Sopenharmony_ci#define I2S_BYPSRC_MASK_SFT (0x1 << 6) 31162306a36Sopenharmony_ci#define INV_LRCK_SFT 5 31262306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 31362306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 31462306a36Sopenharmony_ci#define I2S_FMT_SFT 3 31562306a36Sopenharmony_ci#define I2S_FMT_MASK 0x1 31662306a36Sopenharmony_ci#define I2S_FMT_MASK_SFT (0x1 << 3) 31762306a36Sopenharmony_ci#define I2S_SRC_SFT 2 31862306a36Sopenharmony_ci#define I2S_SRC_MASK 0x1 31962306a36Sopenharmony_ci#define I2S_SRC_MASK_SFT (0x1 << 2) 32062306a36Sopenharmony_ci#define I2S_WLEN_SFT 1 32162306a36Sopenharmony_ci#define I2S_WLEN_MASK 0x1 32262306a36Sopenharmony_ci#define I2S_WLEN_MASK_SFT (0x1 << 1) 32362306a36Sopenharmony_ci#define I2S_EN_SFT 0 32462306a36Sopenharmony_ci#define I2S_EN_MASK 0x1 32562306a36Sopenharmony_ci#define I2S_EN_MASK_SFT (0x1 << 0) 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ci/* AFE_I2S_CON6 */ 32862306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT 30 32962306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK 0x1 33062306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30) 33162306a36Sopenharmony_ci#define BCK_INV_SFT 29 33262306a36Sopenharmony_ci#define BCK_INV_MASK 0x1 33362306a36Sopenharmony_ci#define BCK_INV_MASK_SFT (0x1 << 29) 33462306a36Sopenharmony_ci#define I2S6_LOOPBACK_SFT 20 33562306a36Sopenharmony_ci#define I2S6_LOOPBACK_MASK 0x1 33662306a36Sopenharmony_ci#define I2S6_LOOPBACK_MASK_SFT (0x1 << 20) 33762306a36Sopenharmony_ci#define I2S6_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 33862306a36Sopenharmony_ci#define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 33962306a36Sopenharmony_ci#define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 34062306a36Sopenharmony_ci#define I2S6_HD_EN_SFT 12 34162306a36Sopenharmony_ci#define I2S6_HD_EN_MASK 0x1 34262306a36Sopenharmony_ci#define I2S6_HD_EN_MASK_SFT (0x1 << 12) 34362306a36Sopenharmony_ci#define I2S6_OUT_MODE_SFT 8 34462306a36Sopenharmony_ci#define I2S6_OUT_MODE_MASK 0xf 34562306a36Sopenharmony_ci#define I2S6_OUT_MODE_MASK_SFT (0xf << 8) 34662306a36Sopenharmony_ci#define I2S6_BYPSRC_SFT 6 34762306a36Sopenharmony_ci#define I2S6_BYPSRC_MASK 0x1 34862306a36Sopenharmony_ci#define I2S6_BYPSRC_MASK_SFT (0x1 << 6) 34962306a36Sopenharmony_ci#define INV_LRCK_SFT 5 35062306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 35162306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 35262306a36Sopenharmony_ci#define I2S6_FMT_SFT 3 35362306a36Sopenharmony_ci#define I2S6_FMT_MASK 0x1 35462306a36Sopenharmony_ci#define I2S6_FMT_MASK_SFT (0x1 << 3) 35562306a36Sopenharmony_ci#define I2S6_SRC_SFT 2 35662306a36Sopenharmony_ci#define I2S6_SRC_MASK 0x1 35762306a36Sopenharmony_ci#define I2S6_SRC_MASK_SFT (0x1 << 2) 35862306a36Sopenharmony_ci#define I2S6_WLEN_SFT 1 35962306a36Sopenharmony_ci#define I2S6_WLEN_MASK 0x1 36062306a36Sopenharmony_ci#define I2S6_WLEN_MASK_SFT (0x1 << 1) 36162306a36Sopenharmony_ci#define I2S6_EN_SFT 0 36262306a36Sopenharmony_ci#define I2S6_EN_MASK 0x1 36362306a36Sopenharmony_ci#define I2S6_EN_MASK_SFT (0x1 << 0) 36462306a36Sopenharmony_ci 36562306a36Sopenharmony_ci/* AFE_I2S_CON7 */ 36662306a36Sopenharmony_ci#define I2S7_LR_SWAP_SFT 31 36762306a36Sopenharmony_ci#define I2S7_LR_SWAP_MASK 0x1 36862306a36Sopenharmony_ci#define I2S7_LR_SWAP_MASK_SFT (0x1 << 31) 36962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 37062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 37162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 37262306a36Sopenharmony_ci#define I2S7_32BIT_EN_SFT 13 37362306a36Sopenharmony_ci#define I2S7_32BIT_EN_MASK 0x1 37462306a36Sopenharmony_ci#define I2S7_32BIT_EN_MASK_SFT (0x1 << 13) 37562306a36Sopenharmony_ci#define I2S7_HD_EN_SFT 12 37662306a36Sopenharmony_ci#define I2S7_HD_EN_MASK 0x1 37762306a36Sopenharmony_ci#define I2S7_HD_EN_MASK_SFT (0x1 << 12) 37862306a36Sopenharmony_ci#define I2S7_OUT_MODE_SFT 8 37962306a36Sopenharmony_ci#define I2S7_OUT_MODE_MASK 0xf 38062306a36Sopenharmony_ci#define I2S7_OUT_MODE_MASK_SFT (0xf << 8) 38162306a36Sopenharmony_ci#define INV_LRCK_SFT 5 38262306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 38362306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 38462306a36Sopenharmony_ci#define I2S7_FMT_SFT 3 38562306a36Sopenharmony_ci#define I2S7_FMT_MASK 0x1 38662306a36Sopenharmony_ci#define I2S7_FMT_MASK_SFT (0x1 << 3) 38762306a36Sopenharmony_ci#define I2S7_WLEN_SFT 1 38862306a36Sopenharmony_ci#define I2S7_WLEN_MASK 0x1 38962306a36Sopenharmony_ci#define I2S7_WLEN_MASK_SFT (0x1 << 1) 39062306a36Sopenharmony_ci#define I2S7_EN_SFT 0 39162306a36Sopenharmony_ci#define I2S7_EN_MASK 0x1 39262306a36Sopenharmony_ci#define I2S7_EN_MASK_SFT (0x1 << 0) 39362306a36Sopenharmony_ci 39462306a36Sopenharmony_ci/* AFE_I2S_CON8 */ 39562306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT 30 39662306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK 0x1 39762306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30) 39862306a36Sopenharmony_ci#define BCK_INV_SFT 29 39962306a36Sopenharmony_ci#define BCK_INV_MASK 0x1 40062306a36Sopenharmony_ci#define BCK_INV_MASK_SFT (0x1 << 29) 40162306a36Sopenharmony_ci#define I2S8_LOOPBACK_SFT 20 40262306a36Sopenharmony_ci#define I2S8_LOOPBACK_MASK 0x1 40362306a36Sopenharmony_ci#define I2S8_LOOPBACK_MASK_SFT (0x1 << 20) 40462306a36Sopenharmony_ci#define I2S8_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 40562306a36Sopenharmony_ci#define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 40662306a36Sopenharmony_ci#define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 40762306a36Sopenharmony_ci#define I2S8_HD_EN_SFT 12 40862306a36Sopenharmony_ci#define I2S8_HD_EN_MASK 0x1 40962306a36Sopenharmony_ci#define I2S8_HD_EN_MASK_SFT (0x1 << 12) 41062306a36Sopenharmony_ci#define I2S8_OUT_MODE_SFT 8 41162306a36Sopenharmony_ci#define I2S8_OUT_MODE_MASK 0xf 41262306a36Sopenharmony_ci#define I2S8_OUT_MODE_MASK_SFT (0xf << 8) 41362306a36Sopenharmony_ci#define I2S8_BYPSRC_SFT 6 41462306a36Sopenharmony_ci#define I2S8_BYPSRC_MASK 0x1 41562306a36Sopenharmony_ci#define I2S8_BYPSRC_MASK_SFT (0x1 << 6) 41662306a36Sopenharmony_ci#define INV_LRCK_SFT 5 41762306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 41862306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 41962306a36Sopenharmony_ci#define I2S8_FMT_SFT 3 42062306a36Sopenharmony_ci#define I2S8_FMT_MASK 0x1 42162306a36Sopenharmony_ci#define I2S8_FMT_MASK_SFT (0x1 << 3) 42262306a36Sopenharmony_ci#define I2S8_SRC_SFT 2 42362306a36Sopenharmony_ci#define I2S8_SRC_MASK 0x1 42462306a36Sopenharmony_ci#define I2S8_SRC_MASK_SFT (0x1 << 2) 42562306a36Sopenharmony_ci#define I2S8_WLEN_SFT 1 42662306a36Sopenharmony_ci#define I2S8_WLEN_MASK 0x1 42762306a36Sopenharmony_ci#define I2S8_WLEN_MASK_SFT (0x1 << 1) 42862306a36Sopenharmony_ci#define I2S8_EN_SFT 0 42962306a36Sopenharmony_ci#define I2S8_EN_MASK 0x1 43062306a36Sopenharmony_ci#define I2S8_EN_MASK_SFT (0x1 << 0) 43162306a36Sopenharmony_ci 43262306a36Sopenharmony_ci/* AFE_I2S_CON9 */ 43362306a36Sopenharmony_ci#define I2S9_LR_SWAP_SFT 31 43462306a36Sopenharmony_ci#define I2S9_LR_SWAP_MASK 0x1 43562306a36Sopenharmony_ci#define I2S9_LR_SWAP_MASK_SFT (0x1 << 31) 43662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 43762306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 43862306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 43962306a36Sopenharmony_ci#define I2S9_32BIT_EN_SFT 13 44062306a36Sopenharmony_ci#define I2S9_32BIT_EN_MASK 0x1 44162306a36Sopenharmony_ci#define I2S9_32BIT_EN_MASK_SFT (0x1 << 13) 44262306a36Sopenharmony_ci#define I2S9_HD_EN_SFT 12 44362306a36Sopenharmony_ci#define I2S9_HD_EN_MASK 0x1 44462306a36Sopenharmony_ci#define I2S9_HD_EN_MASK_SFT (0x1 << 12) 44562306a36Sopenharmony_ci#define I2S9_OUT_MODE_SFT 8 44662306a36Sopenharmony_ci#define I2S9_OUT_MODE_MASK 0xf 44762306a36Sopenharmony_ci#define I2S9_OUT_MODE_MASK_SFT (0xf << 8) 44862306a36Sopenharmony_ci#define INV_LRCK_SFT 5 44962306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 45062306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 45162306a36Sopenharmony_ci#define I2S9_FMT_SFT 3 45262306a36Sopenharmony_ci#define I2S9_FMT_MASK 0x1 45362306a36Sopenharmony_ci#define I2S9_FMT_MASK_SFT (0x1 << 3) 45462306a36Sopenharmony_ci#define I2S9_WLEN_SFT 1 45562306a36Sopenharmony_ci#define I2S9_WLEN_MASK 0x1 45662306a36Sopenharmony_ci#define I2S9_WLEN_MASK_SFT (0x1 << 1) 45762306a36Sopenharmony_ci#define I2S9_EN_SFT 0 45862306a36Sopenharmony_ci#define I2S9_EN_MASK 0x1 45962306a36Sopenharmony_ci#define I2S9_EN_MASK_SFT (0x1 << 0) 46062306a36Sopenharmony_ci 46162306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON2 */ 46262306a36Sopenharmony_ci#define CHSET_O16BIT_SFT 19 46362306a36Sopenharmony_ci#define CHSET_O16BIT_MASK 0x1 46462306a36Sopenharmony_ci#define CHSET_O16BIT_MASK_SFT (0x1 << 19) 46562306a36Sopenharmony_ci#define CHSET_CLR_IIR_HISTORY_SFT 17 46662306a36Sopenharmony_ci#define CHSET_CLR_IIR_HISTORY_MASK 0x1 46762306a36Sopenharmony_ci#define CHSET_CLR_IIR_HISTORY_MASK_SFT (0x1 << 17) 46862306a36Sopenharmony_ci#define CHSET_IS_MONO_SFT 16 46962306a36Sopenharmony_ci#define CHSET_IS_MONO_MASK 0x1 47062306a36Sopenharmony_ci#define CHSET_IS_MONO_MASK_SFT (0x1 << 16) 47162306a36Sopenharmony_ci#define CHSET_IIR_EN_SFT 11 47262306a36Sopenharmony_ci#define CHSET_IIR_EN_MASK 0x1 47362306a36Sopenharmony_ci#define CHSET_IIR_EN_MASK_SFT (0x1 << 11) 47462306a36Sopenharmony_ci#define CHSET_IIR_STAGE_SFT 8 47562306a36Sopenharmony_ci#define CHSET_IIR_STAGE_MASK 0x7 47662306a36Sopenharmony_ci#define CHSET_IIR_STAGE_MASK_SFT (0x7 << 8) 47762306a36Sopenharmony_ci#define CHSET_STR_CLR_SFT 5 47862306a36Sopenharmony_ci#define CHSET_STR_CLR_MASK 0x1 47962306a36Sopenharmony_ci#define CHSET_STR_CLR_MASK_SFT (0x1 << 5) 48062306a36Sopenharmony_ci#define CHSET_ON_SFT 2 48162306a36Sopenharmony_ci#define CHSET_ON_MASK 0x1 48262306a36Sopenharmony_ci#define CHSET_ON_MASK_SFT (0x1 << 2) 48362306a36Sopenharmony_ci#define COEFF_SRAM_CTRL_SFT 1 48462306a36Sopenharmony_ci#define COEFF_SRAM_CTRL_MASK 0x1 48562306a36Sopenharmony_ci#define COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1) 48662306a36Sopenharmony_ci#define ASM_ON_SFT 0 48762306a36Sopenharmony_ci#define ASM_ON_MASK 0x1 48862306a36Sopenharmony_ci#define ASM_ON_MASK_SFT (0x1 << 0) 48962306a36Sopenharmony_ci 49062306a36Sopenharmony_ci/* AFE_GAIN1_CON0 */ 49162306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_SFT 8 49262306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_MASK 0xff 49362306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_MASK_SFT (0xff << 8) 49462306a36Sopenharmony_ci#define GAIN1_MODE_SFT 4 49562306a36Sopenharmony_ci#define GAIN1_MODE_MASK 0xf 49662306a36Sopenharmony_ci#define GAIN1_MODE_MASK_SFT (0xf << 4) 49762306a36Sopenharmony_ci#define GAIN1_ON_SFT 0 49862306a36Sopenharmony_ci#define GAIN1_ON_MASK 0x1 49962306a36Sopenharmony_ci#define GAIN1_ON_MASK_SFT (0x1 << 0) 50062306a36Sopenharmony_ci 50162306a36Sopenharmony_ci/* AFE_GAIN1_CON1 */ 50262306a36Sopenharmony_ci#define GAIN1_TARGET_SFT 0 50362306a36Sopenharmony_ci#define GAIN1_TARGET_MASK 0xfffffff 50462306a36Sopenharmony_ci#define GAIN1_TARGET_MASK_SFT (0xfffffff << 0) 50562306a36Sopenharmony_ci 50662306a36Sopenharmony_ci/* AFE_GAIN2_CON0 */ 50762306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_SFT 8 50862306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_MASK 0xff 50962306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_MASK_SFT (0xff << 8) 51062306a36Sopenharmony_ci#define GAIN2_MODE_SFT 4 51162306a36Sopenharmony_ci#define GAIN2_MODE_MASK 0xf 51262306a36Sopenharmony_ci#define GAIN2_MODE_MASK_SFT (0xf << 4) 51362306a36Sopenharmony_ci#define GAIN2_ON_SFT 0 51462306a36Sopenharmony_ci#define GAIN2_ON_MASK 0x1 51562306a36Sopenharmony_ci#define GAIN2_ON_MASK_SFT (0x1 << 0) 51662306a36Sopenharmony_ci 51762306a36Sopenharmony_ci/* AFE_GAIN2_CON1 */ 51862306a36Sopenharmony_ci#define GAIN2_TARGET_SFT 0 51962306a36Sopenharmony_ci#define GAIN2_TARGET_MASK 0xfffffff 52062306a36Sopenharmony_ci#define GAIN2_TARGET_MASK_SFT (0xfffffff << 0) 52162306a36Sopenharmony_ci 52262306a36Sopenharmony_ci/* AFE_GAIN1_CUR */ 52362306a36Sopenharmony_ci#define AFE_GAIN1_CUR_SFT 0 52462306a36Sopenharmony_ci#define AFE_GAIN1_CUR_MASK 0xfffffff 52562306a36Sopenharmony_ci#define AFE_GAIN1_CUR_MASK_SFT (0xfffffff << 0) 52662306a36Sopenharmony_ci 52762306a36Sopenharmony_ci/* AFE_GAIN2_CUR */ 52862306a36Sopenharmony_ci#define AFE_GAIN2_CUR_SFT 0 52962306a36Sopenharmony_ci#define AFE_GAIN2_CUR_MASK 0xfffffff 53062306a36Sopenharmony_ci#define AFE_GAIN2_CUR_MASK_SFT (0xfffffff << 0) 53162306a36Sopenharmony_ci 53262306a36Sopenharmony_ci/* PCM_INTF_CON1 */ 53362306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_SFT 31 53462306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK 0x1 53562306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK_SFT (0x1 << 31) 53662306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_SFT 30 53762306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK 0x1 53862306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK_SFT (0x1 << 30) 53962306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_SFT 29 54062306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK 0x1 54162306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 29) 54262306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_SFT 28 54362306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK 0x1 54462306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK_SFT (0x1 << 28) 54562306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_SFT 27 54662306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK 0x1 54762306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 27) 54862306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_SFT 26 54962306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK 0x1 55062306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 26) 55162306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_SFT 25 55262306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK 0x1 55362306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK_SFT (0x1 << 25) 55462306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_SFT 24 55562306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK 0x1 55662306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK_SFT (0x1 << 24) 55762306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_SFT 23 55862306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK 0x1 55962306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK_SFT (0x1 << 23) 56062306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_SFT 22 56162306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK 0x1 56262306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK_SFT (0x1 << 22) 56362306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_SFT 21 56462306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK 0x1 56562306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK_SFT (0x1 << 21) 56662306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_SFT 20 56762306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK 0x1 56862306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK_SFT (0x1 << 20) 56962306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_SFT 19 57062306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK 0x1 57162306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK_SFT (0x1 << 19) 57262306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_SFT 18 57362306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK 0x1 57462306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK_SFT (0x1 << 18) 57562306a36Sopenharmony_ci#define PCM_EXT_MODEM_SFT 17 57662306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK 0x1 57762306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK_SFT (0x1 << 17) 57862306a36Sopenharmony_ci#define PCM_24BIT_SFT 16 57962306a36Sopenharmony_ci#define PCM_24BIT_MASK 0x1 58062306a36Sopenharmony_ci#define PCM_24BIT_MASK_SFT (0x1 << 16) 58162306a36Sopenharmony_ci#define PCM_WLEN_SFT 14 58262306a36Sopenharmony_ci#define PCM_WLEN_MASK 0x3 58362306a36Sopenharmony_ci#define PCM_WLEN_MASK_SFT (0x3 << 14) 58462306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_SFT 9 58562306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK 0x1f 58662306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK_SFT (0x1f << 9) 58762306a36Sopenharmony_ci#define PCM_SYNC_TYPE_SFT 8 58862306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK 0x1 58962306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK_SFT (0x1 << 8) 59062306a36Sopenharmony_ci#define PCM_BT_MODE_SFT 7 59162306a36Sopenharmony_ci#define PCM_BT_MODE_MASK 0x1 59262306a36Sopenharmony_ci#define PCM_BT_MODE_MASK_SFT (0x1 << 7) 59362306a36Sopenharmony_ci#define PCM_BYP_ASRC_SFT 6 59462306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK 0x1 59562306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK_SFT (0x1 << 6) 59662306a36Sopenharmony_ci#define PCM_SLAVE_SFT 5 59762306a36Sopenharmony_ci#define PCM_SLAVE_MASK 0x1 59862306a36Sopenharmony_ci#define PCM_SLAVE_MASK_SFT (0x1 << 5) 59962306a36Sopenharmony_ci#define PCM_MODE_SFT 3 60062306a36Sopenharmony_ci#define PCM_MODE_MASK 0x3 60162306a36Sopenharmony_ci#define PCM_MODE_MASK_SFT (0x3 << 3) 60262306a36Sopenharmony_ci#define PCM_FMT_SFT 1 60362306a36Sopenharmony_ci#define PCM_FMT_MASK 0x3 60462306a36Sopenharmony_ci#define PCM_FMT_MASK_SFT (0x3 << 1) 60562306a36Sopenharmony_ci#define PCM_EN_SFT 0 60662306a36Sopenharmony_ci#define PCM_EN_MASK 0x1 60762306a36Sopenharmony_ci#define PCM_EN_MASK_SFT (0x1 << 0) 60862306a36Sopenharmony_ci 60962306a36Sopenharmony_ci/* PCM_INTF_CON2 */ 61062306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_SFT 31 61162306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK 0x1 61262306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK_SFT (0x1 << 31) 61362306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_SFT 30 61462306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK 0x1 61562306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK_SFT (0x1 << 30) 61662306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_SFT 29 61762306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK 0x1 61862306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK_SFT (0x1 << 29) 61962306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_SFT 28 62062306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK 0x1 62162306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK_SFT (0x1 << 28) 62262306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_SFT 27 62362306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK 0x1 62462306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK_SFT (0x1 << 27) 62562306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_SFT 26 62662306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK 0x1 62762306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK_SFT (0x1 << 26) 62862306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_SFT 17 62962306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_MASK 0x1 63062306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_MASK_SFT (0x1 << 17) 63162306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_SFT 16 63262306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK 0x1 63362306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK_SFT (0x1 << 16) 63462306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_SFT 14 63562306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK 0x3 63662306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 14) 63762306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_SFT 12 63862306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK 0x3 63962306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 12) 64062306a36Sopenharmony_ci#define TX_FIX_VALUE_SFT 0 64162306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK 0xff 64262306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK_SFT (0xff << 0) 64362306a36Sopenharmony_ci 64462306a36Sopenharmony_ci/* PCM2_INTF_CON */ 64562306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_SFT 24 64662306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK 0xff 64762306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK_SFT (0xff << 24) 64862306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_SFT 23 64962306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK 0x1 65062306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK_SFT (0x1 << 23) 65162306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_SFT 22 65262306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK 0x1 65362306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK_SFT (0x1 << 22) 65462306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_SFT 21 65562306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK 0x1 65662306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 21) 65762306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_SFT 20 65862306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK 0x1 65962306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK_SFT (0x1 << 20) 66062306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_SFT 19 66162306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK 0x1 66262306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 19) 66362306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_SFT 18 66462306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK 0x1 66562306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 18) 66662306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_SFT 17 66762306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK 0x1 66862306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK_SFT (0x1 << 17) 66962306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_SFT 16 67062306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK 0x1 67162306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK_SFT (0x1 << 16) 67262306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_SFT 15 67362306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK 0x1 67462306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK_SFT (0x1 << 15) 67562306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_SFT 14 67662306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK 0x1 67762306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK_SFT (0x1 << 14) 67862306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_SFT 13 67962306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK 0x1 68062306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK_SFT (0x1 << 13) 68162306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_SFT 12 68262306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK 0x1 68362306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK_SFT (0x1 << 12) 68462306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_SFT 10 68562306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK 0x3 68662306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK_SFT (0x3 << 10) 68762306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_SFT 8 68862306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK 0x1 68962306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK_SFT (0x1 << 8) 69062306a36Sopenharmony_ci#define PCM2_BT_MODE_SFT 7 69162306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK 0x1 69262306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK_SFT (0x1 << 7) 69362306a36Sopenharmony_ci#define PCM2_AFIFO_SFT 6 69462306a36Sopenharmony_ci#define PCM2_AFIFO_MASK 0x1 69562306a36Sopenharmony_ci#define PCM2_AFIFO_MASK_SFT (0x1 << 6) 69662306a36Sopenharmony_ci#define PCM2_WLEN_SFT 5 69762306a36Sopenharmony_ci#define PCM2_WLEN_MASK 0x1 69862306a36Sopenharmony_ci#define PCM2_WLEN_MASK_SFT (0x1 << 5) 69962306a36Sopenharmony_ci#define PCM2_MODE_SFT 3 70062306a36Sopenharmony_ci#define PCM2_MODE_MASK 0x3 70162306a36Sopenharmony_ci#define PCM2_MODE_MASK_SFT (0x3 << 3) 70262306a36Sopenharmony_ci#define PCM2_FMT_SFT 1 70362306a36Sopenharmony_ci#define PCM2_FMT_MASK 0x3 70462306a36Sopenharmony_ci#define PCM2_FMT_MASK_SFT (0x3 << 1) 70562306a36Sopenharmony_ci#define PCM2_EN_SFT 0 70662306a36Sopenharmony_ci#define PCM2_EN_MASK 0x1 70762306a36Sopenharmony_ci#define PCM2_EN_MASK_SFT (0x1 << 0) 70862306a36Sopenharmony_ci 70962306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_CFG0 */ 71062306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_SFT 31 71162306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_MASK 0x1 71262306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT (0x1 << 31) 71362306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_SFT 17 71462306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_MASK 0x1 71562306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT (0x1 << 17) 71662306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_SFT 16 71762306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_MASK 0x1 71862306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_MASK_SFT (0x1 << 16) 71962306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_SFT 5 72062306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_MASK 0x1 72162306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT (0x1 << 5) 72262306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_SFT 4 72362306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_MASK 0x1 72462306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_MASK_SFT (0x1 << 4) 72562306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_SFT 2 72662306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_MASK 0x1 72762306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_MASK_SFT (0x1 << 2) 72862306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_SFT 1 72962306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_MASK 0x1 73062306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_MASK_SFT (0x1 << 1) 73162306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_SFT 0 73262306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_MASK 0x1 73362306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_MASK_SFT (0x1 << 0) 73462306a36Sopenharmony_ci 73562306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_RX_CFG2 */ 73662306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT 16 73762306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK 0x1 73862306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT (0x1 << 16) 73962306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_SFT 12 74062306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_MASK 0xf 74162306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT (0xf << 12) 74262306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_SFT 8 74362306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK 0x1 74462306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK_SFT (0x1 << 8) 74562306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT 4 74662306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK 0x7 74762306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT (0x7 << 4) 74862306a36Sopenharmony_ci 74962306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON0 */ 75062306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_SFT 28 75162306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK 0xf 75262306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK_SFT (0xf << 28) 75362306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_SFT 27 75462306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK 0x1 75562306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT (0x1 << 27) 75662306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_SFT 26 75762306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK 0x1 75862306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT (0x1 << 26) 75962306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_SFT 24 76062306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK 0x3 76162306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK_SFT (0x3 << 24) 76262306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_SFT 16 76362306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK 0x3 76462306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK_SFT (0x3 << 16) 76562306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_SFT 15 76662306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK 0x1 76762306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 15) 76862306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_SFT 14 76962306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK 0x1 77062306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT (0x1 << 14) 77162306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT 13 77262306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK 0x1 77362306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT (0x1 << 13) 77462306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT 12 77562306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK 0x1 77662306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT (0x1 << 12) 77762306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT 11 77862306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK 0x1 77962306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT (0x1 << 11) 78062306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_SFT 9 78162306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK 0x3 78262306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK_SFT (0x3 << 9) 78362306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_SFT 6 78462306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK 0x7 78562306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK_SFT (0x7 << 6) 78662306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_SFT 5 78762306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK 0x1 78862306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT (0x1 << 5) 78962306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT 4 79062306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK 0x1 79162306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT (0x1 << 4) 79262306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT 3 79362306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK 0x1 79462306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT (0x1 << 3) 79562306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_SFT 2 79662306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK 0x1 79762306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK_SFT (0x1 << 2) 79862306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_SFT 1 79962306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK 0x1 80062306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT (0x1 << 1) 80162306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_SFT 0 80262306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK 0x1 80362306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT (0x1 << 0) 80462306a36Sopenharmony_ci 80562306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON1 */ 80662306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_SFT 16 80762306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK 0xffff 80862306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK_SFT (0xffff << 16) 80962306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_SFT 0 81062306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK 0x1 81162306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK_SFT (0x1 << 0) 81262306a36Sopenharmony_ci 81362306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON0 */ 81462306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_SFT 31 81562306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_MASK 0x1 81662306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_MASK_SFT (0x1 << 31) 81762306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH1_SFT 27 81862306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH1_MASK 0x7 81962306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH1_MASK_SFT (0x7 << 27) 82062306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH2_SFT 24 82162306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH2_MASK 0x7 82262306a36Sopenharmony_ci#define UL_DMIC_PHASE_SEL_CH2_MASK_SFT (0x7 << 24) 82362306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_SFT 22 82462306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK 0x1 82562306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK_SFT (0x1 << 22) 82662306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_SFT 21 82762306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK 0x1 82862306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK_SFT (0x1 << 21) 82962306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_SFT 17 83062306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK 0x7 83162306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT (0x7 << 17) 83262306a36Sopenharmony_ci#define UL_AP_DMIC_ON_SFT 16 83362306a36Sopenharmony_ci#define UL_AP_DMIC_ON_MASK 0x1 83462306a36Sopenharmony_ci#define UL_AP_DMIC_ON_MASK_SFT (0x1 << 16) 83562306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_SFT 14 83662306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK 0x3 83762306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK_SFT (0x3 << 14) 83862306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_SFT 12 83962306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK 0x1 84062306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 12) 84162306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_SFT 10 84262306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK 0x1 84362306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK_SFT (0x1 << 10) 84462306a36Sopenharmony_ci#define UL_IIRMODE_CTL_SFT 7 84562306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK 0x7 84662306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK_SFT (0x7 << 7) 84762306a36Sopenharmony_ci#define DIGMIC_4P33M_SEL_SFT 6 84862306a36Sopenharmony_ci#define DIGMIC_4P33M_SEL_MASK 0x1 84962306a36Sopenharmony_ci#define DIGMIC_4P33M_SEL_MASK_SFT (0x1 << 6) 85062306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_SFT 5 85162306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK 0x1 85262306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT (0x1 << 5) 85362306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_SFT 2 85462306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK 0x1 85562306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK_SFT (0x1 << 2) 85662306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_SFT 1 85762306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK 0x1 85862306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK_SFT (0x1 << 1) 85962306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_SFT 0 86062306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK 0x1 86162306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK_SFT (0x1 << 0) 86262306a36Sopenharmony_ci 86362306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON1 */ 86462306a36Sopenharmony_ci#define C_DAC_EN_CTL_SFT 27 86562306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK 0x1 86662306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK_SFT (0x1 << 27) 86762306a36Sopenharmony_ci#define C_MUTE_SW_CTL_SFT 26 86862306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK 0x1 86962306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK_SFT (0x1 << 26) 87062306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_SFT 25 87162306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK 0x1 87262306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK_SFT (0x1 << 25) 87362306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_SFT 21 87462306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK 0x7 87562306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK_SFT (0x7 << 21) 87662306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_SFT 16 87762306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK 0x1f 87862306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK_SFT (0x1f << 16) 87962306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_SFT 12 88062306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK 0xf 88162306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK_SFT (0xf << 12) 88262306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_SFT 9 88362306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK 0x7 88462306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK_SFT (0x7 << 9) 88562306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_SFT 4 88662306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK 0x1f 88762306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK_SFT (0x1f << 4) 88862306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_SFT 0 88962306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK 0xf 89062306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK_SFT (0xf << 0) 89162306a36Sopenharmony_ci 89262306a36Sopenharmony_ci/* AFE_ADDA_TOP_CON0 */ 89362306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_SFT 12 89462306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK 0xf 89562306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK_SFT (0xf << 12) 89662306a36Sopenharmony_ci#define ADDA_UL_GAIN_MODE_SFT 8 89762306a36Sopenharmony_ci#define ADDA_UL_GAIN_MODE_MASK 0x3 89862306a36Sopenharmony_ci#define ADDA_UL_GAIN_MODE_MASK_SFT (0x3 << 8) 89962306a36Sopenharmony_ci#define C_EXT_ADC_CTL_SFT 0 90062306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK 0x1 90162306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK_SFT (0x1 << 0) 90262306a36Sopenharmony_ci 90362306a36Sopenharmony_ci/* AFE_ADDA_UL_DL_CON0 */ 90462306a36Sopenharmony_ci#define AFE_ADDA_UL_LR_SWAP_SFT 31 90562306a36Sopenharmony_ci#define AFE_ADDA_UL_LR_SWAP_MASK 0x1 90662306a36Sopenharmony_ci#define AFE_ADDA_UL_LR_SWAP_MASK_SFT (0x1 << 31) 90762306a36Sopenharmony_ci#define AFE_ADDA_CKDIV_RST_SFT 30 90862306a36Sopenharmony_ci#define AFE_ADDA_CKDIV_RST_MASK 0x1 90962306a36Sopenharmony_ci#define AFE_ADDA_CKDIV_RST_MASK_SFT (0x1 << 30) 91062306a36Sopenharmony_ci#define AFE_ADDA_FIFO_AUTO_RST_SFT 29 91162306a36Sopenharmony_ci#define AFE_ADDA_FIFO_AUTO_RST_MASK 0x1 91262306a36Sopenharmony_ci#define AFE_ADDA_FIFO_AUTO_RST_MASK_SFT (0x1 << 29) 91362306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_SFT 21 91462306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK 0x3 91562306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 21) 91662306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 20 91762306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1 91862306a36Sopenharmony_ci#define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 20) 91962306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_SFT 15 92062306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_MASK 0x1 92162306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_MASK_SFT (0x1 << 15) 92262306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_SFT 14 92362306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_MASK 0x1 92462306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_MASK_SFT (0x1 << 14) 92562306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_SFT 13 92662306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_MASK 0x1 92762306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT (0x1 << 13) 92862306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_SFT 5 92962306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK 0x3 93062306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 5) 93162306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 4 93262306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1 93362306a36Sopenharmony_ci#define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 4) 93462306a36Sopenharmony_ci#define ADDA_AFE_ON_SFT 0 93562306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK 0x1 93662306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK_SFT (0x1 << 0) 93762306a36Sopenharmony_ci 93862306a36Sopenharmony_ci/* AFE_SIDETONE_CON0 */ 93962306a36Sopenharmony_ci#define R_RDY_SFT 30 94062306a36Sopenharmony_ci#define R_RDY_MASK 0x1 94162306a36Sopenharmony_ci#define R_RDY_MASK_SFT (0x1 << 30) 94262306a36Sopenharmony_ci#define W_RDY_SFT 29 94362306a36Sopenharmony_ci#define W_RDY_MASK 0x1 94462306a36Sopenharmony_ci#define W_RDY_MASK_SFT (0x1 << 29) 94562306a36Sopenharmony_ci#define R_W_EN_SFT 25 94662306a36Sopenharmony_ci#define R_W_EN_MASK 0x1 94762306a36Sopenharmony_ci#define R_W_EN_MASK_SFT (0x1 << 25) 94862306a36Sopenharmony_ci#define R_W_SEL_SFT 24 94962306a36Sopenharmony_ci#define R_W_SEL_MASK 0x1 95062306a36Sopenharmony_ci#define R_W_SEL_MASK_SFT (0x1 << 24) 95162306a36Sopenharmony_ci#define SEL_CH2_SFT 23 95262306a36Sopenharmony_ci#define SEL_CH2_MASK 0x1 95362306a36Sopenharmony_ci#define SEL_CH2_MASK_SFT (0x1 << 23) 95462306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_SFT 16 95562306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_MASK 0x1f 95662306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT (0x1f << 16) 95762306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_SFT 0 95862306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_MASK 0xffff 95962306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_MASK_SFT (0xffff << 0) 96062306a36Sopenharmony_ci 96162306a36Sopenharmony_ci/* AFE_SIDETONE_COEFF */ 96262306a36Sopenharmony_ci#define SIDE_TONE_COEFF_SFT 0 96362306a36Sopenharmony_ci#define SIDE_TONE_COEFF_MASK 0xffff 96462306a36Sopenharmony_ci#define SIDE_TONE_COEFF_MASK_SFT (0xffff << 0) 96562306a36Sopenharmony_ci 96662306a36Sopenharmony_ci/* AFE_SIDETONE_CON1 */ 96762306a36Sopenharmony_ci#define STF_BYPASS_MODE_SFT 31 96862306a36Sopenharmony_ci#define STF_BYPASS_MODE_MASK 0x1 96962306a36Sopenharmony_ci#define STF_BYPASS_MODE_MASK_SFT (0x1 << 31) 97062306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_SFT 30 97162306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_MASK 0x1 97262306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_MASK_SFT (0x1 << 30) 97362306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_SFT 29 97462306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_MASK 0x1 97562306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_MASK_SFT (0x1 << 29) 97662306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_SFT 28 97762306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_MASK 0x1 97862306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_MASK_SFT (0x1 << 28) 97962306a36Sopenharmony_ci#define STF_BYPASS_MODE_DL3_SFT 27 98062306a36Sopenharmony_ci#define STF_BYPASS_MODE_DL3_MASK 0x1 98162306a36Sopenharmony_ci#define STF_BYPASS_MODE_DL3_MASK_SFT (0x1 << 27) 98262306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S7_SFT 26 98362306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S7_MASK 0x1 98462306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S7_MASK_SFT (0x1 << 26) 98562306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S9_SFT 25 98662306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S9_MASK 0x1 98762306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S9_MASK_SFT (0x1 << 25) 98862306a36Sopenharmony_ci#define STF_O19O20_OUT_EN_SEL_SFT 13 98962306a36Sopenharmony_ci#define STF_O19O20_OUT_EN_SEL_MASK 0x1 99062306a36Sopenharmony_ci#define STF_O19O20_OUT_EN_SEL_MASK_SFT (0x1 << 13) 99162306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_SFT 12 99262306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_MASK 0x1 99362306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_MASK_SFT (0x1 << 12) 99462306a36Sopenharmony_ci#define SIDE_TONE_ON_SFT 8 99562306a36Sopenharmony_ci#define SIDE_TONE_ON_MASK 0x1 99662306a36Sopenharmony_ci#define SIDE_TONE_ON_MASK_SFT (0x1 << 8) 99762306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_SFT 0 99862306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_MASK 0x3f 99962306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_MASK_SFT (0x3f << 0) 100062306a36Sopenharmony_ci 100162306a36Sopenharmony_ci/* AFE_SIDETONE_GAIN */ 100262306a36Sopenharmony_ci#define POSITIVE_GAIN_SFT 16 100362306a36Sopenharmony_ci#define POSITIVE_GAIN_MASK 0x7 100462306a36Sopenharmony_ci#define POSITIVE_GAIN_MASK_SFT (0x7 << 16) 100562306a36Sopenharmony_ci#define SIDE_TONE_GAIN_SFT 0 100662306a36Sopenharmony_ci#define SIDE_TONE_GAIN_MASK 0xffff 100762306a36Sopenharmony_ci#define SIDE_TONE_GAIN_MASK_SFT (0xffff << 0) 100862306a36Sopenharmony_ci 100962306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_DCCOMP_CON */ 101062306a36Sopenharmony_ci#define USE_3RD_SDM_SFT 28 101162306a36Sopenharmony_ci#define USE_3RD_SDM_MASK 0x1 101262306a36Sopenharmony_ci#define USE_3RD_SDM_MASK_SFT (0x1 << 28) 101362306a36Sopenharmony_ci#define DL_FIFO_START_POINT_SFT 24 101462306a36Sopenharmony_ci#define DL_FIFO_START_POINT_MASK 0x7 101562306a36Sopenharmony_ci#define DL_FIFO_START_POINT_MASK_SFT (0x7 << 24) 101662306a36Sopenharmony_ci#define DL_FIFO_SWAP_SFT 20 101762306a36Sopenharmony_ci#define DL_FIFO_SWAP_MASK 0x1 101862306a36Sopenharmony_ci#define DL_FIFO_SWAP_MASK_SFT (0x1 << 20) 101962306a36Sopenharmony_ci#define C_AUDSDM1ORDSELECT_CTL_SFT 19 102062306a36Sopenharmony_ci#define C_AUDSDM1ORDSELECT_CTL_MASK 0x1 102162306a36Sopenharmony_ci#define C_AUDSDM1ORDSELECT_CTL_MASK_SFT (0x1 << 19) 102262306a36Sopenharmony_ci#define C_SDM7BITSEL_CTL_SFT 18 102362306a36Sopenharmony_ci#define C_SDM7BITSEL_CTL_MASK 0x1 102462306a36Sopenharmony_ci#define C_SDM7BITSEL_CTL_MASK_SFT (0x1 << 18) 102562306a36Sopenharmony_ci#define GAIN_AT_SDM_RST_PRE_CTL_SFT 15 102662306a36Sopenharmony_ci#define GAIN_AT_SDM_RST_PRE_CTL_MASK 0x1 102762306a36Sopenharmony_ci#define GAIN_AT_SDM_RST_PRE_CTL_MASK_SFT (0x1 << 15) 102862306a36Sopenharmony_ci#define DL_DCM_AUTO_IDLE_EN_SFT 14 102962306a36Sopenharmony_ci#define DL_DCM_AUTO_IDLE_EN_MASK 0x1 103062306a36Sopenharmony_ci#define DL_DCM_AUTO_IDLE_EN_MASK_SFT (0x1 << 14) 103162306a36Sopenharmony_ci#define AFE_DL_SRC_DCM_EN_SFT 13 103262306a36Sopenharmony_ci#define AFE_DL_SRC_DCM_EN_MASK 0x1 103362306a36Sopenharmony_ci#define AFE_DL_SRC_DCM_EN_MASK_SFT (0x1 << 13) 103462306a36Sopenharmony_ci#define AFE_DL_POST_SRC_DCM_EN_SFT 12 103562306a36Sopenharmony_ci#define AFE_DL_POST_SRC_DCM_EN_MASK 0x1 103662306a36Sopenharmony_ci#define AFE_DL_POST_SRC_DCM_EN_MASK_SFT (0x1 << 12) 103762306a36Sopenharmony_ci#define AUD_SDM_MONO_SFT 9 103862306a36Sopenharmony_ci#define AUD_SDM_MONO_MASK 0x1 103962306a36Sopenharmony_ci#define AUD_SDM_MONO_MASK_SFT (0x1 << 9) 104062306a36Sopenharmony_ci#define AUD_DC_COMP_EN_SFT 8 104162306a36Sopenharmony_ci#define AUD_DC_COMP_EN_MASK 0x1 104262306a36Sopenharmony_ci#define AUD_DC_COMP_EN_MASK_SFT (0x1 << 8) 104362306a36Sopenharmony_ci#define ATTGAIN_CTL_SFT 0 104462306a36Sopenharmony_ci#define ATTGAIN_CTL_MASK 0x3f 104562306a36Sopenharmony_ci#define ATTGAIN_CTL_MASK_SFT (0x3f << 0) 104662306a36Sopenharmony_ci 104762306a36Sopenharmony_ci/* AFE_SINEGEN_CON0 */ 104862306a36Sopenharmony_ci#define DAC_EN_SFT 26 104962306a36Sopenharmony_ci#define DAC_EN_MASK 0x1 105062306a36Sopenharmony_ci#define DAC_EN_MASK_SFT (0x1 << 26) 105162306a36Sopenharmony_ci#define MUTE_SW_CH2_SFT 25 105262306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK 0x1 105362306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK_SFT (0x1 << 25) 105462306a36Sopenharmony_ci#define MUTE_SW_CH1_SFT 24 105562306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK 0x1 105662306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK_SFT (0x1 << 24) 105762306a36Sopenharmony_ci#define SINE_MODE_CH2_SFT 20 105862306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK 0xf 105962306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK_SFT (0xf << 20) 106062306a36Sopenharmony_ci#define AMP_DIV_CH2_SFT 17 106162306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK 0x7 106262306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK_SFT (0x7 << 17) 106362306a36Sopenharmony_ci#define FREQ_DIV_CH2_SFT 12 106462306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK 0x1f 106562306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK_SFT (0x1f << 12) 106662306a36Sopenharmony_ci#define SINE_MODE_CH1_SFT 8 106762306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK 0xf 106862306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK_SFT (0xf << 8) 106962306a36Sopenharmony_ci#define AMP_DIV_CH1_SFT 5 107062306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK 0x7 107162306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK_SFT (0x7 << 5) 107262306a36Sopenharmony_ci#define FREQ_DIV_CH1_SFT 0 107362306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK 0x1f 107462306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK_SFT (0x1f << 0) 107562306a36Sopenharmony_ci 107662306a36Sopenharmony_ci/* AFE_SINEGEN_CON2 */ 107762306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_SFT 0 107862306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_MASK 0x3f 107962306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_MASK_SFT (0x3f << 0) 108062306a36Sopenharmony_ci 108162306a36Sopenharmony_ci/* AFE_HD_ENGEN_ENABLE */ 108262306a36Sopenharmony_ci#define AFE_24M_ON_SFT 1 108362306a36Sopenharmony_ci#define AFE_24M_ON_MASK 0x1 108462306a36Sopenharmony_ci#define AFE_24M_ON_MASK_SFT (0x1 << 1) 108562306a36Sopenharmony_ci#define AFE_22M_ON_SFT 0 108662306a36Sopenharmony_ci#define AFE_22M_ON_MASK 0x1 108762306a36Sopenharmony_ci#define AFE_22M_ON_MASK_SFT (0x1 << 0) 108862306a36Sopenharmony_ci 108962306a36Sopenharmony_ci/* AFE_ADDA_DL_NLE_FIFO_MON */ 109062306a36Sopenharmony_ci#define DL_NLE_FIFO_WBIN_SFT 8 109162306a36Sopenharmony_ci#define DL_NLE_FIFO_WBIN_MASK 0xf 109262306a36Sopenharmony_ci#define DL_NLE_FIFO_WBIN_MASK_SFT (0xf << 8) 109362306a36Sopenharmony_ci#define DL_NLE_FIFO_RBIN_SFT 4 109462306a36Sopenharmony_ci#define DL_NLE_FIFO_RBIN_MASK 0xf 109562306a36Sopenharmony_ci#define DL_NLE_FIFO_RBIN_MASK_SFT (0xf << 4) 109662306a36Sopenharmony_ci#define DL_NLE_FIFO_RDACTIVE_SFT 3 109762306a36Sopenharmony_ci#define DL_NLE_FIFO_RDACTIVE_MASK 0x1 109862306a36Sopenharmony_ci#define DL_NLE_FIFO_RDACTIVE_MASK_SFT (0x1 << 3) 109962306a36Sopenharmony_ci#define DL_NLE_FIFO_STARTRD_SFT 2 110062306a36Sopenharmony_ci#define DL_NLE_FIFO_STARTRD_MASK 0x1 110162306a36Sopenharmony_ci#define DL_NLE_FIFO_STARTRD_MASK_SFT (0x1 << 2) 110262306a36Sopenharmony_ci#define DL_NLE_FIFO_RD_EMPTY_SFT 1 110362306a36Sopenharmony_ci#define DL_NLE_FIFO_RD_EMPTY_MASK 0x1 110462306a36Sopenharmony_ci#define DL_NLE_FIFO_RD_EMPTY_MASK_SFT (0x1 << 1) 110562306a36Sopenharmony_ci#define DL_NLE_FIFO_WR_FULL_SFT 0 110662306a36Sopenharmony_ci#define DL_NLE_FIFO_WR_FULL_MASK 0x1 110762306a36Sopenharmony_ci#define DL_NLE_FIFO_WR_FULL_MASK_SFT (0x1 << 0) 110862306a36Sopenharmony_ci 110962306a36Sopenharmony_ci/* AFE_DL1_CON0 */ 111062306a36Sopenharmony_ci#define DL1_MODE_SFT 24 111162306a36Sopenharmony_ci#define DL1_MODE_MASK 0xf 111262306a36Sopenharmony_ci#define DL1_MODE_MASK_SFT (0xf << 24) 111362306a36Sopenharmony_ci#define DL1_MINLEN_SFT 20 111462306a36Sopenharmony_ci#define DL1_MINLEN_MASK 0xf 111562306a36Sopenharmony_ci#define DL1_MINLEN_MASK_SFT (0xf << 20) 111662306a36Sopenharmony_ci#define DL1_MAXLEN_SFT 16 111762306a36Sopenharmony_ci#define DL1_MAXLEN_MASK 0xf 111862306a36Sopenharmony_ci#define DL1_MAXLEN_MASK_SFT (0xf << 16) 111962306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_SFT 15 112062306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_MASK 0x1 112162306a36Sopenharmony_ci#define DL1_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 112262306a36Sopenharmony_ci#define DL1_PBUF_SIZE_SFT 12 112362306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK 0x3 112462306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK_SFT (0x3 << 12) 112562306a36Sopenharmony_ci#define DL1_MONO_SFT 8 112662306a36Sopenharmony_ci#define DL1_MONO_MASK 0x1 112762306a36Sopenharmony_ci#define DL1_MONO_MASK_SFT (0x1 << 8) 112862306a36Sopenharmony_ci#define DL1_NORMAL_MODE_SFT 5 112962306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK 0x1 113062306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK_SFT (0x1 << 5) 113162306a36Sopenharmony_ci#define DL1_HALIGN_SFT 4 113262306a36Sopenharmony_ci#define DL1_HALIGN_MASK 0x1 113362306a36Sopenharmony_ci#define DL1_HALIGN_MASK_SFT (0x1 << 4) 113462306a36Sopenharmony_ci#define DL1_HD_MODE_SFT 0 113562306a36Sopenharmony_ci#define DL1_HD_MODE_MASK 0x3 113662306a36Sopenharmony_ci#define DL1_HD_MODE_MASK_SFT (0x3 << 0) 113762306a36Sopenharmony_ci 113862306a36Sopenharmony_ci/* AFE_DL2_CON0 */ 113962306a36Sopenharmony_ci#define DL2_MODE_SFT 24 114062306a36Sopenharmony_ci#define DL2_MODE_MASK 0xf 114162306a36Sopenharmony_ci#define DL2_MODE_MASK_SFT (0xf << 24) 114262306a36Sopenharmony_ci#define DL2_MINLEN_SFT 20 114362306a36Sopenharmony_ci#define DL2_MINLEN_MASK 0xf 114462306a36Sopenharmony_ci#define DL2_MINLEN_MASK_SFT (0xf << 20) 114562306a36Sopenharmony_ci#define DL2_MAXLEN_SFT 16 114662306a36Sopenharmony_ci#define DL2_MAXLEN_MASK 0xf 114762306a36Sopenharmony_ci#define DL2_MAXLEN_MASK_SFT (0xf << 16) 114862306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_SFT 15 114962306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_MASK 0x1 115062306a36Sopenharmony_ci#define DL2_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 115162306a36Sopenharmony_ci#define DL2_PBUF_SIZE_SFT 12 115262306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK 0x3 115362306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK_SFT (0x3 << 12) 115462306a36Sopenharmony_ci#define DL2_MONO_SFT 8 115562306a36Sopenharmony_ci#define DL2_MONO_MASK 0x1 115662306a36Sopenharmony_ci#define DL2_MONO_MASK_SFT (0x1 << 8) 115762306a36Sopenharmony_ci#define DL2_NORMAL_MODE_SFT 5 115862306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK 0x1 115962306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK_SFT (0x1 << 5) 116062306a36Sopenharmony_ci#define DL2_HALIGN_SFT 4 116162306a36Sopenharmony_ci#define DL2_HALIGN_MASK 0x1 116262306a36Sopenharmony_ci#define DL2_HALIGN_MASK_SFT (0x1 << 4) 116362306a36Sopenharmony_ci#define DL2_HD_MODE_SFT 0 116462306a36Sopenharmony_ci#define DL2_HD_MODE_MASK 0x3 116562306a36Sopenharmony_ci#define DL2_HD_MODE_MASK_SFT (0x3 << 0) 116662306a36Sopenharmony_ci 116762306a36Sopenharmony_ci/* AFE_DL3_CON0 */ 116862306a36Sopenharmony_ci#define DL3_MODE_SFT 24 116962306a36Sopenharmony_ci#define DL3_MODE_MASK 0xf 117062306a36Sopenharmony_ci#define DL3_MODE_MASK_SFT (0xf << 24) 117162306a36Sopenharmony_ci#define DL3_MINLEN_SFT 20 117262306a36Sopenharmony_ci#define DL3_MINLEN_MASK 0xf 117362306a36Sopenharmony_ci#define DL3_MINLEN_MASK_SFT (0xf << 20) 117462306a36Sopenharmony_ci#define DL3_MAXLEN_SFT 16 117562306a36Sopenharmony_ci#define DL3_MAXLEN_MASK 0xf 117662306a36Sopenharmony_ci#define DL3_MAXLEN_MASK_SFT (0xf << 16) 117762306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_SFT 15 117862306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_MASK 0x1 117962306a36Sopenharmony_ci#define DL3_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 118062306a36Sopenharmony_ci#define DL3_PBUF_SIZE_SFT 12 118162306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK 0x3 118262306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK_SFT (0x3 << 12) 118362306a36Sopenharmony_ci#define DL3_MONO_SFT 8 118462306a36Sopenharmony_ci#define DL3_MONO_MASK 0x1 118562306a36Sopenharmony_ci#define DL3_MONO_MASK_SFT (0x1 << 8) 118662306a36Sopenharmony_ci#define DL3_NORMAL_MODE_SFT 5 118762306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK 0x1 118862306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK_SFT (0x1 << 5) 118962306a36Sopenharmony_ci#define DL3_HALIGN_SFT 4 119062306a36Sopenharmony_ci#define DL3_HALIGN_MASK 0x1 119162306a36Sopenharmony_ci#define DL3_HALIGN_MASK_SFT (0x1 << 4) 119262306a36Sopenharmony_ci#define DL3_HD_MODE_SFT 0 119362306a36Sopenharmony_ci#define DL3_HD_MODE_MASK 0x3 119462306a36Sopenharmony_ci#define DL3_HD_MODE_MASK_SFT (0x3 << 0) 119562306a36Sopenharmony_ci 119662306a36Sopenharmony_ci/* AFE_DL4_CON0 */ 119762306a36Sopenharmony_ci#define DL4_MODE_SFT 24 119862306a36Sopenharmony_ci#define DL4_MODE_MASK 0xf 119962306a36Sopenharmony_ci#define DL4_MODE_MASK_SFT (0xf << 24) 120062306a36Sopenharmony_ci#define DL4_MINLEN_SFT 20 120162306a36Sopenharmony_ci#define DL4_MINLEN_MASK 0xf 120262306a36Sopenharmony_ci#define DL4_MINLEN_MASK_SFT (0xf << 20) 120362306a36Sopenharmony_ci#define DL4_MAXLEN_SFT 16 120462306a36Sopenharmony_ci#define DL4_MAXLEN_MASK 0xf 120562306a36Sopenharmony_ci#define DL4_MAXLEN_MASK_SFT (0xf << 16) 120662306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_SFT 15 120762306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_MASK 0x1 120862306a36Sopenharmony_ci#define DL4_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 120962306a36Sopenharmony_ci#define DL4_PBUF_SIZE_SFT 12 121062306a36Sopenharmony_ci#define DL4_PBUF_SIZE_MASK 0x3 121162306a36Sopenharmony_ci#define DL4_PBUF_SIZE_MASK_SFT (0x3 << 12) 121262306a36Sopenharmony_ci#define DL4_MONO_SFT 8 121362306a36Sopenharmony_ci#define DL4_MONO_MASK 0x1 121462306a36Sopenharmony_ci#define DL4_MONO_MASK_SFT (0x1 << 8) 121562306a36Sopenharmony_ci#define DL4_NORMAL_MODE_SFT 5 121662306a36Sopenharmony_ci#define DL4_NORMAL_MODE_MASK 0x1 121762306a36Sopenharmony_ci#define DL4_NORMAL_MODE_MASK_SFT (0x1 << 5) 121862306a36Sopenharmony_ci#define DL4_HALIGN_SFT 4 121962306a36Sopenharmony_ci#define DL4_HALIGN_MASK 0x1 122062306a36Sopenharmony_ci#define DL4_HALIGN_MASK_SFT (0x1 << 4) 122162306a36Sopenharmony_ci#define DL4_HD_MODE_SFT 0 122262306a36Sopenharmony_ci#define DL4_HD_MODE_MASK 0x3 122362306a36Sopenharmony_ci#define DL4_HD_MODE_MASK_SFT (0x3 << 0) 122462306a36Sopenharmony_ci 122562306a36Sopenharmony_ci/* AFE_DL5_CON0 */ 122662306a36Sopenharmony_ci#define DL5_MODE_SFT 24 122762306a36Sopenharmony_ci#define DL5_MODE_MASK 0xf 122862306a36Sopenharmony_ci#define DL5_MODE_MASK_SFT (0xf << 24) 122962306a36Sopenharmony_ci#define DL5_MINLEN_SFT 20 123062306a36Sopenharmony_ci#define DL5_MINLEN_MASK 0xf 123162306a36Sopenharmony_ci#define DL5_MINLEN_MASK_SFT (0xf << 20) 123262306a36Sopenharmony_ci#define DL5_MAXLEN_SFT 16 123362306a36Sopenharmony_ci#define DL5_MAXLEN_MASK 0xf 123462306a36Sopenharmony_ci#define DL5_MAXLEN_MASK_SFT (0xf << 16) 123562306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_SFT 15 123662306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_MASK 0x1 123762306a36Sopenharmony_ci#define DL5_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 123862306a36Sopenharmony_ci#define DL5_PBUF_SIZE_SFT 12 123962306a36Sopenharmony_ci#define DL5_PBUF_SIZE_MASK 0x3 124062306a36Sopenharmony_ci#define DL5_PBUF_SIZE_MASK_SFT (0x3 << 12) 124162306a36Sopenharmony_ci#define DL5_MONO_SFT 8 124262306a36Sopenharmony_ci#define DL5_MONO_MASK 0x1 124362306a36Sopenharmony_ci#define DL5_MONO_MASK_SFT (0x1 << 8) 124462306a36Sopenharmony_ci#define DL5_NORMAL_MODE_SFT 5 124562306a36Sopenharmony_ci#define DL5_NORMAL_MODE_MASK 0x1 124662306a36Sopenharmony_ci#define DL5_NORMAL_MODE_MASK_SFT (0x1 << 5) 124762306a36Sopenharmony_ci#define DL5_HALIGN_SFT 4 124862306a36Sopenharmony_ci#define DL5_HALIGN_MASK 0x1 124962306a36Sopenharmony_ci#define DL5_HALIGN_MASK_SFT (0x1 << 4) 125062306a36Sopenharmony_ci#define DL5_HD_MODE_SFT 0 125162306a36Sopenharmony_ci#define DL5_HD_MODE_MASK 0x3 125262306a36Sopenharmony_ci#define DL5_HD_MODE_MASK_SFT (0x3 << 0) 125362306a36Sopenharmony_ci 125462306a36Sopenharmony_ci/* AFE_DL6_CON0 */ 125562306a36Sopenharmony_ci#define DL6_MODE_SFT 24 125662306a36Sopenharmony_ci#define DL6_MODE_MASK 0xf 125762306a36Sopenharmony_ci#define DL6_MODE_MASK_SFT (0xf << 24) 125862306a36Sopenharmony_ci#define DL6_MINLEN_SFT 20 125962306a36Sopenharmony_ci#define DL6_MINLEN_MASK 0xf 126062306a36Sopenharmony_ci#define DL6_MINLEN_MASK_SFT (0xf << 20) 126162306a36Sopenharmony_ci#define DL6_MAXLEN_SFT 16 126262306a36Sopenharmony_ci#define DL6_MAXLEN_MASK 0xf 126362306a36Sopenharmony_ci#define DL6_MAXLEN_MASK_SFT (0xf << 16) 126462306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_SFT 15 126562306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_MASK 0x1 126662306a36Sopenharmony_ci#define DL6_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 126762306a36Sopenharmony_ci#define DL6_PBUF_SIZE_SFT 12 126862306a36Sopenharmony_ci#define DL6_PBUF_SIZE_MASK 0x3 126962306a36Sopenharmony_ci#define DL6_PBUF_SIZE_MASK_SFT (0x3 << 12) 127062306a36Sopenharmony_ci#define DL6_MONO_SFT 8 127162306a36Sopenharmony_ci#define DL6_MONO_MASK 0x1 127262306a36Sopenharmony_ci#define DL6_MONO_MASK_SFT (0x1 << 8) 127362306a36Sopenharmony_ci#define DL6_NORMAL_MODE_SFT 5 127462306a36Sopenharmony_ci#define DL6_NORMAL_MODE_MASK 0x1 127562306a36Sopenharmony_ci#define DL6_NORMAL_MODE_MASK_SFT (0x1 << 5) 127662306a36Sopenharmony_ci#define DL6_HALIGN_SFT 4 127762306a36Sopenharmony_ci#define DL6_HALIGN_MASK 0x1 127862306a36Sopenharmony_ci#define DL6_HALIGN_MASK_SFT (0x1 << 4) 127962306a36Sopenharmony_ci#define DL6_HD_MODE_SFT 0 128062306a36Sopenharmony_ci#define DL6_HD_MODE_MASK 0x3 128162306a36Sopenharmony_ci#define DL6_HD_MODE_MASK_SFT (0x3 << 0) 128262306a36Sopenharmony_ci 128362306a36Sopenharmony_ci/* AFE_DL7_CON0 */ 128462306a36Sopenharmony_ci#define DL7_MODE_SFT 24 128562306a36Sopenharmony_ci#define DL7_MODE_MASK 0xf 128662306a36Sopenharmony_ci#define DL7_MODE_MASK_SFT (0xf << 24) 128762306a36Sopenharmony_ci#define DL7_MINLEN_SFT 20 128862306a36Sopenharmony_ci#define DL7_MINLEN_MASK 0xf 128962306a36Sopenharmony_ci#define DL7_MINLEN_MASK_SFT (0xf << 20) 129062306a36Sopenharmony_ci#define DL7_MAXLEN_SFT 16 129162306a36Sopenharmony_ci#define DL7_MAXLEN_MASK 0xf 129262306a36Sopenharmony_ci#define DL7_MAXLEN_MASK_SFT (0xf << 16) 129362306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_SFT 15 129462306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_MASK 0x1 129562306a36Sopenharmony_ci#define DL7_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 129662306a36Sopenharmony_ci#define DL7_PBUF_SIZE_SFT 12 129762306a36Sopenharmony_ci#define DL7_PBUF_SIZE_MASK 0x3 129862306a36Sopenharmony_ci#define DL7_PBUF_SIZE_MASK_SFT (0x3 << 12) 129962306a36Sopenharmony_ci#define DL7_MONO_SFT 8 130062306a36Sopenharmony_ci#define DL7_MONO_MASK 0x1 130162306a36Sopenharmony_ci#define DL7_MONO_MASK_SFT (0x1 << 8) 130262306a36Sopenharmony_ci#define DL7_NORMAL_MODE_SFT 5 130362306a36Sopenharmony_ci#define DL7_NORMAL_MODE_MASK 0x1 130462306a36Sopenharmony_ci#define DL7_NORMAL_MODE_MASK_SFT (0x1 << 5) 130562306a36Sopenharmony_ci#define DL7_HALIGN_SFT 4 130662306a36Sopenharmony_ci#define DL7_HALIGN_MASK 0x1 130762306a36Sopenharmony_ci#define DL7_HALIGN_MASK_SFT (0x1 << 4) 130862306a36Sopenharmony_ci#define DL7_HD_MODE_SFT 0 130962306a36Sopenharmony_ci#define DL7_HD_MODE_MASK 0x3 131062306a36Sopenharmony_ci#define DL7_HD_MODE_MASK_SFT (0x3 << 0) 131162306a36Sopenharmony_ci 131262306a36Sopenharmony_ci/* AFE_DL8_CON0 */ 131362306a36Sopenharmony_ci#define DL8_MODE_SFT 24 131462306a36Sopenharmony_ci#define DL8_MODE_MASK 0xf 131562306a36Sopenharmony_ci#define DL8_MODE_MASK_SFT (0xf << 24) 131662306a36Sopenharmony_ci#define DL8_MINLEN_SFT 20 131762306a36Sopenharmony_ci#define DL8_MINLEN_MASK 0xf 131862306a36Sopenharmony_ci#define DL8_MINLEN_MASK_SFT (0xf << 20) 131962306a36Sopenharmony_ci#define DL8_MAXLEN_SFT 16 132062306a36Sopenharmony_ci#define DL8_MAXLEN_MASK 0xf 132162306a36Sopenharmony_ci#define DL8_MAXLEN_MASK_SFT (0xf << 16) 132262306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_SFT 15 132362306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_MASK 0x1 132462306a36Sopenharmony_ci#define DL8_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 132562306a36Sopenharmony_ci#define DL8_PBUF_SIZE_SFT 12 132662306a36Sopenharmony_ci#define DL8_PBUF_SIZE_MASK 0x3 132762306a36Sopenharmony_ci#define DL8_PBUF_SIZE_MASK_SFT (0x3 << 12) 132862306a36Sopenharmony_ci#define DL8_MONO_SFT 8 132962306a36Sopenharmony_ci#define DL8_MONO_MASK 0x1 133062306a36Sopenharmony_ci#define DL8_MONO_MASK_SFT (0x1 << 8) 133162306a36Sopenharmony_ci#define DL8_NORMAL_MODE_SFT 5 133262306a36Sopenharmony_ci#define DL8_NORMAL_MODE_MASK 0x1 133362306a36Sopenharmony_ci#define DL8_NORMAL_MODE_MASK_SFT (0x1 << 5) 133462306a36Sopenharmony_ci#define DL8_HALIGN_SFT 4 133562306a36Sopenharmony_ci#define DL8_HALIGN_MASK 0x1 133662306a36Sopenharmony_ci#define DL8_HALIGN_MASK_SFT (0x1 << 4) 133762306a36Sopenharmony_ci#define DL8_HD_MODE_SFT 0 133862306a36Sopenharmony_ci#define DL8_HD_MODE_MASK 0x3 133962306a36Sopenharmony_ci#define DL8_HD_MODE_MASK_SFT (0x3 << 0) 134062306a36Sopenharmony_ci 134162306a36Sopenharmony_ci/* AFE_DL9_CON0 */ 134262306a36Sopenharmony_ci#define DL9_MODE_SFT 24 134362306a36Sopenharmony_ci#define DL9_MODE_MASK 0xf 134462306a36Sopenharmony_ci#define DL9_MODE_MASK_SFT (0xf << 24) 134562306a36Sopenharmony_ci#define DL9_MINLEN_SFT 20 134662306a36Sopenharmony_ci#define DL9_MINLEN_MASK 0xf 134762306a36Sopenharmony_ci#define DL9_MINLEN_MASK_SFT (0xf << 20) 134862306a36Sopenharmony_ci#define DL9_MAXLEN_SFT 16 134962306a36Sopenharmony_ci#define DL9_MAXLEN_MASK 0xf 135062306a36Sopenharmony_ci#define DL9_MAXLEN_MASK_SFT (0xf << 16) 135162306a36Sopenharmony_ci#define DL9_SW_CLEAR_BUF_EMPTY_SFT 15 135262306a36Sopenharmony_ci#define DL9_SW_CLEAR_BUF_EMPTY_MASK 0x1 135362306a36Sopenharmony_ci#define DL9_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 135462306a36Sopenharmony_ci#define DL9_PBUF_SIZE_SFT 12 135562306a36Sopenharmony_ci#define DL9_PBUF_SIZE_MASK 0x3 135662306a36Sopenharmony_ci#define DL9_PBUF_SIZE_MASK_SFT (0x3 << 12) 135762306a36Sopenharmony_ci#define DL9_MONO_SFT 8 135862306a36Sopenharmony_ci#define DL9_MONO_MASK 0x1 135962306a36Sopenharmony_ci#define DL9_MONO_MASK_SFT (0x1 << 8) 136062306a36Sopenharmony_ci#define DL9_NORMAL_MODE_SFT 5 136162306a36Sopenharmony_ci#define DL9_NORMAL_MODE_MASK 0x1 136262306a36Sopenharmony_ci#define DL9_NORMAL_MODE_MASK_SFT (0x1 << 5) 136362306a36Sopenharmony_ci#define DL9_HALIGN_SFT 4 136462306a36Sopenharmony_ci#define DL9_HALIGN_MASK 0x1 136562306a36Sopenharmony_ci#define DL9_HALIGN_MASK_SFT (0x1 << 4) 136662306a36Sopenharmony_ci#define DL9_HD_MODE_SFT 0 136762306a36Sopenharmony_ci#define DL9_HD_MODE_MASK 0x3 136862306a36Sopenharmony_ci#define DL9_HD_MODE_MASK_SFT (0x3 << 0) 136962306a36Sopenharmony_ci 137062306a36Sopenharmony_ci/* AFE_DL12_CON0 */ 137162306a36Sopenharmony_ci#define DL12_MODE_SFT 24 137262306a36Sopenharmony_ci#define DL12_MODE_MASK 0xf 137362306a36Sopenharmony_ci#define DL12_MODE_MASK_SFT (0xf << 24) 137462306a36Sopenharmony_ci#define DL12_MINLEN_SFT 20 137562306a36Sopenharmony_ci#define DL12_MINLEN_MASK 0xf 137662306a36Sopenharmony_ci#define DL12_MINLEN_MASK_SFT (0xf << 20) 137762306a36Sopenharmony_ci#define DL12_MAXLEN_SFT 16 137862306a36Sopenharmony_ci#define DL12_MAXLEN_MASK 0xf 137962306a36Sopenharmony_ci#define DL12_MAXLEN_MASK_SFT (0xf << 16) 138062306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_SFT 15 138162306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_MASK 0x1 138262306a36Sopenharmony_ci#define DL12_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 138362306a36Sopenharmony_ci#define DL12_PBUF_SIZE_SFT 12 138462306a36Sopenharmony_ci#define DL12_PBUF_SIZE_MASK 0x3 138562306a36Sopenharmony_ci#define DL12_PBUF_SIZE_MASK_SFT (0x3 << 12) 138662306a36Sopenharmony_ci#define DL12_4CH_EN_SFT 11 138762306a36Sopenharmony_ci#define DL12_4CH_EN_MASK 0x1 138862306a36Sopenharmony_ci#define DL12_4CH_EN_MASK_SFT (0x1 << 11) 138962306a36Sopenharmony_ci#define DL12_MONO_SFT 8 139062306a36Sopenharmony_ci#define DL12_MONO_MASK 0x1 139162306a36Sopenharmony_ci#define DL12_MONO_MASK_SFT (0x1 << 8) 139262306a36Sopenharmony_ci#define DL12_NORMAL_MODE_SFT 5 139362306a36Sopenharmony_ci#define DL12_NORMAL_MODE_MASK 0x1 139462306a36Sopenharmony_ci#define DL12_NORMAL_MODE_MASK_SFT (0x1 << 5) 139562306a36Sopenharmony_ci#define DL12_HALIGN_SFT 4 139662306a36Sopenharmony_ci#define DL12_HALIGN_MASK 0x1 139762306a36Sopenharmony_ci#define DL12_HALIGN_MASK_SFT (0x1 << 4) 139862306a36Sopenharmony_ci#define DL12_HD_MODE_SFT 0 139962306a36Sopenharmony_ci#define DL12_HD_MODE_MASK 0x3 140062306a36Sopenharmony_ci#define DL12_HD_MODE_MASK_SFT (0x3 << 0) 140162306a36Sopenharmony_ci 140262306a36Sopenharmony_ci/* AFE_AWB_CON0 */ 140362306a36Sopenharmony_ci#define AWB_MODE_SFT 24 140462306a36Sopenharmony_ci#define AWB_MODE_MASK 0xf 140562306a36Sopenharmony_ci#define AWB_MODE_MASK_SFT (0xf << 24) 140662306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_SFT 15 140762306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_MASK 0x1 140862306a36Sopenharmony_ci#define AWB_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 140962306a36Sopenharmony_ci#define AWB_R_MONO_SFT 9 141062306a36Sopenharmony_ci#define AWB_R_MONO_MASK 0x1 141162306a36Sopenharmony_ci#define AWB_R_MONO_MASK_SFT (0x1 << 9) 141262306a36Sopenharmony_ci#define AWB_MONO_SFT 8 141362306a36Sopenharmony_ci#define AWB_MONO_MASK 0x1 141462306a36Sopenharmony_ci#define AWB_MONO_MASK_SFT (0x1 << 8) 141562306a36Sopenharmony_ci#define AWB_WR_SIGN_SFT 6 141662306a36Sopenharmony_ci#define AWB_WR_SIGN_MASK 0x1 141762306a36Sopenharmony_ci#define AWB_WR_SIGN_MASK_SFT (0x1 << 6) 141862306a36Sopenharmony_ci#define AWB_NORMAL_MODE_SFT 5 141962306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK 0x1 142062306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK_SFT (0x1 << 5) 142162306a36Sopenharmony_ci#define AWB_HALIGN_SFT 4 142262306a36Sopenharmony_ci#define AWB_HALIGN_MASK 0x1 142362306a36Sopenharmony_ci#define AWB_HALIGN_MASK_SFT (0x1 << 4) 142462306a36Sopenharmony_ci#define AWB_HD_MODE_SFT 0 142562306a36Sopenharmony_ci#define AWB_HD_MODE_MASK 0x3 142662306a36Sopenharmony_ci#define AWB_HD_MODE_MASK_SFT (0x3 << 0) 142762306a36Sopenharmony_ci 142862306a36Sopenharmony_ci/* AFE_AWB2_CON0 */ 142962306a36Sopenharmony_ci#define AWB2_MODE_SFT 24 143062306a36Sopenharmony_ci#define AWB2_MODE_MASK 0xf 143162306a36Sopenharmony_ci#define AWB2_MODE_MASK_SFT (0xf << 24) 143262306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_SFT 15 143362306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_MASK 0x1 143462306a36Sopenharmony_ci#define AWB2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 143562306a36Sopenharmony_ci#define AWB2_R_MONO_SFT 9 143662306a36Sopenharmony_ci#define AWB2_R_MONO_MASK 0x1 143762306a36Sopenharmony_ci#define AWB2_R_MONO_MASK_SFT (0x1 << 9) 143862306a36Sopenharmony_ci#define AWB2_MONO_SFT 8 143962306a36Sopenharmony_ci#define AWB2_MONO_MASK 0x1 144062306a36Sopenharmony_ci#define AWB2_MONO_MASK_SFT (0x1 << 8) 144162306a36Sopenharmony_ci#define AWB2_WR_SIGN_SFT 6 144262306a36Sopenharmony_ci#define AWB2_WR_SIGN_MASK 0x1 144362306a36Sopenharmony_ci#define AWB2_WR_SIGN_MASK_SFT (0x1 << 6) 144462306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_SFT 5 144562306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK 0x1 144662306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK_SFT (0x1 << 5) 144762306a36Sopenharmony_ci#define AWB2_HALIGN_SFT 4 144862306a36Sopenharmony_ci#define AWB2_HALIGN_MASK 0x1 144962306a36Sopenharmony_ci#define AWB2_HALIGN_MASK_SFT (0x1 << 4) 145062306a36Sopenharmony_ci#define AWB2_HD_MODE_SFT 0 145162306a36Sopenharmony_ci#define AWB2_HD_MODE_MASK 0x3 145262306a36Sopenharmony_ci#define AWB2_HD_MODE_MASK_SFT (0x3 << 0) 145362306a36Sopenharmony_ci 145462306a36Sopenharmony_ci/* AFE_VUL_CON0 */ 145562306a36Sopenharmony_ci#define VUL_MODE_SFT 24 145662306a36Sopenharmony_ci#define VUL_MODE_MASK 0xf 145762306a36Sopenharmony_ci#define VUL_MODE_MASK_SFT (0xf << 24) 145862306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_SFT 15 145962306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_MASK 0x1 146062306a36Sopenharmony_ci#define VUL_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 146162306a36Sopenharmony_ci#define VUL_R_MONO_SFT 9 146262306a36Sopenharmony_ci#define VUL_R_MONO_MASK 0x1 146362306a36Sopenharmony_ci#define VUL_R_MONO_MASK_SFT (0x1 << 9) 146462306a36Sopenharmony_ci#define VUL_MONO_SFT 8 146562306a36Sopenharmony_ci#define VUL_MONO_MASK 0x1 146662306a36Sopenharmony_ci#define VUL_MONO_MASK_SFT (0x1 << 8) 146762306a36Sopenharmony_ci#define VUL_WR_SIGN_SFT 6 146862306a36Sopenharmony_ci#define VUL_WR_SIGN_MASK 0x1 146962306a36Sopenharmony_ci#define VUL_WR_SIGN_MASK_SFT (0x1 << 6) 147062306a36Sopenharmony_ci#define VUL_NORMAL_MODE_SFT 5 147162306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK 0x1 147262306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK_SFT (0x1 << 5) 147362306a36Sopenharmony_ci#define VUL_HALIGN_SFT 4 147462306a36Sopenharmony_ci#define VUL_HALIGN_MASK 0x1 147562306a36Sopenharmony_ci#define VUL_HALIGN_MASK_SFT (0x1 << 4) 147662306a36Sopenharmony_ci#define VUL_HD_MODE_SFT 0 147762306a36Sopenharmony_ci#define VUL_HD_MODE_MASK 0x3 147862306a36Sopenharmony_ci#define VUL_HD_MODE_MASK_SFT (0x3 << 0) 147962306a36Sopenharmony_ci 148062306a36Sopenharmony_ci/* AFE_VUL12_CON0 */ 148162306a36Sopenharmony_ci#define VUL12_MODE_SFT 24 148262306a36Sopenharmony_ci#define VUL12_MODE_MASK 0xf 148362306a36Sopenharmony_ci#define VUL12_MODE_MASK_SFT (0xf << 24) 148462306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_SFT 15 148562306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_MASK 0x1 148662306a36Sopenharmony_ci#define VUL12_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 148762306a36Sopenharmony_ci#define VUL12_4CH_EN_SFT 11 148862306a36Sopenharmony_ci#define VUL12_4CH_EN_MASK 0x1 148962306a36Sopenharmony_ci#define VUL12_4CH_EN_MASK_SFT (0x1 << 11) 149062306a36Sopenharmony_ci#define VUL12_R_MONO_SFT 9 149162306a36Sopenharmony_ci#define VUL12_R_MONO_MASK 0x1 149262306a36Sopenharmony_ci#define VUL12_R_MONO_MASK_SFT (0x1 << 9) 149362306a36Sopenharmony_ci#define VUL12_MONO_SFT 8 149462306a36Sopenharmony_ci#define VUL12_MONO_MASK 0x1 149562306a36Sopenharmony_ci#define VUL12_MONO_MASK_SFT (0x1 << 8) 149662306a36Sopenharmony_ci#define VUL12_WR_SIGN_SFT 6 149762306a36Sopenharmony_ci#define VUL12_WR_SIGN_MASK 0x1 149862306a36Sopenharmony_ci#define VUL12_WR_SIGN_MASK_SFT (0x1 << 6) 149962306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_SFT 5 150062306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK 0x1 150162306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK_SFT (0x1 << 5) 150262306a36Sopenharmony_ci#define VUL12_HALIGN_SFT 4 150362306a36Sopenharmony_ci#define VUL12_HALIGN_MASK 0x1 150462306a36Sopenharmony_ci#define VUL12_HALIGN_MASK_SFT (0x1 << 4) 150562306a36Sopenharmony_ci#define VUL12_HD_MODE_SFT 0 150662306a36Sopenharmony_ci#define VUL12_HD_MODE_MASK 0x3 150762306a36Sopenharmony_ci#define VUL12_HD_MODE_MASK_SFT (0x3 << 0) 150862306a36Sopenharmony_ci 150962306a36Sopenharmony_ci/* AFE_VUL2_CON0 */ 151062306a36Sopenharmony_ci#define VUL2_MODE_SFT 24 151162306a36Sopenharmony_ci#define VUL2_MODE_MASK 0xf 151262306a36Sopenharmony_ci#define VUL2_MODE_MASK_SFT (0xf << 24) 151362306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_SFT 15 151462306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_MASK 0x1 151562306a36Sopenharmony_ci#define VUL2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 151662306a36Sopenharmony_ci#define VUL2_R_MONO_SFT 9 151762306a36Sopenharmony_ci#define VUL2_R_MONO_MASK 0x1 151862306a36Sopenharmony_ci#define VUL2_R_MONO_MASK_SFT (0x1 << 9) 151962306a36Sopenharmony_ci#define VUL2_MONO_SFT 8 152062306a36Sopenharmony_ci#define VUL2_MONO_MASK 0x1 152162306a36Sopenharmony_ci#define VUL2_MONO_MASK_SFT (0x1 << 8) 152262306a36Sopenharmony_ci#define VUL2_WR_SIGN_SFT 6 152362306a36Sopenharmony_ci#define VUL2_WR_SIGN_MASK 0x1 152462306a36Sopenharmony_ci#define VUL2_WR_SIGN_MASK_SFT (0x1 << 6) 152562306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_SFT 5 152662306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK 0x1 152762306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK_SFT (0x1 << 5) 152862306a36Sopenharmony_ci#define VUL2_HALIGN_SFT 4 152962306a36Sopenharmony_ci#define VUL2_HALIGN_MASK 0x1 153062306a36Sopenharmony_ci#define VUL2_HALIGN_MASK_SFT (0x1 << 4) 153162306a36Sopenharmony_ci#define VUL2_HD_MODE_SFT 0 153262306a36Sopenharmony_ci#define VUL2_HD_MODE_MASK 0x3 153362306a36Sopenharmony_ci#define VUL2_HD_MODE_MASK_SFT (0x3 << 0) 153462306a36Sopenharmony_ci 153562306a36Sopenharmony_ci/* AFE_VUL3_CON0 */ 153662306a36Sopenharmony_ci#define VUL3_MODE_SFT 24 153762306a36Sopenharmony_ci#define VUL3_MODE_MASK 0xf 153862306a36Sopenharmony_ci#define VUL3_MODE_MASK_SFT (0xf << 24) 153962306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_SFT 15 154062306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_MASK 0x1 154162306a36Sopenharmony_ci#define VUL3_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 154262306a36Sopenharmony_ci#define VUL3_R_MONO_SFT 9 154362306a36Sopenharmony_ci#define VUL3_R_MONO_MASK 0x1 154462306a36Sopenharmony_ci#define VUL3_R_MONO_MASK_SFT (0x1 << 9) 154562306a36Sopenharmony_ci#define VUL3_MONO_SFT 8 154662306a36Sopenharmony_ci#define VUL3_MONO_MASK 0x1 154762306a36Sopenharmony_ci#define VUL3_MONO_MASK_SFT (0x1 << 8) 154862306a36Sopenharmony_ci#define VUL3_WR_SIGN_SFT 6 154962306a36Sopenharmony_ci#define VUL3_WR_SIGN_MASK 0x1 155062306a36Sopenharmony_ci#define VUL3_WR_SIGN_MASK_SFT (0x1 << 6) 155162306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_SFT 5 155262306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_MASK 0x1 155362306a36Sopenharmony_ci#define VUL3_NORMAL_MODE_MASK_SFT (0x1 << 5) 155462306a36Sopenharmony_ci#define VUL3_HALIGN_SFT 4 155562306a36Sopenharmony_ci#define VUL3_HALIGN_MASK 0x1 155662306a36Sopenharmony_ci#define VUL3_HALIGN_MASK_SFT (0x1 << 4) 155762306a36Sopenharmony_ci#define VUL3_HD_MODE_SFT 0 155862306a36Sopenharmony_ci#define VUL3_HD_MODE_MASK 0x3 155962306a36Sopenharmony_ci#define VUL3_HD_MODE_MASK_SFT (0x3 << 0) 156062306a36Sopenharmony_ci 156162306a36Sopenharmony_ci/* AFE_VUL4_CON0 */ 156262306a36Sopenharmony_ci#define VUL4_MODE_SFT 24 156362306a36Sopenharmony_ci#define VUL4_MODE_MASK 0xf 156462306a36Sopenharmony_ci#define VUL4_MODE_MASK_SFT (0xf << 24) 156562306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_SFT 15 156662306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_MASK 0x1 156762306a36Sopenharmony_ci#define VUL4_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 156862306a36Sopenharmony_ci#define VUL4_R_MONO_SFT 9 156962306a36Sopenharmony_ci#define VUL4_R_MONO_MASK 0x1 157062306a36Sopenharmony_ci#define VUL4_R_MONO_MASK_SFT (0x1 << 9) 157162306a36Sopenharmony_ci#define VUL4_MONO_SFT 8 157262306a36Sopenharmony_ci#define VUL4_MONO_MASK 0x1 157362306a36Sopenharmony_ci#define VUL4_MONO_MASK_SFT (0x1 << 8) 157462306a36Sopenharmony_ci#define VUL4_WR_SIGN_SFT 6 157562306a36Sopenharmony_ci#define VUL4_WR_SIGN_MASK 0x1 157662306a36Sopenharmony_ci#define VUL4_WR_SIGN_MASK_SFT (0x1 << 6) 157762306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_SFT 5 157862306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_MASK 0x1 157962306a36Sopenharmony_ci#define VUL4_NORMAL_MODE_MASK_SFT (0x1 << 5) 158062306a36Sopenharmony_ci#define VUL4_HALIGN_SFT 4 158162306a36Sopenharmony_ci#define VUL4_HALIGN_MASK 0x1 158262306a36Sopenharmony_ci#define VUL4_HALIGN_MASK_SFT (0x1 << 4) 158362306a36Sopenharmony_ci#define VUL4_HD_MODE_SFT 0 158462306a36Sopenharmony_ci#define VUL4_HD_MODE_MASK 0x3 158562306a36Sopenharmony_ci#define VUL4_HD_MODE_MASK_SFT (0x3 << 0) 158662306a36Sopenharmony_ci 158762306a36Sopenharmony_ci/* AFE_VUL5_CON0 */ 158862306a36Sopenharmony_ci#define VUL5_MODE_SFT 24 158962306a36Sopenharmony_ci#define VUL5_MODE_MASK 0xf 159062306a36Sopenharmony_ci#define VUL5_MODE_MASK_SFT (0xf << 24) 159162306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_SFT 15 159262306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_MASK 0x1 159362306a36Sopenharmony_ci#define VUL5_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 159462306a36Sopenharmony_ci#define VUL5_R_MONO_SFT 9 159562306a36Sopenharmony_ci#define VUL5_R_MONO_MASK 0x1 159662306a36Sopenharmony_ci#define VUL5_R_MONO_MASK_SFT (0x1 << 9) 159762306a36Sopenharmony_ci#define VUL5_MONO_SFT 8 159862306a36Sopenharmony_ci#define VUL5_MONO_MASK 0x1 159962306a36Sopenharmony_ci#define VUL5_MONO_MASK_SFT (0x1 << 8) 160062306a36Sopenharmony_ci#define VUL5_WR_SIGN_SFT 6 160162306a36Sopenharmony_ci#define VUL5_WR_SIGN_MASK 0x1 160262306a36Sopenharmony_ci#define VUL5_WR_SIGN_MASK_SFT (0x1 << 6) 160362306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_SFT 5 160462306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_MASK 0x1 160562306a36Sopenharmony_ci#define VUL5_NORMAL_MODE_MASK_SFT (0x1 << 5) 160662306a36Sopenharmony_ci#define VUL5_HALIGN_SFT 4 160762306a36Sopenharmony_ci#define VUL5_HALIGN_MASK 0x1 160862306a36Sopenharmony_ci#define VUL5_HALIGN_MASK_SFT (0x1 << 4) 160962306a36Sopenharmony_ci#define VUL5_HD_MODE_SFT 0 161062306a36Sopenharmony_ci#define VUL5_HD_MODE_MASK 0x3 161162306a36Sopenharmony_ci#define VUL5_HD_MODE_MASK_SFT (0x3 << 0) 161262306a36Sopenharmony_ci 161362306a36Sopenharmony_ci/* AFE_VUL6_CON0 */ 161462306a36Sopenharmony_ci#define VUL6_MODE_SFT 24 161562306a36Sopenharmony_ci#define VUL6_MODE_MASK 0xf 161662306a36Sopenharmony_ci#define VUL6_MODE_MASK_SFT (0xf << 24) 161762306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_SFT 15 161862306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_MASK 0x1 161962306a36Sopenharmony_ci#define VUL6_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 162062306a36Sopenharmony_ci#define VUL6_R_MONO_SFT 9 162162306a36Sopenharmony_ci#define VUL6_R_MONO_MASK 0x1 162262306a36Sopenharmony_ci#define VUL6_R_MONO_MASK_SFT (0x1 << 9) 162362306a36Sopenharmony_ci#define VUL6_MONO_SFT 8 162462306a36Sopenharmony_ci#define VUL6_MONO_MASK 0x1 162562306a36Sopenharmony_ci#define VUL6_MONO_MASK_SFT (0x1 << 8) 162662306a36Sopenharmony_ci#define VUL6_WR_SIGN_SFT 6 162762306a36Sopenharmony_ci#define VUL6_WR_SIGN_MASK 0x1 162862306a36Sopenharmony_ci#define VUL6_WR_SIGN_MASK_SFT (0x1 << 6) 162962306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_SFT 5 163062306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_MASK 0x1 163162306a36Sopenharmony_ci#define VUL6_NORMAL_MODE_MASK_SFT (0x1 << 5) 163262306a36Sopenharmony_ci#define VUL6_HALIGN_SFT 4 163362306a36Sopenharmony_ci#define VUL6_HALIGN_MASK 0x1 163462306a36Sopenharmony_ci#define VUL6_HALIGN_MASK_SFT (0x1 << 4) 163562306a36Sopenharmony_ci#define VUL6_HD_MODE_SFT 0 163662306a36Sopenharmony_ci#define VUL6_HD_MODE_MASK 0x3 163762306a36Sopenharmony_ci#define VUL6_HD_MODE_MASK_SFT (0x3 << 0) 163862306a36Sopenharmony_ci 163962306a36Sopenharmony_ci/* AFE_DAI_CON0 */ 164062306a36Sopenharmony_ci#define DAI_MODE_SFT 24 164162306a36Sopenharmony_ci#define DAI_MODE_MASK 0x3 164262306a36Sopenharmony_ci#define DAI_MODE_MASK_SFT (0x3 << 24) 164362306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_SFT 15 164462306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_MASK 0x1 164562306a36Sopenharmony_ci#define DAI_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 164662306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_SFT 10 164762306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_MASK 0x1 164862306a36Sopenharmony_ci#define DAI_DUPLICATE_WR_MASK_SFT (0x1 << 10) 164962306a36Sopenharmony_ci#define DAI_MONO_SFT 8 165062306a36Sopenharmony_ci#define DAI_MONO_MASK 0x1 165162306a36Sopenharmony_ci#define DAI_MONO_MASK_SFT (0x1 << 8) 165262306a36Sopenharmony_ci#define DAI_WR_SIGN_SFT 6 165362306a36Sopenharmony_ci#define DAI_WR_SIGN_MASK 0x1 165462306a36Sopenharmony_ci#define DAI_WR_SIGN_MASK_SFT (0x1 << 6) 165562306a36Sopenharmony_ci#define DAI_NORMAL_MODE_SFT 5 165662306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK 0x1 165762306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK_SFT (0x1 << 5) 165862306a36Sopenharmony_ci#define DAI_HALIGN_SFT 4 165962306a36Sopenharmony_ci#define DAI_HALIGN_MASK 0x1 166062306a36Sopenharmony_ci#define DAI_HALIGN_MASK_SFT (0x1 << 4) 166162306a36Sopenharmony_ci#define DAI_HD_MODE_SFT 0 166262306a36Sopenharmony_ci#define DAI_HD_MODE_MASK 0x3 166362306a36Sopenharmony_ci#define DAI_HD_MODE_MASK_SFT (0x3 << 0) 166462306a36Sopenharmony_ci 166562306a36Sopenharmony_ci/* AFE_MOD_DAI_CON0 */ 166662306a36Sopenharmony_ci#define MOD_DAI_MODE_SFT 24 166762306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK 0x3 166862306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK_SFT (0x3 << 24) 166962306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_SFT 15 167062306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_MASK 0x1 167162306a36Sopenharmony_ci#define MOD_DAI_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 167262306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_SFT 10 167362306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_MASK 0x1 167462306a36Sopenharmony_ci#define MOD_DAI_DUPLICATE_WR_MASK_SFT (0x1 << 10) 167562306a36Sopenharmony_ci#define MOD_DAI_MONO_SFT 8 167662306a36Sopenharmony_ci#define MOD_DAI_MONO_MASK 0x1 167762306a36Sopenharmony_ci#define MOD_DAI_MONO_MASK_SFT (0x1 << 8) 167862306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_SFT 6 167962306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_MASK 0x1 168062306a36Sopenharmony_ci#define MOD_DAI_WR_SIGN_MASK_SFT (0x1 << 6) 168162306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_SFT 5 168262306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK 0x1 168362306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK_SFT (0x1 << 5) 168462306a36Sopenharmony_ci#define MOD_DAI_HALIGN_SFT 4 168562306a36Sopenharmony_ci#define MOD_DAI_HALIGN_MASK 0x1 168662306a36Sopenharmony_ci#define MOD_DAI_HALIGN_MASK_SFT (0x1 << 4) 168762306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_SFT 0 168862306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_MASK 0x3 168962306a36Sopenharmony_ci#define MOD_DAI_HD_MODE_MASK_SFT (0x3 << 0) 169062306a36Sopenharmony_ci 169162306a36Sopenharmony_ci/* AFE_DAI2_CON0 */ 169262306a36Sopenharmony_ci#define DAI2_MODE_SFT 24 169362306a36Sopenharmony_ci#define DAI2_MODE_MASK 0xf 169462306a36Sopenharmony_ci#define DAI2_MODE_MASK_SFT (0xf << 24) 169562306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_SFT 15 169662306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_MASK 0x1 169762306a36Sopenharmony_ci#define DAI2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15) 169862306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_SFT 10 169962306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_MASK 0x1 170062306a36Sopenharmony_ci#define DAI2_DUPLICATE_WR_MASK_SFT (0x1 << 10) 170162306a36Sopenharmony_ci#define DAI2_MONO_SFT 8 170262306a36Sopenharmony_ci#define DAI2_MONO_MASK 0x1 170362306a36Sopenharmony_ci#define DAI2_MONO_MASK_SFT (0x1 << 8) 170462306a36Sopenharmony_ci#define DAI2_WR_SIGN_SFT 6 170562306a36Sopenharmony_ci#define DAI2_WR_SIGN_MASK 0x1 170662306a36Sopenharmony_ci#define DAI2_WR_SIGN_MASK_SFT (0x1 << 6) 170762306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_SFT 5 170862306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_MASK 0x1 170962306a36Sopenharmony_ci#define DAI2_NORMAL_MODE_MASK_SFT (0x1 << 5) 171062306a36Sopenharmony_ci#define DAI2_HALIGN_SFT 4 171162306a36Sopenharmony_ci#define DAI2_HALIGN_MASK 0x1 171262306a36Sopenharmony_ci#define DAI2_HALIGN_MASK_SFT (0x1 << 4) 171362306a36Sopenharmony_ci#define DAI2_HD_MODE_SFT 0 171462306a36Sopenharmony_ci#define DAI2_HD_MODE_MASK 0x3 171562306a36Sopenharmony_ci#define DAI2_HD_MODE_MASK_SFT (0x3 << 0) 171662306a36Sopenharmony_ci 171762306a36Sopenharmony_ci/* AFE_MEMIF_CON0 */ 171862306a36Sopenharmony_ci#define CPU_COMPACT_MODE_SFT 2 171962306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK 0x1 172062306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK_SFT (0x1 << 2) 172162306a36Sopenharmony_ci#define CPU_HD_ALIGN_SFT 1 172262306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK 0x1 172362306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK_SFT (0x1 << 1) 172462306a36Sopenharmony_ci#define SYSRAM_SIGN_SFT 0 172562306a36Sopenharmony_ci#define SYSRAM_SIGN_MASK 0x1 172662306a36Sopenharmony_ci#define SYSRAM_SIGN_MASK_SFT (0x1 << 0) 172762306a36Sopenharmony_ci 172862306a36Sopenharmony_ci/* AFE_HDMI_OUT_CON0 */ 172962306a36Sopenharmony_ci#define HDMI_CH_NUM_SFT 24 173062306a36Sopenharmony_ci#define HDMI_CH_NUM_MASK 0xf 173162306a36Sopenharmony_ci#define HDMI_CH_NUM_MASK_SFT (0xf << 24) 173262306a36Sopenharmony_ci#define HDMI_OUT_MINLEN_SFT 20 173362306a36Sopenharmony_ci#define HDMI_OUT_MINLEN_MASK 0xf 173462306a36Sopenharmony_ci#define HDMI_OUT_MINLEN_MASK_SFT (0xf << 20) 173562306a36Sopenharmony_ci#define HDMI_OUT_MAXLEN_SFT 16 173662306a36Sopenharmony_ci#define HDMI_OUT_MAXLEN_MASK 0xf 173762306a36Sopenharmony_ci#define HDMI_OUT_MAXLEN_MASK_SFT (0xf << 16) 173862306a36Sopenharmony_ci#define HDMI_OUT_SW_CLEAR_BUF_EMPTY_SFT 15 173962306a36Sopenharmony_ci#define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK 0x1 174062306a36Sopenharmony_ci#define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15) 174162306a36Sopenharmony_ci#define HDMI_OUT_PBUF_SIZE_SFT 12 174262306a36Sopenharmony_ci#define HDMI_OUT_PBUF_SIZE_MASK 0x3 174362306a36Sopenharmony_ci#define HDMI_OUT_PBUF_SIZE_MASK_SFT (0x3 << 12) 174462306a36Sopenharmony_ci#define HDMI_OUT_NORMAL_MODE_SFT 5 174562306a36Sopenharmony_ci#define HDMI_OUT_NORMAL_MODE_MASK 0x1 174662306a36Sopenharmony_ci#define HDMI_OUT_NORMAL_MODE_MASK_SFT (0x1 << 5) 174762306a36Sopenharmony_ci#define HDMI_OUT_HALIGN_SFT 4 174862306a36Sopenharmony_ci#define HDMI_OUT_HALIGN_MASK 0x1 174962306a36Sopenharmony_ci#define HDMI_OUT_HALIGN_MASK_SFT (0x1 << 4) 175062306a36Sopenharmony_ci#define HDMI_OUT_HD_MODE_SFT 0 175162306a36Sopenharmony_ci#define HDMI_OUT_HD_MODE_MASK 0x3 175262306a36Sopenharmony_ci#define HDMI_OUT_HD_MODE_MASK_SFT (0x3 << 0) 175362306a36Sopenharmony_ci 175462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON0 */ 175562306a36Sopenharmony_ci#define IRQ31_MCU_ON_SFT 31 175662306a36Sopenharmony_ci#define IRQ31_MCU_ON_MASK 0x1 175762306a36Sopenharmony_ci#define IRQ31_MCU_ON_MASK_SFT (0x1 << 31) 175862306a36Sopenharmony_ci#define IRQ26_MCU_ON_SFT 26 175962306a36Sopenharmony_ci#define IRQ26_MCU_ON_MASK 0x1 176062306a36Sopenharmony_ci#define IRQ26_MCU_ON_MASK_SFT (0x1 << 26) 176162306a36Sopenharmony_ci#define IRQ25_MCU_ON_SFT 25 176262306a36Sopenharmony_ci#define IRQ25_MCU_ON_MASK 0x1 176362306a36Sopenharmony_ci#define IRQ25_MCU_ON_MASK_SFT (0x1 << 25) 176462306a36Sopenharmony_ci#define IRQ24_MCU_ON_SFT 24 176562306a36Sopenharmony_ci#define IRQ24_MCU_ON_MASK 0x1 176662306a36Sopenharmony_ci#define IRQ24_MCU_ON_MASK_SFT (0x1 << 24) 176762306a36Sopenharmony_ci#define IRQ23_MCU_ON_SFT 23 176862306a36Sopenharmony_ci#define IRQ23_MCU_ON_MASK 0x1 176962306a36Sopenharmony_ci#define IRQ23_MCU_ON_MASK_SFT (0x1 << 23) 177062306a36Sopenharmony_ci#define IRQ22_MCU_ON_SFT 22 177162306a36Sopenharmony_ci#define IRQ22_MCU_ON_MASK 0x1 177262306a36Sopenharmony_ci#define IRQ22_MCU_ON_MASK_SFT (0x1 << 22) 177362306a36Sopenharmony_ci#define IRQ21_MCU_ON_SFT 21 177462306a36Sopenharmony_ci#define IRQ21_MCU_ON_MASK 0x1 177562306a36Sopenharmony_ci#define IRQ21_MCU_ON_MASK_SFT (0x1 << 21) 177662306a36Sopenharmony_ci#define IRQ20_MCU_ON_SFT 20 177762306a36Sopenharmony_ci#define IRQ20_MCU_ON_MASK 0x1 177862306a36Sopenharmony_ci#define IRQ20_MCU_ON_MASK_SFT (0x1 << 20) 177962306a36Sopenharmony_ci#define IRQ19_MCU_ON_SFT 19 178062306a36Sopenharmony_ci#define IRQ19_MCU_ON_MASK 0x1 178162306a36Sopenharmony_ci#define IRQ19_MCU_ON_MASK_SFT (0x1 << 19) 178262306a36Sopenharmony_ci#define IRQ18_MCU_ON_SFT 18 178362306a36Sopenharmony_ci#define IRQ18_MCU_ON_MASK 0x1 178462306a36Sopenharmony_ci#define IRQ18_MCU_ON_MASK_SFT (0x1 << 18) 178562306a36Sopenharmony_ci#define IRQ17_MCU_ON_SFT 17 178662306a36Sopenharmony_ci#define IRQ17_MCU_ON_MASK 0x1 178762306a36Sopenharmony_ci#define IRQ17_MCU_ON_MASK_SFT (0x1 << 17) 178862306a36Sopenharmony_ci#define IRQ16_MCU_ON_SFT 16 178962306a36Sopenharmony_ci#define IRQ16_MCU_ON_MASK 0x1 179062306a36Sopenharmony_ci#define IRQ16_MCU_ON_MASK_SFT (0x1 << 16) 179162306a36Sopenharmony_ci#define IRQ15_MCU_ON_SFT 15 179262306a36Sopenharmony_ci#define IRQ15_MCU_ON_MASK 0x1 179362306a36Sopenharmony_ci#define IRQ15_MCU_ON_MASK_SFT (0x1 << 15) 179462306a36Sopenharmony_ci#define IRQ14_MCU_ON_SFT 14 179562306a36Sopenharmony_ci#define IRQ14_MCU_ON_MASK 0x1 179662306a36Sopenharmony_ci#define IRQ14_MCU_ON_MASK_SFT (0x1 << 14) 179762306a36Sopenharmony_ci#define IRQ13_MCU_ON_SFT 13 179862306a36Sopenharmony_ci#define IRQ13_MCU_ON_MASK 0x1 179962306a36Sopenharmony_ci#define IRQ13_MCU_ON_MASK_SFT (0x1 << 13) 180062306a36Sopenharmony_ci#define IRQ12_MCU_ON_SFT 12 180162306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK 0x1 180262306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK_SFT (0x1 << 12) 180362306a36Sopenharmony_ci#define IRQ11_MCU_ON_SFT 11 180462306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK 0x1 180562306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK_SFT (0x1 << 11) 180662306a36Sopenharmony_ci#define IRQ10_MCU_ON_SFT 10 180762306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK 0x1 180862306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK_SFT (0x1 << 10) 180962306a36Sopenharmony_ci#define IRQ9_MCU_ON_SFT 9 181062306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK 0x1 181162306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK_SFT (0x1 << 9) 181262306a36Sopenharmony_ci#define IRQ8_MCU_ON_SFT 8 181362306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK 0x1 181462306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK_SFT (0x1 << 8) 181562306a36Sopenharmony_ci#define IRQ7_MCU_ON_SFT 7 181662306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK 0x1 181762306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK_SFT (0x1 << 7) 181862306a36Sopenharmony_ci#define IRQ6_MCU_ON_SFT 6 181962306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK 0x1 182062306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK_SFT (0x1 << 6) 182162306a36Sopenharmony_ci#define IRQ5_MCU_ON_SFT 5 182262306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK 0x1 182362306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK_SFT (0x1 << 5) 182462306a36Sopenharmony_ci#define IRQ4_MCU_ON_SFT 4 182562306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK 0x1 182662306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK_SFT (0x1 << 4) 182762306a36Sopenharmony_ci#define IRQ3_MCU_ON_SFT 3 182862306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK 0x1 182962306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK_SFT (0x1 << 3) 183062306a36Sopenharmony_ci#define IRQ2_MCU_ON_SFT 2 183162306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK 0x1 183262306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK_SFT (0x1 << 2) 183362306a36Sopenharmony_ci#define IRQ1_MCU_ON_SFT 1 183462306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK 0x1 183562306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK_SFT (0x1 << 1) 183662306a36Sopenharmony_ci#define IRQ0_MCU_ON_SFT 0 183762306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK 0x1 183862306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK_SFT (0x1 << 0) 183962306a36Sopenharmony_ci 184062306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON1 */ 184162306a36Sopenharmony_ci#define IRQ7_MCU_MODE_SFT 28 184262306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK 0xf 184362306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK_SFT (0xf << 28) 184462306a36Sopenharmony_ci#define IRQ6_MCU_MODE_SFT 24 184562306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK 0xf 184662306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK_SFT (0xf << 24) 184762306a36Sopenharmony_ci#define IRQ5_MCU_MODE_SFT 20 184862306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK 0xf 184962306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK_SFT (0xf << 20) 185062306a36Sopenharmony_ci#define IRQ4_MCU_MODE_SFT 16 185162306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK 0xf 185262306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK_SFT (0xf << 16) 185362306a36Sopenharmony_ci#define IRQ3_MCU_MODE_SFT 12 185462306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK 0xf 185562306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK_SFT (0xf << 12) 185662306a36Sopenharmony_ci#define IRQ2_MCU_MODE_SFT 8 185762306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK 0xf 185862306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK_SFT (0xf << 8) 185962306a36Sopenharmony_ci#define IRQ1_MCU_MODE_SFT 4 186062306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK 0xf 186162306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK_SFT (0xf << 4) 186262306a36Sopenharmony_ci#define IRQ0_MCU_MODE_SFT 0 186362306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK 0xf 186462306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK_SFT (0xf << 0) 186562306a36Sopenharmony_ci 186662306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON2 */ 186762306a36Sopenharmony_ci#define IRQ15_MCU_MODE_SFT 28 186862306a36Sopenharmony_ci#define IRQ15_MCU_MODE_MASK 0xf 186962306a36Sopenharmony_ci#define IRQ15_MCU_MODE_MASK_SFT (0xf << 28) 187062306a36Sopenharmony_ci#define IRQ14_MCU_MODE_SFT 24 187162306a36Sopenharmony_ci#define IRQ14_MCU_MODE_MASK 0xf 187262306a36Sopenharmony_ci#define IRQ14_MCU_MODE_MASK_SFT (0xf << 24) 187362306a36Sopenharmony_ci#define IRQ13_MCU_MODE_SFT 20 187462306a36Sopenharmony_ci#define IRQ13_MCU_MODE_MASK 0xf 187562306a36Sopenharmony_ci#define IRQ13_MCU_MODE_MASK_SFT (0xf << 20) 187662306a36Sopenharmony_ci#define IRQ12_MCU_MODE_SFT 16 187762306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK 0xf 187862306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK_SFT (0xf << 16) 187962306a36Sopenharmony_ci#define IRQ11_MCU_MODE_SFT 12 188062306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK 0xf 188162306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK_SFT (0xf << 12) 188262306a36Sopenharmony_ci#define IRQ10_MCU_MODE_SFT 8 188362306a36Sopenharmony_ci#define IRQ10_MCU_MODE_MASK 0xf 188462306a36Sopenharmony_ci#define IRQ10_MCU_MODE_MASK_SFT (0xf << 8) 188562306a36Sopenharmony_ci#define IRQ9_MCU_MODE_SFT 4 188662306a36Sopenharmony_ci#define IRQ9_MCU_MODE_MASK 0xf 188762306a36Sopenharmony_ci#define IRQ9_MCU_MODE_MASK_SFT (0xf << 4) 188862306a36Sopenharmony_ci#define IRQ8_MCU_MODE_SFT 0 188962306a36Sopenharmony_ci#define IRQ8_MCU_MODE_MASK 0xf 189062306a36Sopenharmony_ci#define IRQ8_MCU_MODE_MASK_SFT (0xf << 0) 189162306a36Sopenharmony_ci 189262306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON3 */ 189362306a36Sopenharmony_ci#define IRQ23_MCU_MODE_SFT 28 189462306a36Sopenharmony_ci#define IRQ23_MCU_MODE_MASK 0xf 189562306a36Sopenharmony_ci#define IRQ23_MCU_MODE_MASK_SFT (0xf << 28) 189662306a36Sopenharmony_ci#define IRQ22_MCU_MODE_SFT 24 189762306a36Sopenharmony_ci#define IRQ22_MCU_MODE_MASK 0xf 189862306a36Sopenharmony_ci#define IRQ22_MCU_MODE_MASK_SFT (0xf << 24) 189962306a36Sopenharmony_ci#define IRQ21_MCU_MODE_SFT 20 190062306a36Sopenharmony_ci#define IRQ21_MCU_MODE_MASK 0xf 190162306a36Sopenharmony_ci#define IRQ21_MCU_MODE_MASK_SFT (0xf << 20) 190262306a36Sopenharmony_ci#define IRQ20_MCU_MODE_SFT 16 190362306a36Sopenharmony_ci#define IRQ20_MCU_MODE_MASK 0xf 190462306a36Sopenharmony_ci#define IRQ20_MCU_MODE_MASK_SFT (0xf << 16) 190562306a36Sopenharmony_ci#define IRQ19_MCU_MODE_SFT 12 190662306a36Sopenharmony_ci#define IRQ19_MCU_MODE_MASK 0xf 190762306a36Sopenharmony_ci#define IRQ19_MCU_MODE_MASK_SFT (0xf << 12) 190862306a36Sopenharmony_ci#define IRQ18_MCU_MODE_SFT 8 190962306a36Sopenharmony_ci#define IRQ18_MCU_MODE_MASK 0xf 191062306a36Sopenharmony_ci#define IRQ18_MCU_MODE_MASK_SFT (0xf << 8) 191162306a36Sopenharmony_ci#define IRQ17_MCU_MODE_SFT 4 191262306a36Sopenharmony_ci#define IRQ17_MCU_MODE_MASK 0xf 191362306a36Sopenharmony_ci#define IRQ17_MCU_MODE_MASK_SFT (0xf << 4) 191462306a36Sopenharmony_ci#define IRQ16_MCU_MODE_SFT 0 191562306a36Sopenharmony_ci#define IRQ16_MCU_MODE_MASK 0xf 191662306a36Sopenharmony_ci#define IRQ16_MCU_MODE_MASK_SFT (0xf << 0) 191762306a36Sopenharmony_ci 191862306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON4 */ 191962306a36Sopenharmony_ci#define IRQ26_MCU_MODE_SFT 8 192062306a36Sopenharmony_ci#define IRQ26_MCU_MODE_MASK 0xf 192162306a36Sopenharmony_ci#define IRQ26_MCU_MODE_MASK_SFT (0xf << 8) 192262306a36Sopenharmony_ci#define IRQ25_MCU_MODE_SFT 4 192362306a36Sopenharmony_ci#define IRQ25_MCU_MODE_MASK 0xf 192462306a36Sopenharmony_ci#define IRQ25_MCU_MODE_MASK_SFT (0xf << 4) 192562306a36Sopenharmony_ci#define IRQ24_MCU_MODE_SFT 0 192662306a36Sopenharmony_ci#define IRQ24_MCU_MODE_MASK 0xf 192762306a36Sopenharmony_ci#define IRQ24_MCU_MODE_MASK_SFT (0xf << 0) 192862306a36Sopenharmony_ci 192962306a36Sopenharmony_ci/* AFE_IRQ_MCU_CLR */ 193062306a36Sopenharmony_ci#define IRQ31_MCU_CLR_SFT 31 193162306a36Sopenharmony_ci#define IRQ31_MCU_CLR_MASK 0x1 193262306a36Sopenharmony_ci#define IRQ31_MCU_CLR_MASK_SFT (0x1 << 31) 193362306a36Sopenharmony_ci#define IRQ26_MCU_CLR_SFT 26 193462306a36Sopenharmony_ci#define IRQ26_MCU_CLR_MASK 0x1 193562306a36Sopenharmony_ci#define IRQ26_MCU_CLR_MASK_SFT (0x1 << 26) 193662306a36Sopenharmony_ci#define IRQ25_MCU_CLR_SFT 25 193762306a36Sopenharmony_ci#define IRQ25_MCU_CLR_MASK 0x1 193862306a36Sopenharmony_ci#define IRQ25_MCU_CLR_MASK_SFT (0x1 << 25) 193962306a36Sopenharmony_ci#define IRQ24_MCU_CLR_SFT 24 194062306a36Sopenharmony_ci#define IRQ24_MCU_CLR_MASK 0x1 194162306a36Sopenharmony_ci#define IRQ24_MCU_CLR_MASK_SFT (0x1 << 24) 194262306a36Sopenharmony_ci#define IRQ23_MCU_CLR_SFT 23 194362306a36Sopenharmony_ci#define IRQ23_MCU_CLR_MASK 0x1 194462306a36Sopenharmony_ci#define IRQ23_MCU_CLR_MASK_SFT (0x1 << 23) 194562306a36Sopenharmony_ci#define IRQ22_MCU_CLR_SFT 22 194662306a36Sopenharmony_ci#define IRQ22_MCU_CLR_MASK 0x1 194762306a36Sopenharmony_ci#define IRQ22_MCU_CLR_MASK_SFT (0x1 << 22) 194862306a36Sopenharmony_ci#define IRQ21_MCU_CLR_SFT 21 194962306a36Sopenharmony_ci#define IRQ21_MCU_CLR_MASK 0x1 195062306a36Sopenharmony_ci#define IRQ21_MCU_CLR_MASK_SFT (0x1 << 21) 195162306a36Sopenharmony_ci#define IRQ20_MCU_CLR_SFT 20 195262306a36Sopenharmony_ci#define IRQ20_MCU_CLR_MASK 0x1 195362306a36Sopenharmony_ci#define IRQ20_MCU_CLR_MASK_SFT (0x1 << 20) 195462306a36Sopenharmony_ci#define IRQ19_MCU_CLR_SFT 19 195562306a36Sopenharmony_ci#define IRQ19_MCU_CLR_MASK 0x1 195662306a36Sopenharmony_ci#define IRQ19_MCU_CLR_MASK_SFT (0x1 << 19) 195762306a36Sopenharmony_ci#define IRQ18_MCU_CLR_SFT 18 195862306a36Sopenharmony_ci#define IRQ18_MCU_CLR_MASK 0x1 195962306a36Sopenharmony_ci#define IRQ18_MCU_CLR_MASK_SFT (0x1 << 18) 196062306a36Sopenharmony_ci#define IRQ17_MCU_CLR_SFT 17 196162306a36Sopenharmony_ci#define IRQ17_MCU_CLR_MASK 0x1 196262306a36Sopenharmony_ci#define IRQ17_MCU_CLR_MASK_SFT (0x1 << 17) 196362306a36Sopenharmony_ci#define IRQ16_MCU_CLR_SFT 16 196462306a36Sopenharmony_ci#define IRQ16_MCU_CLR_MASK 0x1 196562306a36Sopenharmony_ci#define IRQ16_MCU_CLR_MASK_SFT (0x1 << 16) 196662306a36Sopenharmony_ci#define IRQ15_MCU_CLR_SFT 15 196762306a36Sopenharmony_ci#define IRQ15_MCU_CLR_MASK 0x1 196862306a36Sopenharmony_ci#define IRQ15_MCU_CLR_MASK_SFT (0x1 << 15) 196962306a36Sopenharmony_ci#define IRQ14_MCU_CLR_SFT 14 197062306a36Sopenharmony_ci#define IRQ14_MCU_CLR_MASK 0x1 197162306a36Sopenharmony_ci#define IRQ14_MCU_CLR_MASK_SFT (0x1 << 14) 197262306a36Sopenharmony_ci#define IRQ13_MCU_CLR_SFT 13 197362306a36Sopenharmony_ci#define IRQ13_MCU_CLR_MASK 0x1 197462306a36Sopenharmony_ci#define IRQ13_MCU_CLR_MASK_SFT (0x1 << 13) 197562306a36Sopenharmony_ci#define IRQ12_MCU_CLR_SFT 12 197662306a36Sopenharmony_ci#define IRQ12_MCU_CLR_MASK 0x1 197762306a36Sopenharmony_ci#define IRQ12_MCU_CLR_MASK_SFT (0x1 << 12) 197862306a36Sopenharmony_ci#define IRQ11_MCU_CLR_SFT 11 197962306a36Sopenharmony_ci#define IRQ11_MCU_CLR_MASK 0x1 198062306a36Sopenharmony_ci#define IRQ11_MCU_CLR_MASK_SFT (0x1 << 11) 198162306a36Sopenharmony_ci#define IRQ10_MCU_CLR_SFT 10 198262306a36Sopenharmony_ci#define IRQ10_MCU_CLR_MASK 0x1 198362306a36Sopenharmony_ci#define IRQ10_MCU_CLR_MASK_SFT (0x1 << 10) 198462306a36Sopenharmony_ci#define IRQ9_MCU_CLR_SFT 9 198562306a36Sopenharmony_ci#define IRQ9_MCU_CLR_MASK 0x1 198662306a36Sopenharmony_ci#define IRQ9_MCU_CLR_MASK_SFT (0x1 << 9) 198762306a36Sopenharmony_ci#define IRQ8_MCU_CLR_SFT 8 198862306a36Sopenharmony_ci#define IRQ8_MCU_CLR_MASK 0x1 198962306a36Sopenharmony_ci#define IRQ8_MCU_CLR_MASK_SFT (0x1 << 8) 199062306a36Sopenharmony_ci#define IRQ7_MCU_CLR_SFT 7 199162306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK 0x1 199262306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK_SFT (0x1 << 7) 199362306a36Sopenharmony_ci#define IRQ6_MCU_CLR_SFT 6 199462306a36Sopenharmony_ci#define IRQ6_MCU_CLR_MASK 0x1 199562306a36Sopenharmony_ci#define IRQ6_MCU_CLR_MASK_SFT (0x1 << 6) 199662306a36Sopenharmony_ci#define IRQ5_MCU_CLR_SFT 5 199762306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK 0x1 199862306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK_SFT (0x1 << 5) 199962306a36Sopenharmony_ci#define IRQ4_MCU_CLR_SFT 4 200062306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK 0x1 200162306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK_SFT (0x1 << 4) 200262306a36Sopenharmony_ci#define IRQ3_MCU_CLR_SFT 3 200362306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK 0x1 200462306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK_SFT (0x1 << 3) 200562306a36Sopenharmony_ci#define IRQ2_MCU_CLR_SFT 2 200662306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK 0x1 200762306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK_SFT (0x1 << 2) 200862306a36Sopenharmony_ci#define IRQ1_MCU_CLR_SFT 1 200962306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK 0x1 201062306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK_SFT (0x1 << 1) 201162306a36Sopenharmony_ci#define IRQ0_MCU_CLR_SFT 0 201262306a36Sopenharmony_ci#define IRQ0_MCU_CLR_MASK 0x1 201362306a36Sopenharmony_ci#define IRQ0_MCU_CLR_MASK_SFT (0x1 << 0) 201462306a36Sopenharmony_ci 201562306a36Sopenharmony_ci/* AFE_IRQ_MCU_EN */ 201662306a36Sopenharmony_ci#define IRQ31_MCU_EN_SFT 31 201762306a36Sopenharmony_ci#define IRQ30_MCU_EN_SFT 30 201862306a36Sopenharmony_ci#define IRQ29_MCU_EN_SFT 29 201962306a36Sopenharmony_ci#define IRQ28_MCU_EN_SFT 28 202062306a36Sopenharmony_ci#define IRQ27_MCU_EN_SFT 27 202162306a36Sopenharmony_ci#define IRQ26_MCU_EN_SFT 26 202262306a36Sopenharmony_ci#define IRQ25_MCU_EN_SFT 25 202362306a36Sopenharmony_ci#define IRQ24_MCU_EN_SFT 24 202462306a36Sopenharmony_ci#define IRQ23_MCU_EN_SFT 23 202562306a36Sopenharmony_ci#define IRQ22_MCU_EN_SFT 22 202662306a36Sopenharmony_ci#define IRQ21_MCU_EN_SFT 21 202762306a36Sopenharmony_ci#define IRQ20_MCU_EN_SFT 20 202862306a36Sopenharmony_ci#define IRQ19_MCU_EN_SFT 19 202962306a36Sopenharmony_ci#define IRQ18_MCU_EN_SFT 18 203062306a36Sopenharmony_ci#define IRQ17_MCU_EN_SFT 17 203162306a36Sopenharmony_ci#define IRQ16_MCU_EN_SFT 16 203262306a36Sopenharmony_ci#define IRQ15_MCU_EN_SFT 15 203362306a36Sopenharmony_ci#define IRQ14_MCU_EN_SFT 14 203462306a36Sopenharmony_ci#define IRQ13_MCU_EN_SFT 13 203562306a36Sopenharmony_ci#define IRQ12_MCU_EN_SFT 12 203662306a36Sopenharmony_ci#define IRQ11_MCU_EN_SFT 11 203762306a36Sopenharmony_ci#define IRQ10_MCU_EN_SFT 10 203862306a36Sopenharmony_ci#define IRQ9_MCU_EN_SFT 9 203962306a36Sopenharmony_ci#define IRQ8_MCU_EN_SFT 8 204062306a36Sopenharmony_ci#define IRQ7_MCU_EN_SFT 7 204162306a36Sopenharmony_ci#define IRQ6_MCU_EN_SFT 6 204262306a36Sopenharmony_ci#define IRQ5_MCU_EN_SFT 5 204362306a36Sopenharmony_ci#define IRQ4_MCU_EN_SFT 4 204462306a36Sopenharmony_ci#define IRQ3_MCU_EN_SFT 3 204562306a36Sopenharmony_ci#define IRQ2_MCU_EN_SFT 2 204662306a36Sopenharmony_ci#define IRQ1_MCU_EN_SFT 1 204762306a36Sopenharmony_ci#define IRQ0_MCU_EN_SFT 0 204862306a36Sopenharmony_ci 204962306a36Sopenharmony_ci/* AFE_IRQ_MCU_SCP_EN */ 205062306a36Sopenharmony_ci#define IRQ31_MCU_SCP_EN_SFT 31 205162306a36Sopenharmony_ci#define IRQ30_MCU_SCP_EN_SFT 30 205262306a36Sopenharmony_ci#define IRQ29_MCU_SCP_EN_SFT 29 205362306a36Sopenharmony_ci#define IRQ28_MCU_SCP_EN_SFT 28 205462306a36Sopenharmony_ci#define IRQ27_MCU_SCP_EN_SFT 27 205562306a36Sopenharmony_ci#define IRQ26_MCU_SCP_EN_SFT 26 205662306a36Sopenharmony_ci#define IRQ25_MCU_SCP_EN_SFT 25 205762306a36Sopenharmony_ci#define IRQ24_MCU_SCP_EN_SFT 24 205862306a36Sopenharmony_ci#define IRQ23_MCU_SCP_EN_SFT 23 205962306a36Sopenharmony_ci#define IRQ22_MCU_SCP_EN_SFT 22 206062306a36Sopenharmony_ci#define IRQ21_MCU_SCP_EN_SFT 21 206162306a36Sopenharmony_ci#define IRQ20_MCU_SCP_EN_SFT 20 206262306a36Sopenharmony_ci#define IRQ19_MCU_SCP_EN_SFT 19 206362306a36Sopenharmony_ci#define IRQ18_MCU_SCP_EN_SFT 18 206462306a36Sopenharmony_ci#define IRQ17_MCU_SCP_EN_SFT 17 206562306a36Sopenharmony_ci#define IRQ16_MCU_SCP_EN_SFT 16 206662306a36Sopenharmony_ci#define IRQ15_MCU_SCP_EN_SFT 15 206762306a36Sopenharmony_ci#define IRQ14_MCU_SCP_EN_SFT 14 206862306a36Sopenharmony_ci#define IRQ13_MCU_SCP_EN_SFT 13 206962306a36Sopenharmony_ci#define IRQ12_MCU_SCP_EN_SFT 12 207062306a36Sopenharmony_ci#define IRQ11_MCU_SCP_EN_SFT 11 207162306a36Sopenharmony_ci#define IRQ10_MCU_SCP_EN_SFT 10 207262306a36Sopenharmony_ci#define IRQ9_MCU_SCP_EN_SFT 9 207362306a36Sopenharmony_ci#define IRQ8_MCU_SCP_EN_SFT 8 207462306a36Sopenharmony_ci#define IRQ7_MCU_SCP_EN_SFT 7 207562306a36Sopenharmony_ci#define IRQ6_MCU_SCP_EN_SFT 6 207662306a36Sopenharmony_ci#define IRQ5_MCU_SCP_EN_SFT 5 207762306a36Sopenharmony_ci#define IRQ4_MCU_SCP_EN_SFT 4 207862306a36Sopenharmony_ci#define IRQ3_MCU_SCP_EN_SFT 3 207962306a36Sopenharmony_ci#define IRQ2_MCU_SCP_EN_SFT 2 208062306a36Sopenharmony_ci#define IRQ1_MCU_SCP_EN_SFT 1 208162306a36Sopenharmony_ci#define IRQ0_MCU_SCP_EN_SFT 0 208262306a36Sopenharmony_ci 208362306a36Sopenharmony_ci/* AFE_TDM_CON1 */ 208462306a36Sopenharmony_ci#define TDM_EN_SFT 0 208562306a36Sopenharmony_ci#define TDM_EN_MASK 0x1 208662306a36Sopenharmony_ci#define TDM_EN_MASK_SFT (0x1 << 0) 208762306a36Sopenharmony_ci#define LRCK_INVERSE_SFT 2 208862306a36Sopenharmony_ci#define LRCK_INVERSE_MASK 0x1 208962306a36Sopenharmony_ci#define LRCK_INVERSE_MASK_SFT (0x1 << 2) 209062306a36Sopenharmony_ci#define DELAY_DATA_SFT 3 209162306a36Sopenharmony_ci#define DELAY_DATA_MASK 0x1 209262306a36Sopenharmony_ci#define DELAY_DATA_MASK_SFT (0x1 << 3) 209362306a36Sopenharmony_ci#define LEFT_ALIGN_SFT 4 209462306a36Sopenharmony_ci#define LEFT_ALIGN_MASK 0x1 209562306a36Sopenharmony_ci#define LEFT_ALIGN_MASK_SFT (0x1 << 4) 209662306a36Sopenharmony_ci#define WLEN_SFT 8 209762306a36Sopenharmony_ci#define WLEN_MASK 0x3 209862306a36Sopenharmony_ci#define WLEN_MASK_SFT (0x3 << 8) 209962306a36Sopenharmony_ci#define CHANNEL_NUM_SFT 10 210062306a36Sopenharmony_ci#define CHANNEL_NUM_MASK 0x3 210162306a36Sopenharmony_ci#define CHANNEL_NUM_MASK_SFT (0x3 << 10) 210262306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_SFT 12 210362306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_MASK 0x3 210462306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_MASK_SFT (0x3 << 12) 210562306a36Sopenharmony_ci#define DAC_BIT_NUM_SFT 16 210662306a36Sopenharmony_ci#define DAC_BIT_NUM_MASK 0x1f 210762306a36Sopenharmony_ci#define DAC_BIT_NUM_MASK_SFT (0x1f << 16) 210862306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_SFT 24 210962306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_MASK 0xff 211062306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_MASK_SFT (0xff << 24) 211162306a36Sopenharmony_ci 211262306a36Sopenharmony_ci/* AFE_TDM_CON2 */ 211362306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_SFT 0 211462306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_MASK 0x7 211562306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_MASK_SFT (0x7 << 0) 211662306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_SFT 4 211762306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_MASK 0x7 211862306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_MASK_SFT (0x7 << 4) 211962306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_SFT 8 212062306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_MASK 0x7 212162306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_MASK_SFT (0x7 << 8) 212262306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_SFT 12 212362306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_MASK 0x7 212462306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_MASK_SFT (0x7 << 12) 212562306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_SFT 16 212662306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_MASK 0x1 212762306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_MASK_SFT (0x1 << 16) 212862306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_SFT 20 212962306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_MASK 0x1 213062306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_MASK_SFT (0x1 << 20) 213162306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_SFT 21 213262306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_MASK 0x3 213362306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_MASK_SFT (0x3 << 21) 213462306a36Sopenharmony_ci#define TDM_FIX_VALUE_SFT 24 213562306a36Sopenharmony_ci#define TDM_FIX_VALUE_MASK 0xff 213662306a36Sopenharmony_ci#define TDM_FIX_VALUE_MASK_SFT (0xff << 24) 213762306a36Sopenharmony_ci 213862306a36Sopenharmony_ci/* AFE_HDMI_CONN0 */ 213962306a36Sopenharmony_ci#define HDMI_O_7_SFT 21 214062306a36Sopenharmony_ci#define HDMI_O_7_MASK 0x7 214162306a36Sopenharmony_ci#define HDMI_O_7_MASK_SFT (0x7 << 21) 214262306a36Sopenharmony_ci#define HDMI_O_6_SFT 18 214362306a36Sopenharmony_ci#define HDMI_O_6_MASK 0x7 214462306a36Sopenharmony_ci#define HDMI_O_6_MASK_SFT (0x7 << 18) 214562306a36Sopenharmony_ci#define HDMI_O_5_SFT 15 214662306a36Sopenharmony_ci#define HDMI_O_5_MASK 0x7 214762306a36Sopenharmony_ci#define HDMI_O_5_MASK_SFT (0x7 << 15) 214862306a36Sopenharmony_ci#define HDMI_O_4_SFT 12 214962306a36Sopenharmony_ci#define HDMI_O_4_MASK 0x7 215062306a36Sopenharmony_ci#define HDMI_O_4_MASK_SFT (0x7 << 12) 215162306a36Sopenharmony_ci#define HDMI_O_3_SFT 9 215262306a36Sopenharmony_ci#define HDMI_O_3_MASK 0x7 215362306a36Sopenharmony_ci#define HDMI_O_3_MASK_SFT (0x7 << 9) 215462306a36Sopenharmony_ci#define HDMI_O_2_SFT 6 215562306a36Sopenharmony_ci#define HDMI_O_2_MASK 0x7 215662306a36Sopenharmony_ci#define HDMI_O_2_MASK_SFT (0x7 << 6) 215762306a36Sopenharmony_ci#define HDMI_O_1_SFT 3 215862306a36Sopenharmony_ci#define HDMI_O_1_MASK 0x7 215962306a36Sopenharmony_ci#define HDMI_O_1_MASK_SFT (0x7 << 3) 216062306a36Sopenharmony_ci#define HDMI_O_0_SFT 0 216162306a36Sopenharmony_ci#define HDMI_O_0_MASK 0x7 216262306a36Sopenharmony_ci#define HDMI_O_0_MASK_SFT (0x7 << 0) 216362306a36Sopenharmony_ci 216462306a36Sopenharmony_ci/* AFE_AUD_PAD_TOP */ 216562306a36Sopenharmony_ci#define AUD_PAD_TOP_MON_SFT 15 216662306a36Sopenharmony_ci#define AUD_PAD_TOP_MON_MASK 0x1ffff 216762306a36Sopenharmony_ci#define AUD_PAD_TOP_MON_MASK_SFT (0x1ffff << 15) 216862306a36Sopenharmony_ci#define AUD_PAD_TOP_FIFO_RSP_SFT 4 216962306a36Sopenharmony_ci#define AUD_PAD_TOP_FIFO_RSP_MASK 0xf 217062306a36Sopenharmony_ci#define AUD_PAD_TOP_FIFO_RSP_MASK_SFT (0xf << 4) 217162306a36Sopenharmony_ci#define RG_RX_PROTOCOL2_SFT 3 217262306a36Sopenharmony_ci#define RG_RX_PROTOCOL2_MASK 0x1 217362306a36Sopenharmony_ci#define RG_RX_PROTOCOL2_MASK_SFT (0x1 << 3) 217462306a36Sopenharmony_ci#define RESERVDED_01_SFT 1 217562306a36Sopenharmony_ci#define RESERVDED_01_MASK 0x3 217662306a36Sopenharmony_ci#define RESERVDED_01_MASK_SFT (0x3 << 1) 217762306a36Sopenharmony_ci#define RG_RX_FIFO_ON_SFT 0 217862306a36Sopenharmony_ci#define RG_RX_FIFO_ON_MASK 0x1 217962306a36Sopenharmony_ci#define RG_RX_FIFO_ON_MASK_SFT (0x1 << 0) 218062306a36Sopenharmony_ci 218162306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_SYNCWORD_CFG */ 218262306a36Sopenharmony_ci#define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_SFT 23 218362306a36Sopenharmony_ci#define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK 0x1 218462306a36Sopenharmony_ci#define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK_SFT (0x1 << 23) 218562306a36Sopenharmony_ci 218662306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_RX_CFG0 */ 218762306a36Sopenharmony_ci#define MTKAIF_RXIF_VOICE_MODE_SFT 20 218862306a36Sopenharmony_ci#define MTKAIF_RXIF_VOICE_MODE_MASK 0xf 218962306a36Sopenharmony_ci#define MTKAIF_RXIF_VOICE_MODE_MASK_SFT (0xf << 20) 219062306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_SFT 16 219162306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_MASK 0x1 219262306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_MASK_SFT (0x1 << 16) 219362306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_BIT_SFT 8 219462306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_BIT_MASK 0x7 219562306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_BIT_MASK_SFT (0x7 << 8) 219662306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_SFT 4 219762306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_MASK 0x7 219862306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_MASK_SFT (0x7 << 4) 219962306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_MODE_SFT 0 220062306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_MODE_MASK 0x1 220162306a36Sopenharmony_ci#define MTKAIF_RXIF_DATA_MODE_MASK_SFT (0x1 << 0) 220262306a36Sopenharmony_ci 220362306a36Sopenharmony_ci/* GENERAL_ASRC_MODE */ 220462306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_SFT 12 220562306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_MASK 0xf 220662306a36Sopenharmony_ci#define GENERAL2_ASRCOUT_MODE_MASK_SFT (0xf << 12) 220762306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_SFT 8 220862306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_MASK 0xf 220962306a36Sopenharmony_ci#define GENERAL2_ASRCIN_MODE_MASK_SFT (0xf << 8) 221062306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_SFT 4 221162306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_MASK 0xf 221262306a36Sopenharmony_ci#define GENERAL1_ASRCOUT_MODE_MASK_SFT (0xf << 4) 221362306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_SFT 0 221462306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_MASK 0xf 221562306a36Sopenharmony_ci#define GENERAL1_ASRCIN_MODE_MASK_SFT (0xf << 0) 221662306a36Sopenharmony_ci 221762306a36Sopenharmony_ci/* GENERAL_ASRC_EN_ON */ 221862306a36Sopenharmony_ci#define GENERAL2_ASRC_EN_ON_SFT 1 221962306a36Sopenharmony_ci#define GENERAL2_ASRC_EN_ON_MASK 0x1 222062306a36Sopenharmony_ci#define GENERAL2_ASRC_EN_ON_MASK_SFT (0x1 << 1) 222162306a36Sopenharmony_ci#define GENERAL1_ASRC_EN_ON_SFT 0 222262306a36Sopenharmony_ci#define GENERAL1_ASRC_EN_ON_MASK 0x1 222362306a36Sopenharmony_ci#define GENERAL1_ASRC_EN_ON_MASK_SFT (0x1 << 0) 222462306a36Sopenharmony_ci 222562306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON0 */ 222662306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_SFT 4 222762306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_MASK 0x1 222862306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_MASK_SFT (0x1 << 4) 222962306a36Sopenharmony_ci#define G_SRC_CHSET_ON_SFT 2 223062306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK 0x1 223162306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK_SFT (0x1 << 2) 223262306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_SFT 1 223362306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK 0x1 223462306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1) 223562306a36Sopenharmony_ci#define G_SRC_ASM_ON_SFT 0 223662306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK 0x1 223762306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK_SFT (0x1 << 0) 223862306a36Sopenharmony_ci 223962306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON3 */ 224062306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_4_SFT 0 224162306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_4_MASK 0xffffff 224262306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_4_MASK_SFT (0xffffff << 0) 224362306a36Sopenharmony_ci 224462306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON4 */ 224562306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_5_SFT 0 224662306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_5_MASK 0xffffff 224762306a36Sopenharmony_ci#define G_SRC_ASM_FREQ_5_MASK_SFT (0xffffff << 0) 224862306a36Sopenharmony_ci 224962306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON13 */ 225062306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_ADR_SFT 0 225162306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_ADR_MASK 0x3f 225262306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_ADR_MASK_SFT (0x3f << 0) 225362306a36Sopenharmony_ci 225462306a36Sopenharmony_ci/* AFE_GENERAL1_ASRC_2CH_CON2 */ 225562306a36Sopenharmony_ci#define G_SRC_CHSET_O16BIT_SFT 19 225662306a36Sopenharmony_ci#define G_SRC_CHSET_O16BIT_MASK 0x1 225762306a36Sopenharmony_ci#define G_SRC_CHSET_O16BIT_MASK_SFT (0x1 << 19) 225862306a36Sopenharmony_ci#define G_SRC_CHSET_CLR_IIR_HISTORY_SFT 17 225962306a36Sopenharmony_ci#define G_SRC_CHSET_CLR_IIR_HISTORY_MASK 0x1 226062306a36Sopenharmony_ci#define G_SRC_CHSET_CLR_IIR_HISTORY_MASK_SFT (0x1 << 17) 226162306a36Sopenharmony_ci#define G_SRC_CHSET_IS_MONO_SFT 16 226262306a36Sopenharmony_ci#define G_SRC_CHSET_IS_MONO_MASK 0x1 226362306a36Sopenharmony_ci#define G_SRC_CHSET_IS_MONO_MASK_SFT (0x1 << 16) 226462306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_EN_SFT 11 226562306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_EN_MASK 0x1 226662306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_EN_MASK_SFT (0x1 << 11) 226762306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_STAGE_SFT 8 226862306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_STAGE_MASK 0x7 226962306a36Sopenharmony_ci#define G_SRC_CHSET_IIR_STAGE_MASK_SFT (0x7 << 8) 227062306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_RU_SFT 5 227162306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_RU_MASK 0x1 227262306a36Sopenharmony_ci#define G_SRC_CHSET_STR_CLR_RU_MASK_SFT (0x1 << 5) 227362306a36Sopenharmony_ci#define G_SRC_CHSET_ON_SFT 2 227462306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK 0x1 227562306a36Sopenharmony_ci#define G_SRC_CHSET_ON_MASK_SFT (0x1 << 2) 227662306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_SFT 1 227762306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK 0x1 227862306a36Sopenharmony_ci#define G_SRC_COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1) 227962306a36Sopenharmony_ci#define G_SRC_ASM_ON_SFT 0 228062306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK 0x1 228162306a36Sopenharmony_ci#define G_SRC_ASM_ON_MASK_SFT (0x1 << 0) 228262306a36Sopenharmony_ci 228362306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_AUTO_RESET_CON */ 228462306a36Sopenharmony_ci#define ADDA_SDM_AUTO_RESET_ONOFF_SFT 31 228562306a36Sopenharmony_ci#define ADDA_SDM_AUTO_RESET_ONOFF_MASK 0x1 228662306a36Sopenharmony_ci#define ADDA_SDM_AUTO_RESET_ONOFF_MASK_SFT (0x1 << 31) 228762306a36Sopenharmony_ci 228862306a36Sopenharmony_ci/* AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON */ 228962306a36Sopenharmony_ci#define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_SFT 31 229062306a36Sopenharmony_ci#define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK 0x1 229162306a36Sopenharmony_ci#define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK_SFT (0x1 << 31) 229262306a36Sopenharmony_ci 229362306a36Sopenharmony_ci/* AFE_TINY_CONN0 */ 229462306a36Sopenharmony_ci#define O_3_CFG_SFT 24 229562306a36Sopenharmony_ci#define O_3_CFG_MASK 0x1f 229662306a36Sopenharmony_ci#define O_3_CFG_MASK_SFT (0x1f << 24) 229762306a36Sopenharmony_ci#define O_2_CFG_SFT 16 229862306a36Sopenharmony_ci#define O_2_CFG_MASK 0x1f 229962306a36Sopenharmony_ci#define O_2_CFG_MASK_SFT (0x1f << 16) 230062306a36Sopenharmony_ci#define O_1_CFG_SFT 8 230162306a36Sopenharmony_ci#define O_1_CFG_MASK 0x1f 230262306a36Sopenharmony_ci#define O_1_CFG_MASK_SFT (0x1f << 8) 230362306a36Sopenharmony_ci#define O_0_CFG_SFT 0 230462306a36Sopenharmony_ci#define O_0_CFG_MASK 0x1f 230562306a36Sopenharmony_ci#define O_0_CFG_MASK_SFT (0x1f << 0) 230662306a36Sopenharmony_ci 230762306a36Sopenharmony_ci/* AFE_TINY_CONN5 */ 230862306a36Sopenharmony_ci#define O_23_CFG_SFT 24 230962306a36Sopenharmony_ci#define O_23_CFG_MASK 0x1f 231062306a36Sopenharmony_ci#define O_23_CFG_MASK_SFT (0x1f << 24) 231162306a36Sopenharmony_ci#define O_22_CFG_SFT 16 231262306a36Sopenharmony_ci#define O_22_CFG_MASK 0x1f 231362306a36Sopenharmony_ci#define O_22_CFG_MASK_SFT (0x1f << 16) 231462306a36Sopenharmony_ci#define O_21_CFG_SFT 8 231562306a36Sopenharmony_ci#define O_21_CFG_MASK 0x1f 231662306a36Sopenharmony_ci#define O_21_CFG_MASK_SFT (0x1f << 8) 231762306a36Sopenharmony_ci#define O_20_CFG_SFT 0 231862306a36Sopenharmony_ci#define O_20_CFG_MASK 0x1f 231962306a36Sopenharmony_ci#define O_20_CFG_MASK_SFT (0x1f << 0) 232062306a36Sopenharmony_ci 232162306a36Sopenharmony_ci/* AFE_MEMIF_CONN */ 232262306a36Sopenharmony_ci#define VUL6_USE_TINY_SFT 8 232362306a36Sopenharmony_ci#define VUL6_USE_TINY_MASK 1 232462306a36Sopenharmony_ci#define VUL6_USE_TINY_MASK_SFT (0x1 << 8) 232562306a36Sopenharmony_ci#define VUL5_USE_TINY_SFT 7 232662306a36Sopenharmony_ci#define VUL5_USE_TINY_MASK 1 232762306a36Sopenharmony_ci#define VUL5_USE_TINY_MASK_SFT (0x1 << 7) 232862306a36Sopenharmony_ci#define VUL4_USE_TINY_SFT 6 232962306a36Sopenharmony_ci#define VUL4_USE_TINY_MASK 1 233062306a36Sopenharmony_ci#define VUL4_USE_TINY_MASK_SFT (0x1 << 6) 233162306a36Sopenharmony_ci#define VUL3_USE_TINY_SFT 5 233262306a36Sopenharmony_ci#define VUL3_USE_TINY_MASK 1 233362306a36Sopenharmony_ci#define VUL3_USE_TINY_MASK_SFT (0x1 << 5) 233462306a36Sopenharmony_ci#define AWB2_USE_TINY_SFT 4 233562306a36Sopenharmony_ci#define AWB2_USE_TINY_MASK 1 233662306a36Sopenharmony_ci#define AWB2_USE_TINY_MASK_SFT (0x1 << 4) 233762306a36Sopenharmony_ci#define AWB_USE_TINY_SFT 3 233862306a36Sopenharmony_ci#define AWB_USE_TINY_MASK 1 233962306a36Sopenharmony_ci#define AWB_USE_TINY_MASK_SFT (0x1 << 3) 234062306a36Sopenharmony_ci#define VUL12_USE_TINY_SFT 2 234162306a36Sopenharmony_ci#define VUL12_USE_TINY_MASK 1 234262306a36Sopenharmony_ci#define VUL12_USE_TINY_MASK_SFT (0x1 << 2) 234362306a36Sopenharmony_ci#define VUL2_USE_TINY_SFT 1 234462306a36Sopenharmony_ci#define VUL2_USE_TINY_MASK 1 234562306a36Sopenharmony_ci#define VUL2_USE_TINY_MASK_SFT (0x1 << 1) 234662306a36Sopenharmony_ci#define VUL1_USE_TINY_SFT 0 234762306a36Sopenharmony_ci#define VUL1_USE_TINY_MASK 1 234862306a36Sopenharmony_ci#define VUL1_USE_TINY_MASK_SFT (0x1 << 0) 234962306a36Sopenharmony_ci 235062306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON0 */ 235162306a36Sopenharmony_ci#define CON0_CHSET_STR_CLR_SFT 4 235262306a36Sopenharmony_ci#define CON0_CHSET_STR_CLR_MASK 1 235362306a36Sopenharmony_ci#define CON0_CHSET_STR_CLR_MASK_SFT (0x1 << 4) 235462306a36Sopenharmony_ci#define CON0_ASM_ON_SFT 0 235562306a36Sopenharmony_ci#define CON0_ASM_ON_MASK 1 235662306a36Sopenharmony_ci#define CON0_ASM_ON_MASK_SFT (0x1 << 0) 235762306a36Sopenharmony_ci 235862306a36Sopenharmony_ci/* AFE_ASRC_2CH_CON5 */ 235962306a36Sopenharmony_ci#define CALI_EN_SFT 0 236062306a36Sopenharmony_ci#define CALI_EN_MASK 1 236162306a36Sopenharmony_ci#define CALI_EN_MASK_SFT (0x1 << 0) 236262306a36Sopenharmony_ci 236362306a36Sopenharmony_ci#define AUDIO_TOP_CON0 0x0000 236462306a36Sopenharmony_ci#define AUDIO_TOP_CON1 0x0004 236562306a36Sopenharmony_ci#define AUDIO_TOP_CON2 0x0008 236662306a36Sopenharmony_ci#define AUDIO_TOP_CON3 0x000c 236762306a36Sopenharmony_ci#define AFE_DAC_CON0 0x0010 236862306a36Sopenharmony_ci#define AFE_I2S_CON 0x0018 236962306a36Sopenharmony_ci#define AFE_CONN0 0x0020 237062306a36Sopenharmony_ci#define AFE_CONN1 0x0024 237162306a36Sopenharmony_ci#define AFE_CONN2 0x0028 237262306a36Sopenharmony_ci#define AFE_CONN3 0x002c 237362306a36Sopenharmony_ci#define AFE_CONN4 0x0030 237462306a36Sopenharmony_ci#define AFE_I2S_CON1 0x0034 237562306a36Sopenharmony_ci#define AFE_I2S_CON2 0x0038 237662306a36Sopenharmony_ci#define AFE_I2S_CON3 0x0040 237762306a36Sopenharmony_ci#define AFE_CONN5 0x0044 237862306a36Sopenharmony_ci#define AFE_CONN_24BIT 0x0048 237962306a36Sopenharmony_ci#define AFE_DL1_CON0 0x004c 238062306a36Sopenharmony_ci#define AFE_DL1_BASE_MSB 0x0050 238162306a36Sopenharmony_ci#define AFE_DL1_BASE 0x0054 238262306a36Sopenharmony_ci#define AFE_DL1_CUR_MSB 0x0058 238362306a36Sopenharmony_ci#define AFE_DL1_CUR 0x005c 238462306a36Sopenharmony_ci#define AFE_DL1_END_MSB 0x0060 238562306a36Sopenharmony_ci#define AFE_DL1_END 0x0064 238662306a36Sopenharmony_ci#define AFE_DL2_CON0 0x0068 238762306a36Sopenharmony_ci#define AFE_DL2_BASE_MSB 0x006c 238862306a36Sopenharmony_ci#define AFE_DL2_BASE 0x0070 238962306a36Sopenharmony_ci#define AFE_DL2_CUR_MSB 0x0074 239062306a36Sopenharmony_ci#define AFE_DL2_CUR 0x0078 239162306a36Sopenharmony_ci#define AFE_DL2_END_MSB 0x007c 239262306a36Sopenharmony_ci#define AFE_DL2_END 0x0080 239362306a36Sopenharmony_ci#define AFE_DL3_CON0 0x0084 239462306a36Sopenharmony_ci#define AFE_DL3_BASE_MSB 0x0088 239562306a36Sopenharmony_ci#define AFE_DL3_BASE 0x008c 239662306a36Sopenharmony_ci#define AFE_DL3_CUR_MSB 0x0090 239762306a36Sopenharmony_ci#define AFE_DL3_CUR 0x0094 239862306a36Sopenharmony_ci#define AFE_DL3_END_MSB 0x0098 239962306a36Sopenharmony_ci#define AFE_DL3_END 0x009c 240062306a36Sopenharmony_ci#define AFE_CONN6 0x00bc 240162306a36Sopenharmony_ci#define AFE_DL4_CON0 0x00cc 240262306a36Sopenharmony_ci#define AFE_DL4_BASE_MSB 0x00d0 240362306a36Sopenharmony_ci#define AFE_DL4_BASE 0x00d4 240462306a36Sopenharmony_ci#define AFE_DL4_CUR_MSB 0x00d8 240562306a36Sopenharmony_ci#define AFE_DL4_CUR 0x00dc 240662306a36Sopenharmony_ci#define AFE_DL4_END_MSB 0x00e0 240762306a36Sopenharmony_ci#define AFE_DL4_END 0x00e4 240862306a36Sopenharmony_ci#define AFE_DL12_CON0 0x00e8 240962306a36Sopenharmony_ci#define AFE_DL12_BASE_MSB 0x00ec 241062306a36Sopenharmony_ci#define AFE_DL12_BASE 0x00f0 241162306a36Sopenharmony_ci#define AFE_DL12_CUR_MSB 0x00f4 241262306a36Sopenharmony_ci#define AFE_DL12_CUR 0x00f8 241362306a36Sopenharmony_ci#define AFE_DL12_END_MSB 0x00fc 241462306a36Sopenharmony_ci#define AFE_DL12_END 0x0100 241562306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON0 0x0108 241662306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON1 0x010c 241762306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON0 0x0114 241862306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON1 0x0118 241962306a36Sopenharmony_ci#define AFE_ADDA_TOP_CON0 0x0120 242062306a36Sopenharmony_ci#define AFE_ADDA_UL_DL_CON0 0x0124 242162306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG 0x012c 242262306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON0 0x0130 242362306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON1 0x0134 242462306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON0 0x0148 242562306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON1 0x014c 242662306a36Sopenharmony_ci#define AFE_SECURE_CON0 0x0150 242762306a36Sopenharmony_ci#define AFE_SRAM_BOUND 0x0154 242862306a36Sopenharmony_ci#define AFE_SECURE_CON1 0x0158 242962306a36Sopenharmony_ci#define AFE_SECURE_CONN0 0x015c 243062306a36Sopenharmony_ci#define AFE_VUL_CON0 0x0170 243162306a36Sopenharmony_ci#define AFE_VUL_BASE_MSB 0x0174 243262306a36Sopenharmony_ci#define AFE_VUL_BASE 0x0178 243362306a36Sopenharmony_ci#define AFE_VUL_CUR_MSB 0x017c 243462306a36Sopenharmony_ci#define AFE_VUL_CUR 0x0180 243562306a36Sopenharmony_ci#define AFE_VUL_END_MSB 0x0184 243662306a36Sopenharmony_ci#define AFE_VUL_END 0x0188 243762306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON 0x018c 243862306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SRC2_CON0 0x0190 243962306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SRC2_CON1 0x0194 244062306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_PREDIS_CON0 0x01a0 244162306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_PREDIS_CON1 0x01a4 244262306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_PREDIS_CON2 0x01a8 244362306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_PREDIS_CON3 0x01ac 244462306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_DCCOMP_CON 0x01b0 244562306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_TEST 0x01b4 244662306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG0 0x01b8 244762306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG1 0x01bc 244862306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_FIFO_MON 0x01c0 244962306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SRC_LCH_MON 0x01c4 245062306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SRC_RCH_MON 0x01c8 245162306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_OUT_MON 0x01cc 245262306a36Sopenharmony_ci#define AFE_SIDETONE_DEBUG 0x01d0 245362306a36Sopenharmony_ci#define AFE_SIDETONE_MON 0x01d4 245462306a36Sopenharmony_ci#define AFE_ADDA_3RD_DAC_DL_SDM_DITHER_CON 0x01d8 245562306a36Sopenharmony_ci#define AFE_SINEGEN_CON2 0x01dc 245662306a36Sopenharmony_ci#define AFE_SIDETONE_CON0 0x01e0 245762306a36Sopenharmony_ci#define AFE_SIDETONE_COEFF 0x01e4 245862306a36Sopenharmony_ci#define AFE_SIDETONE_CON1 0x01e8 245962306a36Sopenharmony_ci#define AFE_SIDETONE_GAIN 0x01ec 246062306a36Sopenharmony_ci#define AFE_SINEGEN_CON0 0x01f0 246162306a36Sopenharmony_ci#define AFE_I2S_MON2 0x01f8 246262306a36Sopenharmony_ci#define AFE_SINEGEN_CON_TDM 0x01fc 246362306a36Sopenharmony_ci#define AFE_TOP_CON0 0x0200 246462306a36Sopenharmony_ci#define AFE_VUL2_CON0 0x020c 246562306a36Sopenharmony_ci#define AFE_VUL2_BASE_MSB 0x0210 246662306a36Sopenharmony_ci#define AFE_VUL2_BASE 0x0214 246762306a36Sopenharmony_ci#define AFE_VUL2_CUR_MSB 0x0218 246862306a36Sopenharmony_ci#define AFE_VUL2_CUR 0x021c 246962306a36Sopenharmony_ci#define AFE_VUL2_END_MSB 0x0220 247062306a36Sopenharmony_ci#define AFE_VUL2_END 0x0224 247162306a36Sopenharmony_ci#define AFE_VUL3_CON0 0x0228 247262306a36Sopenharmony_ci#define AFE_VUL3_BASE_MSB 0x022c 247362306a36Sopenharmony_ci#define AFE_VUL3_BASE 0x0230 247462306a36Sopenharmony_ci#define AFE_VUL3_CUR_MSB 0x0234 247562306a36Sopenharmony_ci#define AFE_VUL3_CUR 0x0238 247662306a36Sopenharmony_ci#define AFE_VUL3_END_MSB 0x023c 247762306a36Sopenharmony_ci#define AFE_VUL3_END 0x0240 247862306a36Sopenharmony_ci#define AFE_BUSY 0x0244 247962306a36Sopenharmony_ci#define AFE_BUS_CFG 0x0250 248062306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON0 0x0260 248162306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON1 0x0264 248262306a36Sopenharmony_ci#define AFE_I2S_MON 0x027c 248362306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_02_01 0x0290 248462306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_04_03 0x0294 248562306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_06_05 0x0298 248662306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_08_07 0x029c 248762306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_10_09 0x02a0 248862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON1 0x02e4 248962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON2 0x02e8 249062306a36Sopenharmony_ci#define AFE_DAC_MON 0x02ec 249162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON3 0x02f0 249262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON4 0x02f4 249362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT0 0x0300 249462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT6 0x0304 249562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT8 0x0308 249662306a36Sopenharmony_ci#define AFE_IRQ_MCU_DSP2_EN 0x030c 249762306a36Sopenharmony_ci#define AFE_IRQ0_MCU_CNT_MON 0x0310 249862306a36Sopenharmony_ci#define AFE_IRQ6_MCU_CNT_MON 0x0314 249962306a36Sopenharmony_ci#define AFE_VUL4_CON0 0x0358 250062306a36Sopenharmony_ci#define AFE_VUL4_BASE_MSB 0x035c 250162306a36Sopenharmony_ci#define AFE_VUL4_BASE 0x0360 250262306a36Sopenharmony_ci#define AFE_VUL4_CUR_MSB 0x0364 250362306a36Sopenharmony_ci#define AFE_VUL4_CUR 0x0368 250462306a36Sopenharmony_ci#define AFE_VUL4_END_MSB 0x036c 250562306a36Sopenharmony_ci#define AFE_VUL4_END 0x0370 250662306a36Sopenharmony_ci#define AFE_VUL12_CON0 0x0374 250762306a36Sopenharmony_ci#define AFE_VUL12_BASE_MSB 0x0378 250862306a36Sopenharmony_ci#define AFE_VUL12_BASE 0x037c 250962306a36Sopenharmony_ci#define AFE_VUL12_CUR_MSB 0x0380 251062306a36Sopenharmony_ci#define AFE_VUL12_CUR 0x0384 251162306a36Sopenharmony_ci#define AFE_VUL12_END_MSB 0x0388 251262306a36Sopenharmony_ci#define AFE_VUL12_END 0x038c 251362306a36Sopenharmony_ci#define AFE_HDMI_CONN0 0x0390 251462306a36Sopenharmony_ci#define AFE_IRQ3_MCU_CNT_MON 0x0398 251562306a36Sopenharmony_ci#define AFE_IRQ4_MCU_CNT_MON 0x039c 251662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON0 0x03a0 251762306a36Sopenharmony_ci#define AFE_IRQ_MCU_STATUS 0x03a4 251862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CLR 0x03a8 251962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1 0x03ac 252062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2 0x03b0 252162306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN 0x03b4 252262306a36Sopenharmony_ci#define AFE_IRQ_MCU_MON2 0x03b8 252362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5 0x03bc 252462306a36Sopenharmony_ci#define AFE_IRQ1_MCU_CNT_MON 0x03c0 252562306a36Sopenharmony_ci#define AFE_IRQ2_MCU_CNT_MON 0x03c4 252662306a36Sopenharmony_ci#define AFE_IRQ5_MCU_CNT_MON 0x03cc 252762306a36Sopenharmony_ci#define AFE_IRQ_MCU_DSP_EN 0x03d0 252862306a36Sopenharmony_ci#define AFE_IRQ_MCU_SCP_EN 0x03d4 252962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7 0x03dc 253062306a36Sopenharmony_ci#define AFE_IRQ7_MCU_CNT_MON 0x03e0 253162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3 0x03e4 253262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4 0x03e8 253362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT11 0x03ec 253462306a36Sopenharmony_ci#define AFE_APLL1_TUNER_CFG 0x03f0 253562306a36Sopenharmony_ci#define AFE_APLL2_TUNER_CFG 0x03f4 253662306a36Sopenharmony_ci#define AFE_IRQ_MCU_MISS_CLR 0x03f8 253762306a36Sopenharmony_ci#define AFE_CONN33 0x0408 253862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT12 0x040c 253962306a36Sopenharmony_ci#define AFE_GAIN1_CON0 0x0410 254062306a36Sopenharmony_ci#define AFE_GAIN1_CON1 0x0414 254162306a36Sopenharmony_ci#define AFE_GAIN1_CON2 0x0418 254262306a36Sopenharmony_ci#define AFE_GAIN1_CON3 0x041c 254362306a36Sopenharmony_ci#define AFE_CONN7 0x0420 254462306a36Sopenharmony_ci#define AFE_GAIN1_CUR 0x0424 254562306a36Sopenharmony_ci#define AFE_GAIN2_CON0 0x0428 254662306a36Sopenharmony_ci#define AFE_GAIN2_CON1 0x042c 254762306a36Sopenharmony_ci#define AFE_GAIN2_CON2 0x0430 254862306a36Sopenharmony_ci#define AFE_GAIN2_CON3 0x0434 254962306a36Sopenharmony_ci#define AFE_CONN8 0x0438 255062306a36Sopenharmony_ci#define AFE_GAIN2_CUR 0x043c 255162306a36Sopenharmony_ci#define AFE_CONN9 0x0440 255262306a36Sopenharmony_ci#define AFE_CONN10 0x0444 255362306a36Sopenharmony_ci#define AFE_CONN11 0x0448 255462306a36Sopenharmony_ci#define AFE_CONN12 0x044c 255562306a36Sopenharmony_ci#define AFE_CONN13 0x0450 255662306a36Sopenharmony_ci#define AFE_CONN14 0x0454 255762306a36Sopenharmony_ci#define AFE_CONN15 0x0458 255862306a36Sopenharmony_ci#define AFE_CONN16 0x045c 255962306a36Sopenharmony_ci#define AFE_CONN17 0x0460 256062306a36Sopenharmony_ci#define AFE_CONN18 0x0464 256162306a36Sopenharmony_ci#define AFE_CONN19 0x0468 256262306a36Sopenharmony_ci#define AFE_CONN20 0x046c 256362306a36Sopenharmony_ci#define AFE_CONN21 0x0470 256462306a36Sopenharmony_ci#define AFE_CONN22 0x0474 256562306a36Sopenharmony_ci#define AFE_CONN23 0x0478 256662306a36Sopenharmony_ci#define AFE_CONN24 0x047c 256762306a36Sopenharmony_ci#define AFE_CONN_RS 0x0494 256862306a36Sopenharmony_ci#define AFE_CONN_DI 0x0498 256962306a36Sopenharmony_ci#define AFE_CONN25 0x04b0 257062306a36Sopenharmony_ci#define AFE_CONN26 0x04b4 257162306a36Sopenharmony_ci#define AFE_CONN27 0x04b8 257262306a36Sopenharmony_ci#define AFE_CONN28 0x04bc 257362306a36Sopenharmony_ci#define AFE_CONN29 0x04c0 257462306a36Sopenharmony_ci#define AFE_CONN30 0x04c4 257562306a36Sopenharmony_ci#define AFE_CONN31 0x04c8 257662306a36Sopenharmony_ci#define AFE_CONN32 0x04cc 257762306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON1 0x04f4 257862306a36Sopenharmony_ci#define AFE_CONN56 0x0500 257962306a36Sopenharmony_ci#define AFE_CONN57 0x0504 258062306a36Sopenharmony_ci#define AFE_CONN56_1 0x0510 258162306a36Sopenharmony_ci#define AFE_CONN57_1 0x0514 258262306a36Sopenharmony_ci#define AFE_TINY_CONN2 0x0520 258362306a36Sopenharmony_ci#define AFE_TINY_CONN3 0x0524 258462306a36Sopenharmony_ci#define AFE_TINY_CONN4 0x0528 258562306a36Sopenharmony_ci#define AFE_TINY_CONN5 0x052c 258662306a36Sopenharmony_ci#define PCM_INTF_CON1 0x0530 258762306a36Sopenharmony_ci#define PCM_INTF_CON2 0x0538 258862306a36Sopenharmony_ci#define PCM2_INTF_CON 0x053c 258962306a36Sopenharmony_ci#define AFE_TDM_CON1 0x0548 259062306a36Sopenharmony_ci#define AFE_TDM_CON2 0x054c 259162306a36Sopenharmony_ci#define AFE_I2S_CON6 0x0564 259262306a36Sopenharmony_ci#define AFE_I2S_CON7 0x0568 259362306a36Sopenharmony_ci#define AFE_I2S_CON8 0x056c 259462306a36Sopenharmony_ci#define AFE_I2S_CON9 0x0570 259562306a36Sopenharmony_ci#define AFE_CONN34 0x0580 259662306a36Sopenharmony_ci#define FPGA_CFG0 0x05b0 259762306a36Sopenharmony_ci#define FPGA_CFG1 0x05b4 259862306a36Sopenharmony_ci#define FPGA_CFG2 0x05c0 259962306a36Sopenharmony_ci#define FPGA_CFG3 0x05c4 260062306a36Sopenharmony_ci#define AUDIO_TOP_DBG_CON 0x05c8 260162306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON0 0x05cc 260262306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON1 0x05d0 260362306a36Sopenharmony_ci#define AFE_IRQ8_MCU_CNT_MON 0x05e4 260462306a36Sopenharmony_ci#define AFE_IRQ11_MCU_CNT_MON 0x05e8 260562306a36Sopenharmony_ci#define AFE_IRQ12_MCU_CNT_MON 0x05ec 260662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT9 0x0600 260762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT10 0x0604 260862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT13 0x0608 260962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT14 0x060c 261062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT15 0x0610 261162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT16 0x0614 261262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT17 0x0618 261362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT18 0x061c 261462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT19 0x0620 261562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT20 0x0624 261662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT21 0x0628 261762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT22 0x062c 261862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT23 0x0630 261962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT24 0x0634 262062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT25 0x0638 262162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT26 0x063c 262262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT31 0x0640 262362306a36Sopenharmony_ci#define AFE_TINY_CONN6 0x0650 262462306a36Sopenharmony_ci#define AFE_TINY_CONN7 0x0654 262562306a36Sopenharmony_ci#define AFE_IRQ9_MCU_CNT_MON 0x0660 262662306a36Sopenharmony_ci#define AFE_IRQ10_MCU_CNT_MON 0x0664 262762306a36Sopenharmony_ci#define AFE_IRQ13_MCU_CNT_MON 0x0668 262862306a36Sopenharmony_ci#define AFE_IRQ14_MCU_CNT_MON 0x066c 262962306a36Sopenharmony_ci#define AFE_IRQ15_MCU_CNT_MON 0x0670 263062306a36Sopenharmony_ci#define AFE_IRQ16_MCU_CNT_MON 0x0674 263162306a36Sopenharmony_ci#define AFE_IRQ17_MCU_CNT_MON 0x0678 263262306a36Sopenharmony_ci#define AFE_IRQ18_MCU_CNT_MON 0x067c 263362306a36Sopenharmony_ci#define AFE_IRQ19_MCU_CNT_MON 0x0680 263462306a36Sopenharmony_ci#define AFE_IRQ20_MCU_CNT_MON 0x0684 263562306a36Sopenharmony_ci#define AFE_IRQ21_MCU_CNT_MON 0x0688 263662306a36Sopenharmony_ci#define AFE_IRQ22_MCU_CNT_MON 0x068c 263762306a36Sopenharmony_ci#define AFE_IRQ23_MCU_CNT_MON 0x0690 263862306a36Sopenharmony_ci#define AFE_IRQ24_MCU_CNT_MON 0x0694 263962306a36Sopenharmony_ci#define AFE_IRQ25_MCU_CNT_MON 0x0698 264062306a36Sopenharmony_ci#define AFE_IRQ26_MCU_CNT_MON 0x069c 264162306a36Sopenharmony_ci#define AFE_IRQ31_MCU_CNT_MON 0x06a0 264262306a36Sopenharmony_ci#define AFE_GENERAL_REG0 0x0800 264362306a36Sopenharmony_ci#define AFE_GENERAL_REG1 0x0804 264462306a36Sopenharmony_ci#define AFE_GENERAL_REG2 0x0808 264562306a36Sopenharmony_ci#define AFE_GENERAL_REG3 0x080c 264662306a36Sopenharmony_ci#define AFE_GENERAL_REG4 0x0810 264762306a36Sopenharmony_ci#define AFE_GENERAL_REG5 0x0814 264862306a36Sopenharmony_ci#define AFE_GENERAL_REG6 0x0818 264962306a36Sopenharmony_ci#define AFE_GENERAL_REG7 0x081c 265062306a36Sopenharmony_ci#define AFE_GENERAL_REG8 0x0820 265162306a36Sopenharmony_ci#define AFE_GENERAL_REG9 0x0824 265262306a36Sopenharmony_ci#define AFE_GENERAL_REG10 0x0828 265362306a36Sopenharmony_ci#define AFE_GENERAL_REG11 0x082c 265462306a36Sopenharmony_ci#define AFE_GENERAL_REG12 0x0830 265562306a36Sopenharmony_ci#define AFE_GENERAL_REG13 0x0834 265662306a36Sopenharmony_ci#define AFE_GENERAL_REG14 0x0838 265762306a36Sopenharmony_ci#define AFE_GENERAL_REG15 0x083c 265862306a36Sopenharmony_ci#define AFE_CBIP_CFG0 0x0840 265962306a36Sopenharmony_ci#define AFE_CBIP_MON0 0x0844 266062306a36Sopenharmony_ci#define AFE_CBIP_SLV_MUX_MON0 0x0848 266162306a36Sopenharmony_ci#define AFE_CBIP_SLV_DECODER_MON0 0x084c 266262306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_MON0 0x0854 266362306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_MON1 0x0858 266462306a36Sopenharmony_ci#define AFE_AWB_CON0 0x085c 266562306a36Sopenharmony_ci#define AFE_AWB_BASE_MSB 0x0860 266662306a36Sopenharmony_ci#define AFE_AWB_BASE 0x0864 266762306a36Sopenharmony_ci#define AFE_AWB_CUR_MSB 0x0868 266862306a36Sopenharmony_ci#define AFE_AWB_CUR 0x086c 266962306a36Sopenharmony_ci#define AFE_AWB_END_MSB 0x0870 267062306a36Sopenharmony_ci#define AFE_AWB_END 0x0874 267162306a36Sopenharmony_ci#define AFE_AWB2_CON0 0x0878 267262306a36Sopenharmony_ci#define AFE_AWB2_BASE_MSB 0x087c 267362306a36Sopenharmony_ci#define AFE_AWB2_BASE 0x0880 267462306a36Sopenharmony_ci#define AFE_AWB2_CUR_MSB 0x0884 267562306a36Sopenharmony_ci#define AFE_AWB2_CUR 0x0888 267662306a36Sopenharmony_ci#define AFE_AWB2_END_MSB 0x088c 267762306a36Sopenharmony_ci#define AFE_AWB2_END 0x0890 267862306a36Sopenharmony_ci#define AFE_DAI_CON0 0x0894 267962306a36Sopenharmony_ci#define AFE_DAI_BASE_MSB 0x0898 268062306a36Sopenharmony_ci#define AFE_DAI_BASE 0x089c 268162306a36Sopenharmony_ci#define AFE_DAI_CUR_MSB 0x08a0 268262306a36Sopenharmony_ci#define AFE_DAI_CUR 0x08a4 268362306a36Sopenharmony_ci#define AFE_DAI_END_MSB 0x08a8 268462306a36Sopenharmony_ci#define AFE_DAI_END 0x08ac 268562306a36Sopenharmony_ci#define AFE_DAI2_CON0 0x08b0 268662306a36Sopenharmony_ci#define AFE_DAI2_BASE_MSB 0x08b4 268762306a36Sopenharmony_ci#define AFE_DAI2_BASE 0x08b8 268862306a36Sopenharmony_ci#define AFE_DAI2_CUR_MSB 0x08bc 268962306a36Sopenharmony_ci#define AFE_DAI2_CUR 0x08c0 269062306a36Sopenharmony_ci#define AFE_DAI2_END_MSB 0x08c4 269162306a36Sopenharmony_ci#define AFE_DAI2_END 0x08c8 269262306a36Sopenharmony_ci#define AFE_MEMIF_CON0 0x08cc 269362306a36Sopenharmony_ci#define AFE_CONN0_1 0x0900 269462306a36Sopenharmony_ci#define AFE_CONN1_1 0x0904 269562306a36Sopenharmony_ci#define AFE_CONN2_1 0x0908 269662306a36Sopenharmony_ci#define AFE_CONN3_1 0x090c 269762306a36Sopenharmony_ci#define AFE_CONN4_1 0x0910 269862306a36Sopenharmony_ci#define AFE_CONN5_1 0x0914 269962306a36Sopenharmony_ci#define AFE_CONN6_1 0x0918 270062306a36Sopenharmony_ci#define AFE_CONN7_1 0x091c 270162306a36Sopenharmony_ci#define AFE_CONN8_1 0x0920 270262306a36Sopenharmony_ci#define AFE_CONN9_1 0x0924 270362306a36Sopenharmony_ci#define AFE_CONN10_1 0x0928 270462306a36Sopenharmony_ci#define AFE_CONN11_1 0x092c 270562306a36Sopenharmony_ci#define AFE_CONN12_1 0x0930 270662306a36Sopenharmony_ci#define AFE_CONN13_1 0x0934 270762306a36Sopenharmony_ci#define AFE_CONN14_1 0x0938 270862306a36Sopenharmony_ci#define AFE_CONN15_1 0x093c 270962306a36Sopenharmony_ci#define AFE_CONN16_1 0x0940 271062306a36Sopenharmony_ci#define AFE_CONN17_1 0x0944 271162306a36Sopenharmony_ci#define AFE_CONN18_1 0x0948 271262306a36Sopenharmony_ci#define AFE_CONN19_1 0x094c 271362306a36Sopenharmony_ci#define AFE_CONN20_1 0x0950 271462306a36Sopenharmony_ci#define AFE_CONN21_1 0x0954 271562306a36Sopenharmony_ci#define AFE_CONN22_1 0x0958 271662306a36Sopenharmony_ci#define AFE_CONN23_1 0x095c 271762306a36Sopenharmony_ci#define AFE_CONN24_1 0x0960 271862306a36Sopenharmony_ci#define AFE_CONN25_1 0x0964 271962306a36Sopenharmony_ci#define AFE_CONN26_1 0x0968 272062306a36Sopenharmony_ci#define AFE_CONN27_1 0x096c 272162306a36Sopenharmony_ci#define AFE_CONN28_1 0x0970 272262306a36Sopenharmony_ci#define AFE_CONN29_1 0x0974 272362306a36Sopenharmony_ci#define AFE_CONN30_1 0x0978 272462306a36Sopenharmony_ci#define AFE_CONN31_1 0x097c 272562306a36Sopenharmony_ci#define AFE_CONN32_1 0x0980 272662306a36Sopenharmony_ci#define AFE_CONN33_1 0x0984 272762306a36Sopenharmony_ci#define AFE_CONN34_1 0x0988 272862306a36Sopenharmony_ci#define AFE_CONN_RS_1 0x098c 272962306a36Sopenharmony_ci#define AFE_CONN_DI_1 0x0990 273062306a36Sopenharmony_ci#define AFE_CONN_24BIT_1 0x0994 273162306a36Sopenharmony_ci#define AFE_CONN_REG 0x0998 273262306a36Sopenharmony_ci#define AFE_CONN35 0x09a0 273362306a36Sopenharmony_ci#define AFE_CONN36 0x09a4 273462306a36Sopenharmony_ci#define AFE_CONN37 0x09a8 273562306a36Sopenharmony_ci#define AFE_CONN38 0x09ac 273662306a36Sopenharmony_ci#define AFE_CONN35_1 0x09b0 273762306a36Sopenharmony_ci#define AFE_CONN36_1 0x09b4 273862306a36Sopenharmony_ci#define AFE_CONN37_1 0x09b8 273962306a36Sopenharmony_ci#define AFE_CONN38_1 0x09bc 274062306a36Sopenharmony_ci#define AFE_CONN39 0x09c0 274162306a36Sopenharmony_ci#define AFE_CONN40 0x09c4 274262306a36Sopenharmony_ci#define AFE_CONN41 0x09c8 274362306a36Sopenharmony_ci#define AFE_CONN42 0x09cc 274462306a36Sopenharmony_ci#define AFE_SGEN_CON_SGEN32 0x09d0 274562306a36Sopenharmony_ci#define AFE_CONN39_1 0x09e0 274662306a36Sopenharmony_ci#define AFE_CONN40_1 0x09e4 274762306a36Sopenharmony_ci#define AFE_CONN41_1 0x09e8 274862306a36Sopenharmony_ci#define AFE_CONN42_1 0x09ec 274962306a36Sopenharmony_ci#define AFE_I2S_CON4 0x09f8 275062306a36Sopenharmony_ci#define AFE_ADDA6_TOP_CON0 0x0a80 275162306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_CON0 0x0a84 275262306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_CON1 0x0a88 275362306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG 0x0a8c 275462306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG_MON0 0x0a90 275562306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_02_01 0x0aa0 275662306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_04_03 0x0aa4 275762306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_06_05 0x0aa8 275862306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_08_07 0x0aac 275962306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_10_09 0x0ab0 276062306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_12_11 0x0ab4 276162306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_14_13 0x0ab8 276262306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_16_15 0x0abc 276362306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_18_17 0x0ac0 276462306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_20_19 0x0ac4 276562306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_22_21 0x0ac8 276662306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_24_23 0x0acc 276762306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_26_25 0x0ad0 276862306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_28_27 0x0ad4 276962306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_30_29 0x0ad8 277062306a36Sopenharmony_ci#define AFE_ADD6A_UL_SRC_MON0 0x0ae4 277162306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_MON1 0x0ae8 277262306a36Sopenharmony_ci#define AFE_TINY_CONN0 0x0af0 277362306a36Sopenharmony_ci#define AFE_TINY_CONN1 0x0af4 277462306a36Sopenharmony_ci#define AFE_CONN43 0x0af8 277562306a36Sopenharmony_ci#define AFE_CONN43_1 0x0afc 277662306a36Sopenharmony_ci#define AFE_MOD_DAI_CON0 0x0b00 277762306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE_MSB 0x0b04 277862306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE 0x0b08 277962306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR_MSB 0x0b0c 278062306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR 0x0b10 278162306a36Sopenharmony_ci#define AFE_MOD_DAI_END_MSB 0x0b14 278262306a36Sopenharmony_ci#define AFE_MOD_DAI_END 0x0b18 278362306a36Sopenharmony_ci#define AFE_HDMI_OUT_CON0 0x0b1c 278462306a36Sopenharmony_ci#define AFE_HDMI_OUT_BASE_MSB 0x0b20 278562306a36Sopenharmony_ci#define AFE_HDMI_OUT_BASE 0x0b24 278662306a36Sopenharmony_ci#define AFE_HDMI_OUT_CUR_MSB 0x0b28 278762306a36Sopenharmony_ci#define AFE_HDMI_OUT_CUR 0x0b2c 278862306a36Sopenharmony_ci#define AFE_HDMI_OUT_END_MSB 0x0b30 278962306a36Sopenharmony_ci#define AFE_HDMI_OUT_END 0x0b34 279062306a36Sopenharmony_ci#define AFE_AWB_RCH_MON 0x0b70 279162306a36Sopenharmony_ci#define AFE_AWB_LCH_MON 0x0b74 279262306a36Sopenharmony_ci#define AFE_VUL_RCH_MON 0x0b78 279362306a36Sopenharmony_ci#define AFE_VUL_LCH_MON 0x0b7c 279462306a36Sopenharmony_ci#define AFE_VUL12_RCH_MON 0x0b80 279562306a36Sopenharmony_ci#define AFE_VUL12_LCH_MON 0x0b84 279662306a36Sopenharmony_ci#define AFE_VUL2_RCH_MON 0x0b88 279762306a36Sopenharmony_ci#define AFE_VUL2_LCH_MON 0x0b8c 279862306a36Sopenharmony_ci#define AFE_DAI_DATA_MON 0x0b90 279962306a36Sopenharmony_ci#define AFE_MOD_DAI_DATA_MON 0x0b94 280062306a36Sopenharmony_ci#define AFE_DAI2_DATA_MON 0x0b98 280162306a36Sopenharmony_ci#define AFE_AWB2_RCH_MON 0x0b9c 280262306a36Sopenharmony_ci#define AFE_AWB2_LCH_MON 0x0ba0 280362306a36Sopenharmony_ci#define AFE_VUL3_RCH_MON 0x0ba4 280462306a36Sopenharmony_ci#define AFE_VUL3_LCH_MON 0x0ba8 280562306a36Sopenharmony_ci#define AFE_VUL4_RCH_MON 0x0bac 280662306a36Sopenharmony_ci#define AFE_VUL4_LCH_MON 0x0bb0 280762306a36Sopenharmony_ci#define AFE_VUL5_RCH_MON 0x0bb4 280862306a36Sopenharmony_ci#define AFE_VUL5_LCH_MON 0x0bb8 280962306a36Sopenharmony_ci#define AFE_VUL6_RCH_MON 0x0bbc 281062306a36Sopenharmony_ci#define AFE_VUL6_LCH_MON 0x0bc0 281162306a36Sopenharmony_ci#define AFE_DL1_RCH_MON 0x0bc4 281262306a36Sopenharmony_ci#define AFE_DL1_LCH_MON 0x0bc8 281362306a36Sopenharmony_ci#define AFE_DL2_RCH_MON 0x0bcc 281462306a36Sopenharmony_ci#define AFE_DL2_LCH_MON 0x0bd0 281562306a36Sopenharmony_ci#define AFE_DL12_RCH1_MON 0x0bd4 281662306a36Sopenharmony_ci#define AFE_DL12_LCH1_MON 0x0bd8 281762306a36Sopenharmony_ci#define AFE_DL12_RCH2_MON 0x0bdc 281862306a36Sopenharmony_ci#define AFE_DL12_LCH2_MON 0x0be0 281962306a36Sopenharmony_ci#define AFE_DL3_RCH_MON 0x0be4 282062306a36Sopenharmony_ci#define AFE_DL3_LCH_MON 0x0be8 282162306a36Sopenharmony_ci#define AFE_DL4_RCH_MON 0x0bec 282262306a36Sopenharmony_ci#define AFE_DL4_LCH_MON 0x0bf0 282362306a36Sopenharmony_ci#define AFE_DL5_RCH_MON 0x0bf4 282462306a36Sopenharmony_ci#define AFE_DL5_LCH_MON 0x0bf8 282562306a36Sopenharmony_ci#define AFE_DL6_RCH_MON 0x0bfc 282662306a36Sopenharmony_ci#define AFE_DL6_LCH_MON 0x0c00 282762306a36Sopenharmony_ci#define AFE_DL7_RCH_MON 0x0c04 282862306a36Sopenharmony_ci#define AFE_DL7_LCH_MON 0x0c08 282962306a36Sopenharmony_ci#define AFE_DL8_RCH_MON 0x0c0c 283062306a36Sopenharmony_ci#define AFE_DL8_LCH_MON 0x0c10 283162306a36Sopenharmony_ci#define AFE_VUL5_CON0 0x0c14 283262306a36Sopenharmony_ci#define AFE_VUL5_BASE_MSB 0x0c18 283362306a36Sopenharmony_ci#define AFE_VUL5_BASE 0x0c1c 283462306a36Sopenharmony_ci#define AFE_VUL5_CUR_MSB 0x0c20 283562306a36Sopenharmony_ci#define AFE_VUL5_CUR 0x0c24 283662306a36Sopenharmony_ci#define AFE_VUL5_END_MSB 0x0c28 283762306a36Sopenharmony_ci#define AFE_VUL5_END 0x0c2c 283862306a36Sopenharmony_ci#define AFE_VUL6_CON0 0x0c30 283962306a36Sopenharmony_ci#define AFE_VUL6_BASE_MSB 0x0c34 284062306a36Sopenharmony_ci#define AFE_VUL6_BASE 0x0c38 284162306a36Sopenharmony_ci#define AFE_VUL6_CUR_MSB 0x0c3c 284262306a36Sopenharmony_ci#define AFE_VUL6_CUR 0x0c40 284362306a36Sopenharmony_ci#define AFE_VUL6_END_MSB 0x0c44 284462306a36Sopenharmony_ci#define AFE_VUL6_END 0x0c48 284562306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_DCCOMP_CON 0x0c50 284662306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_TEST 0x0c54 284762306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG0 0x0c58 284862306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG1 0x0c5c 284962306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_FIFO_MON 0x0c60 285062306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_LCH_MON 0x0c64 285162306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_RCH_MON 0x0c68 285262306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_OUT_MON 0x0c6c 285362306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_DITHER_CON 0x0c70 285462306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_AUTO_RESET_CON 0x0c74 285562306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_CON 0x0c78 285662306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_MON 0x0c7c 285762306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON0 0x0c80 285862306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON1 0x0c84 285962306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON2 0x0c88 286062306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON3 0x0c8c 286162306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON4 0x0c90 286262306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON5 0x0c94 286362306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON6 0x0c98 286462306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON7 0x0c9c 286562306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON8 0x0ca0 286662306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON9 0x0ca4 286762306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON10 0x0ca8 286862306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON12 0x0cb0 286962306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON13 0x0cb4 287062306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_02_01 0x0ce0 287162306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_04_03 0x0ce4 287262306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_06_05 0x0ce8 287362306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_08_07 0x0cec 287462306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_10_09 0x0cf0 287562306a36Sopenharmony_ci#define AFE_SE_PROT_SIDEBAND 0x0d38 287662306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND0 0x0d3c 287762306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON2 0x0d40 287862306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON3 0x0d44 287962306a36Sopenharmony_ci#define AFE_MEMIF_CONN 0x0d50 288062306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND1 0x0d54 288162306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND2 0x0d58 288262306a36Sopenharmony_ci#define AFE_SE_DOMAIN_SIDEBAND3 0x0d5c 288362306a36Sopenharmony_ci#define AFE_CONN44 0x0d70 288462306a36Sopenharmony_ci#define AFE_CONN45 0x0d74 288562306a36Sopenharmony_ci#define AFE_CONN46 0x0d78 288662306a36Sopenharmony_ci#define AFE_CONN47 0x0d7c 288762306a36Sopenharmony_ci#define AFE_CONN44_1 0x0d80 288862306a36Sopenharmony_ci#define AFE_CONN45_1 0x0d84 288962306a36Sopenharmony_ci#define AFE_CONN46_1 0x0d88 289062306a36Sopenharmony_ci#define AFE_CONN47_1 0x0d8c 289162306a36Sopenharmony_ci#define AFE_DL9_CUR_MSB 0x0dc0 289262306a36Sopenharmony_ci#define AFE_DL9_CUR 0x0dc4 289362306a36Sopenharmony_ci#define AFE_DL9_END_MSB 0x0dc8 289462306a36Sopenharmony_ci#define AFE_DL9_END 0x0dcc 289562306a36Sopenharmony_ci#define AFE_HD_ENGEN_ENABLE 0x0dd0 289662306a36Sopenharmony_ci#define AFE_ADDA_DL_NLE_FIFO_MON 0x0dfc 289762306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_CFG0 0x0e00 289862306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_SYNCWORD_CFG 0x0e14 289962306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG0 0x0e20 290062306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG1 0x0e24 290162306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG2 0x0e28 290262306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON0 0x0e34 290362306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON1 0x0e38 290462306a36Sopenharmony_ci#define AFE_AUD_PAD_TOP 0x0e40 290562306a36Sopenharmony_ci#define AFE_DL_NLE_R_CFG0 0x0e44 290662306a36Sopenharmony_ci#define AFE_DL_NLE_R_CFG1 0x0e48 290762306a36Sopenharmony_ci#define AFE_DL_NLE_L_CFG0 0x0e4c 290862306a36Sopenharmony_ci#define AFE_DL_NLE_L_CFG1 0x0e50 290962306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON0 0x0e54 291062306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON1 0x0e58 291162306a36Sopenharmony_ci#define AFE_DL_NLE_R_MON2 0x0e5c 291262306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON0 0x0e60 291362306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON1 0x0e64 291462306a36Sopenharmony_ci#define AFE_DL_NLE_L_MON2 0x0e68 291562306a36Sopenharmony_ci#define AFE_DL_NLE_GAIN_CFG0 0x0e6c 291662306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_CFG0 0x0e70 291762306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG0 0x0e74 291862306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG1 0x0e78 291962306a36Sopenharmony_ci#define AFE_ADDA6_MTKAIF_RX_CFG2 0x0e7c 292062306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON0 0x0e80 292162306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON1 0x0e84 292262306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON2 0x0e88 292362306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON3 0x0e8c 292462306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON4 0x0e90 292562306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON5 0x0e94 292662306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON6 0x0e98 292762306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON7 0x0e9c 292862306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON8 0x0ea0 292962306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON9 0x0ea4 293062306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON10 0x0ea8 293162306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON12 0x0eb0 293262306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON13 0x0eb4 293362306a36Sopenharmony_ci#define GENERAL_ASRC_MODE 0x0eb8 293462306a36Sopenharmony_ci#define GENERAL_ASRC_EN_ON 0x0ebc 293562306a36Sopenharmony_ci#define AFE_CONN48 0x0ec0 293662306a36Sopenharmony_ci#define AFE_CONN49 0x0ec4 293762306a36Sopenharmony_ci#define AFE_CONN50 0x0ec8 293862306a36Sopenharmony_ci#define AFE_CONN51 0x0ecc 293962306a36Sopenharmony_ci#define AFE_CONN52 0x0ed0 294062306a36Sopenharmony_ci#define AFE_CONN53 0x0ed4 294162306a36Sopenharmony_ci#define AFE_CONN54 0x0ed8 294262306a36Sopenharmony_ci#define AFE_CONN55 0x0edc 294362306a36Sopenharmony_ci#define AFE_CONN48_1 0x0ee0 294462306a36Sopenharmony_ci#define AFE_CONN49_1 0x0ee4 294562306a36Sopenharmony_ci#define AFE_CONN50_1 0x0ee8 294662306a36Sopenharmony_ci#define AFE_CONN51_1 0x0eec 294762306a36Sopenharmony_ci#define AFE_CONN52_1 0x0ef0 294862306a36Sopenharmony_ci#define AFE_CONN53_1 0x0ef4 294962306a36Sopenharmony_ci#define AFE_CONN54_1 0x0ef8 295062306a36Sopenharmony_ci#define AFE_CONN55_1 0x0efc 295162306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON0 0x0f00 295262306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON1 0x0f04 295362306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON2 0x0f08 295462306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON3 0x0f0c 295562306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON4 0x0f10 295662306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON5 0x0f14 295762306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON6 0x0f18 295862306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON7 0x0f1c 295962306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON8 0x0f20 296062306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON9 0x0f24 296162306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON10 0x0f28 296262306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON12 0x0f30 296362306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON13 0x0f34 296462306a36Sopenharmony_ci#define AFE_DL9_RCH_MON 0x0f38 296562306a36Sopenharmony_ci#define AFE_DL9_LCH_MON 0x0f3c 296662306a36Sopenharmony_ci#define AFE_DL5_CON0 0x0f4c 296762306a36Sopenharmony_ci#define AFE_DL5_BASE_MSB 0x0f50 296862306a36Sopenharmony_ci#define AFE_DL5_BASE 0x0f54 296962306a36Sopenharmony_ci#define AFE_DL5_CUR_MSB 0x0f58 297062306a36Sopenharmony_ci#define AFE_DL5_CUR 0x0f5c 297162306a36Sopenharmony_ci#define AFE_DL5_END_MSB 0x0f60 297262306a36Sopenharmony_ci#define AFE_DL5_END 0x0f64 297362306a36Sopenharmony_ci#define AFE_DL6_CON0 0x0f68 297462306a36Sopenharmony_ci#define AFE_DL6_BASE_MSB 0x0f6c 297562306a36Sopenharmony_ci#define AFE_DL6_BASE 0x0f70 297662306a36Sopenharmony_ci#define AFE_DL6_CUR_MSB 0x0f74 297762306a36Sopenharmony_ci#define AFE_DL6_CUR 0x0f78 297862306a36Sopenharmony_ci#define AFE_DL6_END_MSB 0x0f7c 297962306a36Sopenharmony_ci#define AFE_DL6_END 0x0f80 298062306a36Sopenharmony_ci#define AFE_DL7_CON0 0x0f84 298162306a36Sopenharmony_ci#define AFE_DL7_BASE_MSB 0x0f88 298262306a36Sopenharmony_ci#define AFE_DL7_BASE 0x0f8c 298362306a36Sopenharmony_ci#define AFE_DL7_CUR_MSB 0x0f90 298462306a36Sopenharmony_ci#define AFE_DL7_CUR 0x0f94 298562306a36Sopenharmony_ci#define AFE_DL7_END_MSB 0x0f98 298662306a36Sopenharmony_ci#define AFE_DL7_END 0x0f9c 298762306a36Sopenharmony_ci#define AFE_DL8_CON0 0x0fa0 298862306a36Sopenharmony_ci#define AFE_DL8_BASE_MSB 0x0fa4 298962306a36Sopenharmony_ci#define AFE_DL8_BASE 0x0fa8 299062306a36Sopenharmony_ci#define AFE_DL8_CUR_MSB 0x0fac 299162306a36Sopenharmony_ci#define AFE_DL8_CUR 0x0fb0 299262306a36Sopenharmony_ci#define AFE_DL8_END_MSB 0x0fb4 299362306a36Sopenharmony_ci#define AFE_DL8_END 0x0fb8 299462306a36Sopenharmony_ci#define AFE_DL9_CON0 0x0fbc 299562306a36Sopenharmony_ci#define AFE_DL9_BASE_MSB 0x0fc0 299662306a36Sopenharmony_ci#define AFE_DL9_BASE 0x0fc4 299762306a36Sopenharmony_ci#define AFE_SE_SECURE_CON 0x1004 299862306a36Sopenharmony_ci#define AFE_PROT_SIDEBAND_MON 0x1008 299962306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND0_MON 0x100c 300062306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND1_MON 0x1010 300162306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND2_MON 0x1014 300262306a36Sopenharmony_ci#define AFE_DOMAIN_SIDEBAND3_MON 0x1018 300362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN0 0x1020 300462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN1 0x1024 300562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN2 0x1028 300662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN3 0x102c 300762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN4 0x1030 300862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN5 0x1034 300962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN6 0x1038 301062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN7 0x103c 301162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN8 0x1040 301262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN9 0x1044 301362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN10 0x1048 301462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN11 0x104c 301562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN12 0x1050 301662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN13 0x1054 301762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN14 0x1058 301862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN15 0x105c 301962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN16 0x1060 302062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN17 0x1064 302162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN18 0x1068 302262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN19 0x106c 302362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN20 0x1070 302462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN21 0x1074 302562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN22 0x1078 302662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN23 0x107c 302762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN24 0x1080 302862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN25 0x1084 302962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN26 0x1088 303062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN27 0x108c 303162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN28 0x1090 303262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN29 0x1094 303362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN30 0x1098 303462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN31 0x109c 303562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN32 0x10a0 303662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN33 0x10a4 303762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN34 0x10a8 303862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN35 0x10ac 303962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN36 0x10b0 304062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN37 0x10b4 304162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN38 0x10b8 304262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN39 0x10bc 304362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN40 0x10c0 304462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN41 0x10c4 304562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN42 0x10c8 304662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN43 0x10cc 304762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN44 0x10d0 304862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN45 0x10d4 304962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN46 0x10d8 305062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN47 0x10dc 305162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN48 0x10e0 305262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN49 0x10e4 305362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN50 0x10e8 305462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN51 0x10ec 305562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN52 0x10f0 305662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN53 0x10f4 305762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN54 0x10f8 305862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN55 0x10fc 305962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN56 0x1100 306062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN57 0x1104 306162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN0_1 0x1108 306262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN1_1 0x110c 306362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN2_1 0x1110 306462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN3_1 0x1114 306562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN4_1 0x1118 306662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN5_1 0x111c 306762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN6_1 0x1120 306862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN7_1 0x1124 306962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN8_1 0x1128 307062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN9_1 0x112c 307162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN10_1 0x1130 307262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN11_1 0x1134 307362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN12_1 0x1138 307462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN13_1 0x113c 307562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN14_1 0x1140 307662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN15_1 0x1144 307762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN16_1 0x1148 307862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN17_1 0x114c 307962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN18_1 0x1150 308062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN19_1 0x1154 308162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN20_1 0x1158 308262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN21_1 0x115c 308362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN22_1 0x1160 308462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN23_1 0x1164 308562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN24_1 0x1168 308662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN25_1 0x116c 308762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN26_1 0x1170 308862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN27_1 0x1174 308962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN28_1 0x1178 309062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN29_1 0x117c 309162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN30_1 0x1180 309262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN31_1 0x1184 309362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN32_1 0x1188 309462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN33_1 0x118c 309562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN34_1 0x1190 309662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN35_1 0x1194 309762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN36_1 0x1198 309862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN37_1 0x119c 309962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN38_1 0x11a0 310062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN39_1 0x11a4 310162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN40_1 0x11a8 310262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN41_1 0x11ac 310362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN42_1 0x11b0 310462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN43_1 0x11b4 310562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN44_1 0x11b8 310662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN45_1 0x11bc 310762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN46_1 0x11c0 310862306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN47_1 0x11c4 310962306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN48_1 0x11c8 311062306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN49_1 0x11cc 311162306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN50_1 0x11d0 311262306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN51_1 0x11d4 311362306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN52_1 0x11d8 311462306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN53_1 0x11dc 311562306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN54_1 0x11e0 311662306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN55_1 0x11e4 311762306a36Sopenharmony_ci#define AFE_SECURE_MASK_CONN56_1 0x11e8 311862306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN0 0x1200 311962306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN1 0x1204 312062306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN2 0x1208 312162306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN3 0x120c 312262306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN4 0x1210 312362306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN5 0x1214 312462306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN6 0x1218 312562306a36Sopenharmony_ci#define AFE_SECURE_MASK_TINY_CONN7 0x121c 312662306a36Sopenharmony_ci 312762306a36Sopenharmony_ci#define AFE_MAX_REGISTER AFE_SECURE_MASK_TINY_CONN7 312862306a36Sopenharmony_ci 312962306a36Sopenharmony_ci#define AFE_IRQ_STATUS_BITS 0x87FFFFFF 313062306a36Sopenharmony_ci#define AFE_IRQ_CNT_SHIFT 0 313162306a36Sopenharmony_ci#define AFE_IRQ_CNT_MASK 0x3ffff 313262306a36Sopenharmony_ci 313362306a36Sopenharmony_ci#endif 3134