162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * mt8183-reg.h -- Mediatek 8183 audio driver reg definition 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2018 MediaTek Inc. 662306a36Sopenharmony_ci * Author: KaiChieh Chuang <kaichieh.chuang@mediatek.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _MT8183_REG_H_ 1062306a36Sopenharmony_ci#define _MT8183_REG_H_ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define AUDIO_TOP_CON0 0x0000 1362306a36Sopenharmony_ci#define AUDIO_TOP_CON1 0x0004 1462306a36Sopenharmony_ci#define AUDIO_TOP_CON3 0x000c 1562306a36Sopenharmony_ci#define AFE_DAC_CON0 0x0010 1662306a36Sopenharmony_ci#define AFE_DAC_CON1 0x0014 1762306a36Sopenharmony_ci#define AFE_I2S_CON 0x0018 1862306a36Sopenharmony_ci#define AFE_DAIBT_CON0 0x001c 1962306a36Sopenharmony_ci#define AFE_CONN0 0x0020 2062306a36Sopenharmony_ci#define AFE_CONN1 0x0024 2162306a36Sopenharmony_ci#define AFE_CONN2 0x0028 2262306a36Sopenharmony_ci#define AFE_CONN3 0x002c 2362306a36Sopenharmony_ci#define AFE_CONN4 0x0030 2462306a36Sopenharmony_ci#define AFE_I2S_CON1 0x0034 2562306a36Sopenharmony_ci#define AFE_I2S_CON2 0x0038 2662306a36Sopenharmony_ci#define AFE_MRGIF_CON 0x003c 2762306a36Sopenharmony_ci#define AFE_DL1_BASE 0x0040 2862306a36Sopenharmony_ci#define AFE_DL1_CUR 0x0044 2962306a36Sopenharmony_ci#define AFE_DL1_END 0x0048 3062306a36Sopenharmony_ci#define AFE_I2S_CON3 0x004c 3162306a36Sopenharmony_ci#define AFE_DL2_BASE 0x0050 3262306a36Sopenharmony_ci#define AFE_DL2_CUR 0x0054 3362306a36Sopenharmony_ci#define AFE_DL2_END 0x0058 3462306a36Sopenharmony_ci#define AFE_CONN5 0x005c 3562306a36Sopenharmony_ci#define AFE_CONN_24BIT 0x006c 3662306a36Sopenharmony_ci#define AFE_AWB_BASE 0x0070 3762306a36Sopenharmony_ci#define AFE_AWB_END 0x0078 3862306a36Sopenharmony_ci#define AFE_AWB_CUR 0x007c 3962306a36Sopenharmony_ci#define AFE_VUL_BASE 0x0080 4062306a36Sopenharmony_ci#define AFE_VUL_END 0x0088 4162306a36Sopenharmony_ci#define AFE_VUL_CUR 0x008c 4262306a36Sopenharmony_ci#define AFE_CONN6 0x00bc 4362306a36Sopenharmony_ci#define AFE_MEMIF_MSB 0x00cc 4462306a36Sopenharmony_ci#define AFE_MEMIF_MON0 0x00d0 4562306a36Sopenharmony_ci#define AFE_MEMIF_MON1 0x00d4 4662306a36Sopenharmony_ci#define AFE_MEMIF_MON2 0x00d8 4762306a36Sopenharmony_ci#define AFE_MEMIF_MON3 0x00dc 4862306a36Sopenharmony_ci#define AFE_MEMIF_MON4 0x00e0 4962306a36Sopenharmony_ci#define AFE_MEMIF_MON5 0x00e4 5062306a36Sopenharmony_ci#define AFE_MEMIF_MON6 0x00e8 5162306a36Sopenharmony_ci#define AFE_MEMIF_MON7 0x00ec 5262306a36Sopenharmony_ci#define AFE_MEMIF_MON8 0x00f0 5362306a36Sopenharmony_ci#define AFE_MEMIF_MON9 0x00f4 5462306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON0 0x0108 5562306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON1 0x010c 5662306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON0 0x0114 5762306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON1 0x0118 5862306a36Sopenharmony_ci#define AFE_ADDA_TOP_CON0 0x0120 5962306a36Sopenharmony_ci#define AFE_ADDA_UL_DL_CON0 0x0124 6062306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG 0x012c 6162306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON0 0x0130 6262306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON1 0x0134 6362306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON0 0x0148 6462306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_MON1 0x014c 6562306a36Sopenharmony_ci#define AFE_SIDETONE_DEBUG 0x01d0 6662306a36Sopenharmony_ci#define AFE_SIDETONE_MON 0x01d4 6762306a36Sopenharmony_ci#define AFE_SINEGEN_CON2 0x01dc 6862306a36Sopenharmony_ci#define AFE_SIDETONE_CON0 0x01e0 6962306a36Sopenharmony_ci#define AFE_SIDETONE_COEFF 0x01e4 7062306a36Sopenharmony_ci#define AFE_SIDETONE_CON1 0x01e8 7162306a36Sopenharmony_ci#define AFE_SIDETONE_GAIN 0x01ec 7262306a36Sopenharmony_ci#define AFE_SINEGEN_CON0 0x01f0 7362306a36Sopenharmony_ci#define AFE_TOP_CON0 0x0200 7462306a36Sopenharmony_ci#define AFE_BUS_CFG 0x0240 7562306a36Sopenharmony_ci#define AFE_BUS_MON0 0x0244 7662306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON0 0x0260 7762306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON1 0x0264 7862306a36Sopenharmony_ci#define AFE_MRGIF_MON0 0x0270 7962306a36Sopenharmony_ci#define AFE_MRGIF_MON1 0x0274 8062306a36Sopenharmony_ci#define AFE_MRGIF_MON2 0x0278 8162306a36Sopenharmony_ci#define AFE_I2S_MON 0x027c 8262306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_02_01 0x0290 8362306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_04_03 0x0294 8462306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_06_05 0x0298 8562306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_08_07 0x029c 8662306a36Sopenharmony_ci#define AFE_ADDA_IIR_COEF_10_09 0x02a0 8762306a36Sopenharmony_ci#define AFE_DAC_CON2 0x02e0 8862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON1 0x02e4 8962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON2 0x02e8 9062306a36Sopenharmony_ci#define AFE_DAC_MON 0x02ec 9162306a36Sopenharmony_ci#define AFE_VUL2_BASE 0x02f0 9262306a36Sopenharmony_ci#define AFE_VUL2_END 0x02f8 9362306a36Sopenharmony_ci#define AFE_VUL2_CUR 0x02fc 9462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT0 0x0300 9562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT6 0x0304 9662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT8 0x0308 9762306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN1 0x030c 9862306a36Sopenharmony_ci#define AFE_IRQ0_MCU_CNT_MON 0x0310 9962306a36Sopenharmony_ci#define AFE_IRQ6_MCU_CNT_MON 0x0314 10062306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE 0x0330 10162306a36Sopenharmony_ci#define AFE_MOD_DAI_END 0x0338 10262306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR 0x033c 10362306a36Sopenharmony_ci#define AFE_VUL_D2_BASE 0x0350 10462306a36Sopenharmony_ci#define AFE_VUL_D2_END 0x0358 10562306a36Sopenharmony_ci#define AFE_VUL_D2_CUR 0x035c 10662306a36Sopenharmony_ci#define AFE_DL3_BASE 0x0360 10762306a36Sopenharmony_ci#define AFE_DL3_CUR 0x0364 10862306a36Sopenharmony_ci#define AFE_DL3_END 0x0368 10962306a36Sopenharmony_ci#define AFE_HDMI_OUT_CON0 0x0370 11062306a36Sopenharmony_ci#define AFE_HDMI_OUT_BASE 0x0374 11162306a36Sopenharmony_ci#define AFE_HDMI_OUT_CUR 0x0378 11262306a36Sopenharmony_ci#define AFE_HDMI_OUT_END 0x037c 11362306a36Sopenharmony_ci#define AFE_HDMI_CONN0 0x0390 11462306a36Sopenharmony_ci#define AFE_IRQ3_MCU_CNT_MON 0x0398 11562306a36Sopenharmony_ci#define AFE_IRQ4_MCU_CNT_MON 0x039c 11662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON0 0x03a0 11762306a36Sopenharmony_ci#define AFE_IRQ_MCU_STATUS 0x03a4 11862306a36Sopenharmony_ci#define AFE_IRQ_MCU_CLR 0x03a8 11962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1 0x03ac 12062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2 0x03b0 12162306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN 0x03b4 12262306a36Sopenharmony_ci#define AFE_IRQ_MCU_MON2 0x03b8 12362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5 0x03bc 12462306a36Sopenharmony_ci#define AFE_IRQ1_MCU_CNT_MON 0x03c0 12562306a36Sopenharmony_ci#define AFE_IRQ2_MCU_CNT_MON 0x03c4 12662306a36Sopenharmony_ci#define AFE_IRQ1_MCU_EN_CNT_MON 0x03c8 12762306a36Sopenharmony_ci#define AFE_IRQ5_MCU_CNT_MON 0x03cc 12862306a36Sopenharmony_ci#define AFE_MEMIF_MINLEN 0x03d0 12962306a36Sopenharmony_ci#define AFE_MEMIF_MAXLEN 0x03d4 13062306a36Sopenharmony_ci#define AFE_MEMIF_PBUF_SIZE 0x03d8 13162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7 0x03dc 13262306a36Sopenharmony_ci#define AFE_IRQ7_MCU_CNT_MON 0x03e0 13362306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3 0x03e4 13462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4 0x03e8 13562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT11 0x03ec 13662306a36Sopenharmony_ci#define AFE_APLL1_TUNER_CFG 0x03f0 13762306a36Sopenharmony_ci#define AFE_APLL2_TUNER_CFG 0x03f4 13862306a36Sopenharmony_ci#define AFE_MEMIF_HD_MODE 0x03f8 13962306a36Sopenharmony_ci#define AFE_MEMIF_HDALIGN 0x03fc 14062306a36Sopenharmony_ci#define AFE_CONN33 0x0408 14162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT12 0x040c 14262306a36Sopenharmony_ci#define AFE_GAIN1_CON0 0x0410 14362306a36Sopenharmony_ci#define AFE_GAIN1_CON1 0x0414 14462306a36Sopenharmony_ci#define AFE_GAIN1_CON2 0x0418 14562306a36Sopenharmony_ci#define AFE_GAIN1_CON3 0x041c 14662306a36Sopenharmony_ci#define AFE_CONN7 0x0420 14762306a36Sopenharmony_ci#define AFE_GAIN1_CUR 0x0424 14862306a36Sopenharmony_ci#define AFE_GAIN2_CON0 0x0428 14962306a36Sopenharmony_ci#define AFE_GAIN2_CON1 0x042c 15062306a36Sopenharmony_ci#define AFE_GAIN2_CON2 0x0430 15162306a36Sopenharmony_ci#define AFE_GAIN2_CON3 0x0434 15262306a36Sopenharmony_ci#define AFE_CONN8 0x0438 15362306a36Sopenharmony_ci#define AFE_GAIN2_CUR 0x043c 15462306a36Sopenharmony_ci#define AFE_CONN9 0x0440 15562306a36Sopenharmony_ci#define AFE_CONN10 0x0444 15662306a36Sopenharmony_ci#define AFE_CONN11 0x0448 15762306a36Sopenharmony_ci#define AFE_CONN12 0x044c 15862306a36Sopenharmony_ci#define AFE_CONN13 0x0450 15962306a36Sopenharmony_ci#define AFE_CONN14 0x0454 16062306a36Sopenharmony_ci#define AFE_CONN15 0x0458 16162306a36Sopenharmony_ci#define AFE_CONN16 0x045c 16262306a36Sopenharmony_ci#define AFE_CONN17 0x0460 16362306a36Sopenharmony_ci#define AFE_CONN18 0x0464 16462306a36Sopenharmony_ci#define AFE_CONN19 0x0468 16562306a36Sopenharmony_ci#define AFE_CONN20 0x046c 16662306a36Sopenharmony_ci#define AFE_CONN21 0x0470 16762306a36Sopenharmony_ci#define AFE_CONN22 0x0474 16862306a36Sopenharmony_ci#define AFE_CONN23 0x0478 16962306a36Sopenharmony_ci#define AFE_CONN24 0x047c 17062306a36Sopenharmony_ci#define AFE_CONN_RS 0x0494 17162306a36Sopenharmony_ci#define AFE_CONN_DI 0x0498 17262306a36Sopenharmony_ci#define AFE_CONN25 0x04b0 17362306a36Sopenharmony_ci#define AFE_CONN26 0x04b4 17462306a36Sopenharmony_ci#define AFE_CONN27 0x04b8 17562306a36Sopenharmony_ci#define AFE_CONN28 0x04bc 17662306a36Sopenharmony_ci#define AFE_CONN29 0x04c0 17762306a36Sopenharmony_ci#define AFE_CONN30 0x04c4 17862306a36Sopenharmony_ci#define AFE_CONN31 0x04c8 17962306a36Sopenharmony_ci#define AFE_CONN32 0x04cc 18062306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON0 0x04f0 18162306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON2 0x04f8 18262306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON3 0x04fc 18362306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON12 0x0528 18462306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON13 0x052c 18562306a36Sopenharmony_ci#define PCM_INTF_CON1 0x0530 18662306a36Sopenharmony_ci#define PCM_INTF_CON2 0x0538 18762306a36Sopenharmony_ci#define PCM2_INTF_CON 0x053c 18862306a36Sopenharmony_ci#define AFE_TDM_CON1 0x0548 18962306a36Sopenharmony_ci#define AFE_TDM_CON2 0x054c 19062306a36Sopenharmony_ci#define AFE_CONN34 0x0580 19162306a36Sopenharmony_ci#define FPGA_CFG0 0x05b0 19262306a36Sopenharmony_ci#define FPGA_CFG1 0x05b4 19362306a36Sopenharmony_ci#define FPGA_CFG2 0x05c0 19462306a36Sopenharmony_ci#define FPGA_CFG3 0x05c4 19562306a36Sopenharmony_ci#define AUDIO_TOP_DBG_CON 0x05c8 19662306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON0 0x05cc 19762306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON1 0x05d0 19862306a36Sopenharmony_ci#define AFE_IRQ8_MCU_CNT_MON 0x05e4 19962306a36Sopenharmony_ci#define AFE_IRQ11_MCU_CNT_MON 0x05e8 20062306a36Sopenharmony_ci#define AFE_IRQ12_MCU_CNT_MON 0x05ec 20162306a36Sopenharmony_ci#define AFE_GENERAL_REG0 0x0800 20262306a36Sopenharmony_ci#define AFE_GENERAL_REG1 0x0804 20362306a36Sopenharmony_ci#define AFE_GENERAL_REG2 0x0808 20462306a36Sopenharmony_ci#define AFE_GENERAL_REG3 0x080c 20562306a36Sopenharmony_ci#define AFE_GENERAL_REG4 0x0810 20662306a36Sopenharmony_ci#define AFE_GENERAL_REG5 0x0814 20762306a36Sopenharmony_ci#define AFE_GENERAL_REG6 0x0818 20862306a36Sopenharmony_ci#define AFE_GENERAL_REG7 0x081c 20962306a36Sopenharmony_ci#define AFE_GENERAL_REG8 0x0820 21062306a36Sopenharmony_ci#define AFE_GENERAL_REG9 0x0824 21162306a36Sopenharmony_ci#define AFE_GENERAL_REG10 0x0828 21262306a36Sopenharmony_ci#define AFE_GENERAL_REG11 0x082c 21362306a36Sopenharmony_ci#define AFE_GENERAL_REG12 0x0830 21462306a36Sopenharmony_ci#define AFE_GENERAL_REG13 0x0834 21562306a36Sopenharmony_ci#define AFE_GENERAL_REG14 0x0838 21662306a36Sopenharmony_ci#define AFE_GENERAL_REG15 0x083c 21762306a36Sopenharmony_ci#define AFE_CBIP_CFG0 0x0840 21862306a36Sopenharmony_ci#define AFE_CBIP_MON0 0x0844 21962306a36Sopenharmony_ci#define AFE_CBIP_SLV_MUX_MON0 0x0848 22062306a36Sopenharmony_ci#define AFE_CBIP_SLV_DECODER_MON0 0x084c 22162306a36Sopenharmony_ci#define AFE_CONN0_1 0x0900 22262306a36Sopenharmony_ci#define AFE_CONN1_1 0x0904 22362306a36Sopenharmony_ci#define AFE_CONN2_1 0x0908 22462306a36Sopenharmony_ci#define AFE_CONN3_1 0x090c 22562306a36Sopenharmony_ci#define AFE_CONN4_1 0x0910 22662306a36Sopenharmony_ci#define AFE_CONN5_1 0x0914 22762306a36Sopenharmony_ci#define AFE_CONN6_1 0x0918 22862306a36Sopenharmony_ci#define AFE_CONN7_1 0x091c 22962306a36Sopenharmony_ci#define AFE_CONN8_1 0x0920 23062306a36Sopenharmony_ci#define AFE_CONN9_1 0x0924 23162306a36Sopenharmony_ci#define AFE_CONN10_1 0x0928 23262306a36Sopenharmony_ci#define AFE_CONN11_1 0x092c 23362306a36Sopenharmony_ci#define AFE_CONN12_1 0x0930 23462306a36Sopenharmony_ci#define AFE_CONN13_1 0x0934 23562306a36Sopenharmony_ci#define AFE_CONN14_1 0x0938 23662306a36Sopenharmony_ci#define AFE_CONN15_1 0x093c 23762306a36Sopenharmony_ci#define AFE_CONN16_1 0x0940 23862306a36Sopenharmony_ci#define AFE_CONN17_1 0x0944 23962306a36Sopenharmony_ci#define AFE_CONN18_1 0x0948 24062306a36Sopenharmony_ci#define AFE_CONN19_1 0x094c 24162306a36Sopenharmony_ci#define AFE_CONN20_1 0x0950 24262306a36Sopenharmony_ci#define AFE_CONN21_1 0x0954 24362306a36Sopenharmony_ci#define AFE_CONN22_1 0x0958 24462306a36Sopenharmony_ci#define AFE_CONN23_1 0x095c 24562306a36Sopenharmony_ci#define AFE_CONN24_1 0x0960 24662306a36Sopenharmony_ci#define AFE_CONN25_1 0x0964 24762306a36Sopenharmony_ci#define AFE_CONN26_1 0x0968 24862306a36Sopenharmony_ci#define AFE_CONN27_1 0x096c 24962306a36Sopenharmony_ci#define AFE_CONN28_1 0x0970 25062306a36Sopenharmony_ci#define AFE_CONN29_1 0x0974 25162306a36Sopenharmony_ci#define AFE_CONN30_1 0x0978 25262306a36Sopenharmony_ci#define AFE_CONN31_1 0x097c 25362306a36Sopenharmony_ci#define AFE_CONN32_1 0x0980 25462306a36Sopenharmony_ci#define AFE_CONN33_1 0x0984 25562306a36Sopenharmony_ci#define AFE_CONN34_1 0x0988 25662306a36Sopenharmony_ci#define AFE_CONN_RS_1 0x098c 25762306a36Sopenharmony_ci#define AFE_CONN_DI_1 0x0990 25862306a36Sopenharmony_ci#define AFE_CONN_24BIT_1 0x0994 25962306a36Sopenharmony_ci#define AFE_CONN_REG 0x0998 26062306a36Sopenharmony_ci#define AFE_CONN35 0x09a0 26162306a36Sopenharmony_ci#define AFE_CONN36 0x09a4 26262306a36Sopenharmony_ci#define AFE_CONN37 0x09a8 26362306a36Sopenharmony_ci#define AFE_CONN38 0x09ac 26462306a36Sopenharmony_ci#define AFE_CONN35_1 0x09b0 26562306a36Sopenharmony_ci#define AFE_CONN36_1 0x09b4 26662306a36Sopenharmony_ci#define AFE_CONN37_1 0x09b8 26762306a36Sopenharmony_ci#define AFE_CONN38_1 0x09bc 26862306a36Sopenharmony_ci#define AFE_CONN39 0x09c0 26962306a36Sopenharmony_ci#define AFE_CONN40 0x09c4 27062306a36Sopenharmony_ci#define AFE_CONN41 0x09c8 27162306a36Sopenharmony_ci#define AFE_CONN42 0x09cc 27262306a36Sopenharmony_ci#define AFE_CONN39_1 0x09e0 27362306a36Sopenharmony_ci#define AFE_CONN40_1 0x09e4 27462306a36Sopenharmony_ci#define AFE_CONN41_1 0x09e8 27562306a36Sopenharmony_ci#define AFE_CONN42_1 0x09ec 27662306a36Sopenharmony_ci#define AFE_I2S_CON4 0x09f8 27762306a36Sopenharmony_ci#define AFE_ADDA6_TOP_CON0 0x0a80 27862306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_CON0 0x0a84 27962306a36Sopenharmony_ci#define AFE_ADD6_UL_SRC_CON1 0x0a88 28062306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG 0x0a8c 28162306a36Sopenharmony_ci#define AFE_ADDA6_SRC_DEBUG_MON0 0x0a90 28262306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_02_01 0x0aa0 28362306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_04_03 0x0aa4 28462306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_06_05 0x0aa8 28562306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_08_07 0x0aac 28662306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_10_09 0x0ab0 28762306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_12_11 0x0ab4 28862306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_14_13 0x0ab8 28962306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_16_15 0x0abc 29062306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_18_17 0x0ac0 29162306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_20_19 0x0ac4 29262306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_22_21 0x0ac8 29362306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_24_23 0x0acc 29462306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_26_25 0x0ad0 29562306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_28_27 0x0ad4 29662306a36Sopenharmony_ci#define AFE_ADDA6_ULCF_CFG_30_29 0x0ad8 29762306a36Sopenharmony_ci#define AFE_ADD6A_UL_SRC_MON0 0x0ae4 29862306a36Sopenharmony_ci#define AFE_ADDA6_UL_SRC_MON1 0x0ae8 29962306a36Sopenharmony_ci#define AFE_CONN43 0x0af8 30062306a36Sopenharmony_ci#define AFE_CONN43_1 0x0afc 30162306a36Sopenharmony_ci#define AFE_DL1_BASE_MSB 0x0b00 30262306a36Sopenharmony_ci#define AFE_DL1_CUR_MSB 0x0b04 30362306a36Sopenharmony_ci#define AFE_DL1_END_MSB 0x0b08 30462306a36Sopenharmony_ci#define AFE_DL2_BASE_MSB 0x0b10 30562306a36Sopenharmony_ci#define AFE_DL2_CUR_MSB 0x0b14 30662306a36Sopenharmony_ci#define AFE_DL2_END_MSB 0x0b18 30762306a36Sopenharmony_ci#define AFE_AWB_BASE_MSB 0x0b20 30862306a36Sopenharmony_ci#define AFE_AWB_END_MSB 0x0b28 30962306a36Sopenharmony_ci#define AFE_AWB_CUR_MSB 0x0b2c 31062306a36Sopenharmony_ci#define AFE_VUL_BASE_MSB 0x0b30 31162306a36Sopenharmony_ci#define AFE_VUL_END_MSB 0x0b38 31262306a36Sopenharmony_ci#define AFE_VUL_CUR_MSB 0x0b3c 31362306a36Sopenharmony_ci#define AFE_VUL2_BASE_MSB 0x0b50 31462306a36Sopenharmony_ci#define AFE_VUL2_END_MSB 0x0b58 31562306a36Sopenharmony_ci#define AFE_VUL2_CUR_MSB 0x0b5c 31662306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE_MSB 0x0b60 31762306a36Sopenharmony_ci#define AFE_MOD_DAI_END_MSB 0x0b68 31862306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR_MSB 0x0b6c 31962306a36Sopenharmony_ci#define AFE_VUL_D2_BASE_MSB 0x0b80 32062306a36Sopenharmony_ci#define AFE_VUL_D2_END_MSB 0x0b88 32162306a36Sopenharmony_ci#define AFE_VUL_D2_CUR_MSB 0x0b8c 32262306a36Sopenharmony_ci#define AFE_DL3_BASE_MSB 0x0b90 32362306a36Sopenharmony_ci#define AFE_DL3_CUR_MSB 0x0b94 32462306a36Sopenharmony_ci#define AFE_DL3_END_MSB 0x0b98 32562306a36Sopenharmony_ci#define AFE_HDMI_OUT_BASE_MSB 0x0ba4 32662306a36Sopenharmony_ci#define AFE_HDMI_OUT_CUR_MSB 0x0ba8 32762306a36Sopenharmony_ci#define AFE_HDMI_OUT_END_MSB 0x0bac 32862306a36Sopenharmony_ci#define AFE_AWB2_BASE 0x0bd0 32962306a36Sopenharmony_ci#define AFE_AWB2_END 0x0bd8 33062306a36Sopenharmony_ci#define AFE_AWB2_CUR 0x0bdc 33162306a36Sopenharmony_ci#define AFE_AWB2_BASE_MSB 0x0be0 33262306a36Sopenharmony_ci#define AFE_AWB2_END_MSB 0x0be8 33362306a36Sopenharmony_ci#define AFE_AWB2_CUR_MSB 0x0bec 33462306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_DCCOMP_CON 0x0c50 33562306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_TEST 0x0c54 33662306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG0 0x0c58 33762306a36Sopenharmony_ci#define AFE_ADDA_DL_DC_COMP_CFG1 0x0c5c 33862306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_FIFO_MON 0x0c60 33962306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_LCH_MON 0x0c64 34062306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC_RCH_MON 0x0c68 34162306a36Sopenharmony_ci#define AFE_ADDA_DL_SDM_OUT_MON 0x0c6c 34262306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_CON 0x0c78 34362306a36Sopenharmony_ci#define AFE_CONNSYS_I2S_MON 0x0c7c 34462306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON0 0x0c80 34562306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON1 0x0c84 34662306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON2 0x0c88 34762306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON3 0x0c8c 34862306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON4 0x0c90 34962306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON5 0x0c94 35062306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON6 0x0c98 35162306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON7 0x0c9c 35262306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON8 0x0ca0 35362306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON9 0x0ca4 35462306a36Sopenharmony_ci#define AFE_ASRC_2CH_CON10 0x0ca8 35562306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_02_01 0x0ce0 35662306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_04_03 0x0ce4 35762306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_06_05 0x0ce8 35862306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_08_07 0x0cec 35962306a36Sopenharmony_ci#define AFE_ADDA6_IIR_COEF_10_09 0x0cf0 36062306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON2 0x0d40 36162306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON3 0x0d44 36262306a36Sopenharmony_ci#define AFE_MEMIF_MON12 0x0d70 36362306a36Sopenharmony_ci#define AFE_MEMIF_MON13 0x0d74 36462306a36Sopenharmony_ci#define AFE_MEMIF_MON14 0x0d78 36562306a36Sopenharmony_ci#define AFE_MEMIF_MON15 0x0d7c 36662306a36Sopenharmony_ci#define AFE_MEMIF_MON16 0x0d80 36762306a36Sopenharmony_ci#define AFE_MEMIF_MON17 0x0d84 36862306a36Sopenharmony_ci#define AFE_MEMIF_MON18 0x0d88 36962306a36Sopenharmony_ci#define AFE_MEMIF_MON19 0x0d8c 37062306a36Sopenharmony_ci#define AFE_MEMIF_MON20 0x0d90 37162306a36Sopenharmony_ci#define AFE_MEMIF_MON21 0x0d94 37262306a36Sopenharmony_ci#define AFE_MEMIF_MON22 0x0d98 37362306a36Sopenharmony_ci#define AFE_MEMIF_MON23 0x0d9c 37462306a36Sopenharmony_ci#define AFE_MEMIF_MON24 0x0da0 37562306a36Sopenharmony_ci#define AFE_HD_ENGEN_ENABLE 0x0dd0 37662306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_CFG0 0x0e00 37762306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_TX_CFG1 0x0e14 37862306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG0 0x0e20 37962306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG1 0x0e24 38062306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_RX_CFG2 0x0e28 38162306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON0 0x0e34 38262306a36Sopenharmony_ci#define AFE_ADDA_MTKAIF_MON1 0x0e38 38362306a36Sopenharmony_ci#define AFE_AUD_PAD_TOP 0x0e40 38462306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON0 0x0e80 38562306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON1 0x0e84 38662306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON2 0x0e88 38762306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON3 0x0e8c 38862306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON4 0x0e90 38962306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON5 0x0e94 39062306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON6 0x0e98 39162306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON7 0x0e9c 39262306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON8 0x0ea0 39362306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON9 0x0ea4 39462306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON10 0x0ea8 39562306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON12 0x0eb0 39662306a36Sopenharmony_ci#define AFE_GENERAL1_ASRC_2CH_CON13 0x0eb4 39762306a36Sopenharmony_ci#define GENERAL_ASRC_MODE 0x0eb8 39862306a36Sopenharmony_ci#define GENERAL_ASRC_EN_ON 0x0ebc 39962306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON0 0x0f00 40062306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON1 0x0f04 40162306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON2 0x0f08 40262306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON3 0x0f0c 40362306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON4 0x0f10 40462306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON5 0x0f14 40562306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON6 0x0f18 40662306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON7 0x0f1c 40762306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON8 0x0f20 40862306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON9 0x0f24 40962306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON10 0x0f28 41062306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON12 0x0f30 41162306a36Sopenharmony_ci#define AFE_GENERAL2_ASRC_2CH_CON13 0x0f34 41262306a36Sopenharmony_ci 41362306a36Sopenharmony_ci#define AFE_MAX_REGISTER AFE_GENERAL2_ASRC_2CH_CON13 41462306a36Sopenharmony_ci#define AFE_IRQ_STATUS_BITS 0x1fff 41562306a36Sopenharmony_ci 41662306a36Sopenharmony_ci/* AUDIO_TOP_CON3 */ 41762306a36Sopenharmony_ci#define BCK_INVERSE_SFT 3 41862306a36Sopenharmony_ci#define BCK_INVERSE_MASK 0x1 41962306a36Sopenharmony_ci#define BCK_INVERSE_MASK_SFT (0x1 << 3) 42062306a36Sopenharmony_ci 42162306a36Sopenharmony_ci/* AFE_DAC_CON0 */ 42262306a36Sopenharmony_ci#define AWB2_ON_SFT 29 42362306a36Sopenharmony_ci#define AWB2_ON_MASK 0x1 42462306a36Sopenharmony_ci#define AWB2_ON_MASK_SFT (0x1 << 29) 42562306a36Sopenharmony_ci#define VUL2_ON_SFT 27 42662306a36Sopenharmony_ci#define VUL2_ON_MASK 0x1 42762306a36Sopenharmony_ci#define VUL2_ON_MASK_SFT (0x1 << 27) 42862306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_SFT 26 42962306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK 0x1 43062306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK_SFT (0x1 << 26) 43162306a36Sopenharmony_ci#define VUL12_MODE_SFT 20 43262306a36Sopenharmony_ci#define VUL12_MODE_MASK 0xf 43362306a36Sopenharmony_ci#define VUL12_MODE_MASK_SFT (0xf << 20) 43462306a36Sopenharmony_ci#define VUL12_R_MONO_SFT 11 43562306a36Sopenharmony_ci#define VUL12_R_MONO_MASK 0x1 43662306a36Sopenharmony_ci#define VUL12_R_MONO_MASK_SFT (0x1 << 11) 43762306a36Sopenharmony_ci#define VUL12_MONO_SFT 10 43862306a36Sopenharmony_ci#define VUL12_MONO_MASK 0x1 43962306a36Sopenharmony_ci#define VUL12_MONO_MASK_SFT (0x1 << 10) 44062306a36Sopenharmony_ci#define VUL12_ON_SFT 9 44162306a36Sopenharmony_ci#define VUL12_ON_MASK 0x1 44262306a36Sopenharmony_ci#define VUL12_ON_MASK_SFT (0x1 << 9) 44362306a36Sopenharmony_ci#define MOD_DAI_ON_SFT 7 44462306a36Sopenharmony_ci#define MOD_DAI_ON_MASK 0x1 44562306a36Sopenharmony_ci#define MOD_DAI_ON_MASK_SFT (0x1 << 7) 44662306a36Sopenharmony_ci#define AWB_ON_SFT 6 44762306a36Sopenharmony_ci#define AWB_ON_MASK 0x1 44862306a36Sopenharmony_ci#define AWB_ON_MASK_SFT (0x1 << 6) 44962306a36Sopenharmony_ci#define DL3_ON_SFT 5 45062306a36Sopenharmony_ci#define DL3_ON_MASK 0x1 45162306a36Sopenharmony_ci#define DL3_ON_MASK_SFT (0x1 << 5) 45262306a36Sopenharmony_ci#define VUL_ON_SFT 3 45362306a36Sopenharmony_ci#define VUL_ON_MASK 0x1 45462306a36Sopenharmony_ci#define VUL_ON_MASK_SFT (0x1 << 3) 45562306a36Sopenharmony_ci#define DL2_ON_SFT 2 45662306a36Sopenharmony_ci#define DL2_ON_MASK 0x1 45762306a36Sopenharmony_ci#define DL2_ON_MASK_SFT (0x1 << 2) 45862306a36Sopenharmony_ci#define DL1_ON_SFT 1 45962306a36Sopenharmony_ci#define DL1_ON_MASK 0x1 46062306a36Sopenharmony_ci#define DL1_ON_MASK_SFT (0x1 << 1) 46162306a36Sopenharmony_ci#define AFE_ON_SFT 0 46262306a36Sopenharmony_ci#define AFE_ON_MASK 0x1 46362306a36Sopenharmony_ci#define AFE_ON_MASK_SFT (0x1 << 0) 46462306a36Sopenharmony_ci 46562306a36Sopenharmony_ci/* AFE_DAC_CON1 */ 46662306a36Sopenharmony_ci#define MOD_DAI_MODE_SFT 30 46762306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK 0x3 46862306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK_SFT (0x3 << 30) 46962306a36Sopenharmony_ci#define VUL_R_MONO_SFT 28 47062306a36Sopenharmony_ci#define VUL_R_MONO_MASK 0x1 47162306a36Sopenharmony_ci#define VUL_R_MONO_MASK_SFT (0x1 << 28) 47262306a36Sopenharmony_ci#define VUL_DATA_SFT 27 47362306a36Sopenharmony_ci#define VUL_DATA_MASK 0x1 47462306a36Sopenharmony_ci#define VUL_DATA_MASK_SFT (0x1 << 27) 47562306a36Sopenharmony_ci#define AWB_R_MONO_SFT 25 47662306a36Sopenharmony_ci#define AWB_R_MONO_MASK 0x1 47762306a36Sopenharmony_ci#define AWB_R_MONO_MASK_SFT (0x1 << 25) 47862306a36Sopenharmony_ci#define AWB_DATA_SFT 24 47962306a36Sopenharmony_ci#define AWB_DATA_MASK 0x1 48062306a36Sopenharmony_ci#define AWB_DATA_MASK_SFT (0x1 << 24) 48162306a36Sopenharmony_ci#define DL3_DATA_SFT 23 48262306a36Sopenharmony_ci#define DL3_DATA_MASK 0x1 48362306a36Sopenharmony_ci#define DL3_DATA_MASK_SFT (0x1 << 23) 48462306a36Sopenharmony_ci#define DL2_DATA_SFT 22 48562306a36Sopenharmony_ci#define DL2_DATA_MASK 0x1 48662306a36Sopenharmony_ci#define DL2_DATA_MASK_SFT (0x1 << 22) 48762306a36Sopenharmony_ci#define DL1_DATA_SFT 21 48862306a36Sopenharmony_ci#define DL1_DATA_MASK 0x1 48962306a36Sopenharmony_ci#define DL1_DATA_MASK_SFT (0x1 << 21) 49062306a36Sopenharmony_ci#define VUL_MODE_SFT 16 49162306a36Sopenharmony_ci#define VUL_MODE_MASK 0xf 49262306a36Sopenharmony_ci#define VUL_MODE_MASK_SFT (0xf << 16) 49362306a36Sopenharmony_ci#define AWB_MODE_SFT 12 49462306a36Sopenharmony_ci#define AWB_MODE_MASK 0xf 49562306a36Sopenharmony_ci#define AWB_MODE_MASK_SFT (0xf << 12) 49662306a36Sopenharmony_ci#define I2S_MODE_SFT 8 49762306a36Sopenharmony_ci#define I2S_MODE_MASK 0xf 49862306a36Sopenharmony_ci#define I2S_MODE_MASK_SFT (0xf << 8) 49962306a36Sopenharmony_ci#define DL2_MODE_SFT 4 50062306a36Sopenharmony_ci#define DL2_MODE_MASK 0xf 50162306a36Sopenharmony_ci#define DL2_MODE_MASK_SFT (0xf << 4) 50262306a36Sopenharmony_ci#define DL1_MODE_SFT 0 50362306a36Sopenharmony_ci#define DL1_MODE_MASK 0xf 50462306a36Sopenharmony_ci#define DL1_MODE_MASK_SFT (0xf << 0) 50562306a36Sopenharmony_ci 50662306a36Sopenharmony_ci/* AFE_DAC_CON2 */ 50762306a36Sopenharmony_ci#define AWB2_R_MONO_SFT 21 50862306a36Sopenharmony_ci#define AWB2_R_MONO_MASK 0x1 50962306a36Sopenharmony_ci#define AWB2_R_MONO_MASK_SFT (0x1 << 21) 51062306a36Sopenharmony_ci#define AWB2_DATA_SFT 20 51162306a36Sopenharmony_ci#define AWB2_DATA_MASK 0x1 51262306a36Sopenharmony_ci#define AWB2_DATA_MASK_SFT (0x1 << 20) 51362306a36Sopenharmony_ci#define AWB2_MODE_SFT 16 51462306a36Sopenharmony_ci#define AWB2_MODE_MASK 0xf 51562306a36Sopenharmony_ci#define AWB2_MODE_MASK_SFT (0xf << 16) 51662306a36Sopenharmony_ci#define DL3_MODE_SFT 8 51762306a36Sopenharmony_ci#define DL3_MODE_MASK 0xf 51862306a36Sopenharmony_ci#define DL3_MODE_MASK_SFT (0xf << 8) 51962306a36Sopenharmony_ci#define VUL2_MODE_SFT 4 52062306a36Sopenharmony_ci#define VUL2_MODE_MASK 0xf 52162306a36Sopenharmony_ci#define VUL2_MODE_MASK_SFT (0xf << 4) 52262306a36Sopenharmony_ci#define VUL2_R_MONO_SFT 1 52362306a36Sopenharmony_ci#define VUL2_R_MONO_MASK 0x1 52462306a36Sopenharmony_ci#define VUL2_R_MONO_MASK_SFT (0x1 << 1) 52562306a36Sopenharmony_ci#define VUL2_DATA_SFT 0 52662306a36Sopenharmony_ci#define VUL2_DATA_MASK 0x1 52762306a36Sopenharmony_ci#define VUL2_DATA_MASK_SFT (0x1 << 0) 52862306a36Sopenharmony_ci 52962306a36Sopenharmony_ci/* AFE_DAC_MON */ 53062306a36Sopenharmony_ci#define AFE_ON_RETM_SFT 0 53162306a36Sopenharmony_ci#define AFE_ON_RETM_MASK 0x1 53262306a36Sopenharmony_ci#define AFE_ON_RETM_MASK_SFT (0x1 << 0) 53362306a36Sopenharmony_ci 53462306a36Sopenharmony_ci/* AFE_I2S_CON */ 53562306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_SFT 30 53662306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK 0x1 53762306a36Sopenharmony_ci#define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30) 53862306a36Sopenharmony_ci#define BCK_INV_SFT 29 53962306a36Sopenharmony_ci#define BCK_INV_MASK 0x1 54062306a36Sopenharmony_ci#define BCK_INV_MASK_SFT (0x1 << 29) 54162306a36Sopenharmony_ci#define I2SIN_PAD_SEL_SFT 28 54262306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK 0x1 54362306a36Sopenharmony_ci#define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28) 54462306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT 20 54562306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK 0x1 54662306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT (0x1 << 20) 54762306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 54862306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 54962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 55062306a36Sopenharmony_ci#define I2S1_HD_EN_SFT 12 55162306a36Sopenharmony_ci#define I2S1_HD_EN_MASK 0x1 55262306a36Sopenharmony_ci#define I2S1_HD_EN_MASK_SFT (0x1 << 12) 55362306a36Sopenharmony_ci#define INV_PAD_CTRL_SFT 7 55462306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK 0x1 55562306a36Sopenharmony_ci#define INV_PAD_CTRL_MASK_SFT (0x1 << 7) 55662306a36Sopenharmony_ci#define I2S_BYPSRC_SFT 6 55762306a36Sopenharmony_ci#define I2S_BYPSRC_MASK 0x1 55862306a36Sopenharmony_ci#define I2S_BYPSRC_MASK_SFT (0x1 << 6) 55962306a36Sopenharmony_ci#define INV_LRCK_SFT 5 56062306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 56162306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 56262306a36Sopenharmony_ci#define I2S_FMT_SFT 3 56362306a36Sopenharmony_ci#define I2S_FMT_MASK 0x1 56462306a36Sopenharmony_ci#define I2S_FMT_MASK_SFT (0x1 << 3) 56562306a36Sopenharmony_ci#define I2S_SRC_SFT 2 56662306a36Sopenharmony_ci#define I2S_SRC_MASK 0x1 56762306a36Sopenharmony_ci#define I2S_SRC_MASK_SFT (0x1 << 2) 56862306a36Sopenharmony_ci#define I2S_WLEN_SFT 1 56962306a36Sopenharmony_ci#define I2S_WLEN_MASK 0x1 57062306a36Sopenharmony_ci#define I2S_WLEN_MASK_SFT (0x1 << 1) 57162306a36Sopenharmony_ci#define I2S_EN_SFT 0 57262306a36Sopenharmony_ci#define I2S_EN_MASK 0x1 57362306a36Sopenharmony_ci#define I2S_EN_MASK_SFT (0x1 << 0) 57462306a36Sopenharmony_ci 57562306a36Sopenharmony_ci/* AFE_I2S_CON1 */ 57662306a36Sopenharmony_ci#define I2S2_LR_SWAP_SFT 31 57762306a36Sopenharmony_ci#define I2S2_LR_SWAP_MASK 0x1 57862306a36Sopenharmony_ci#define I2S2_LR_SWAP_MASK_SFT (0x1 << 31) 57962306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_SFT 18 58062306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_MASK 0x1 58162306a36Sopenharmony_ci#define I2S2_SEL_O19_O20_MASK_SFT (0x1 << 18) 58262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 58362306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 58462306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 58562306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_SFT 16 58662306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_MASK 0x1 58762306a36Sopenharmony_ci#define I2S2_SEL_O03_O04_MASK_SFT (0x1 << 16) 58862306a36Sopenharmony_ci#define I2S2_32BIT_EN_SFT 13 58962306a36Sopenharmony_ci#define I2S2_32BIT_EN_MASK 0x1 59062306a36Sopenharmony_ci#define I2S2_32BIT_EN_MASK_SFT (0x1 << 13) 59162306a36Sopenharmony_ci#define I2S2_HD_EN_SFT 12 59262306a36Sopenharmony_ci#define I2S2_HD_EN_MASK 0x1 59362306a36Sopenharmony_ci#define I2S2_HD_EN_MASK_SFT (0x1 << 12) 59462306a36Sopenharmony_ci#define I2S2_OUT_MODE_SFT 8 59562306a36Sopenharmony_ci#define I2S2_OUT_MODE_MASK 0xf 59662306a36Sopenharmony_ci#define I2S2_OUT_MODE_MASK_SFT (0xf << 8) 59762306a36Sopenharmony_ci#define INV_LRCK_SFT 5 59862306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 59962306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 60062306a36Sopenharmony_ci#define I2S2_FMT_SFT 3 60162306a36Sopenharmony_ci#define I2S2_FMT_MASK 0x1 60262306a36Sopenharmony_ci#define I2S2_FMT_MASK_SFT (0x1 << 3) 60362306a36Sopenharmony_ci#define I2S2_WLEN_SFT 1 60462306a36Sopenharmony_ci#define I2S2_WLEN_MASK 0x1 60562306a36Sopenharmony_ci#define I2S2_WLEN_MASK_SFT (0x1 << 1) 60662306a36Sopenharmony_ci#define I2S2_EN_SFT 0 60762306a36Sopenharmony_ci#define I2S2_EN_MASK 0x1 60862306a36Sopenharmony_ci#define I2S2_EN_MASK_SFT (0x1 << 0) 60962306a36Sopenharmony_ci 61062306a36Sopenharmony_ci/* AFE_I2S_CON2 */ 61162306a36Sopenharmony_ci#define I2S3_LR_SWAP_SFT 31 61262306a36Sopenharmony_ci#define I2S3_LR_SWAP_MASK 0x1 61362306a36Sopenharmony_ci#define I2S3_LR_SWAP_MASK_SFT (0x1 << 31) 61462306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_SFT 24 61562306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_MASK 0x1f 61662306a36Sopenharmony_ci#define I2S3_UPDATE_WORD_MASK_SFT (0x1f << 24) 61762306a36Sopenharmony_ci#define I2S3_BCK_INV_SFT 23 61862306a36Sopenharmony_ci#define I2S3_BCK_INV_MASK 0x1 61962306a36Sopenharmony_ci#define I2S3_BCK_INV_MASK_SFT (0x1 << 23) 62062306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_SFT 22 62162306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_MASK 0x1 62262306a36Sopenharmony_ci#define I2S3_FPGA_BIT_TEST_MASK_SFT (0x1 << 22) 62362306a36Sopenharmony_ci#define I2S3_FPGA_BIT_SFT 21 62462306a36Sopenharmony_ci#define I2S3_FPGA_BIT_MASK 0x1 62562306a36Sopenharmony_ci#define I2S3_FPGA_BIT_MASK_SFT (0x1 << 21) 62662306a36Sopenharmony_ci#define I2S3_LOOPBACK_SFT 20 62762306a36Sopenharmony_ci#define I2S3_LOOPBACK_MASK 0x1 62862306a36Sopenharmony_ci#define I2S3_LOOPBACK_MASK_SFT (0x1 << 20) 62962306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 63062306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 63162306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 63262306a36Sopenharmony_ci#define I2S3_HD_EN_SFT 12 63362306a36Sopenharmony_ci#define I2S3_HD_EN_MASK 0x1 63462306a36Sopenharmony_ci#define I2S3_HD_EN_MASK_SFT (0x1 << 12) 63562306a36Sopenharmony_ci#define I2S3_OUT_MODE_SFT 8 63662306a36Sopenharmony_ci#define I2S3_OUT_MODE_MASK 0xf 63762306a36Sopenharmony_ci#define I2S3_OUT_MODE_MASK_SFT (0xf << 8) 63862306a36Sopenharmony_ci#define I2S3_FMT_SFT 3 63962306a36Sopenharmony_ci#define I2S3_FMT_MASK 0x1 64062306a36Sopenharmony_ci#define I2S3_FMT_MASK_SFT (0x1 << 3) 64162306a36Sopenharmony_ci#define I2S3_WLEN_SFT 1 64262306a36Sopenharmony_ci#define I2S3_WLEN_MASK 0x1 64362306a36Sopenharmony_ci#define I2S3_WLEN_MASK_SFT (0x1 << 1) 64462306a36Sopenharmony_ci#define I2S3_EN_SFT 0 64562306a36Sopenharmony_ci#define I2S3_EN_MASK 0x1 64662306a36Sopenharmony_ci#define I2S3_EN_MASK_SFT (0x1 << 0) 64762306a36Sopenharmony_ci 64862306a36Sopenharmony_ci/* AFE_I2S_CON3 */ 64962306a36Sopenharmony_ci#define I2S4_LR_SWAP_SFT 31 65062306a36Sopenharmony_ci#define I2S4_LR_SWAP_MASK 0x1 65162306a36Sopenharmony_ci#define I2S4_LR_SWAP_MASK_SFT (0x1 << 31) 65262306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 65362306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 65462306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 65562306a36Sopenharmony_ci#define I2S4_32BIT_EN_SFT 13 65662306a36Sopenharmony_ci#define I2S4_32BIT_EN_MASK 0x1 65762306a36Sopenharmony_ci#define I2S4_32BIT_EN_MASK_SFT (0x1 << 13) 65862306a36Sopenharmony_ci#define I2S4_HD_EN_SFT 12 65962306a36Sopenharmony_ci#define I2S4_HD_EN_MASK 0x1 66062306a36Sopenharmony_ci#define I2S4_HD_EN_MASK_SFT (0x1 << 12) 66162306a36Sopenharmony_ci#define I2S4_OUT_MODE_SFT 8 66262306a36Sopenharmony_ci#define I2S4_OUT_MODE_MASK 0xf 66362306a36Sopenharmony_ci#define I2S4_OUT_MODE_MASK_SFT (0xf << 8) 66462306a36Sopenharmony_ci#define INV_LRCK_SFT 5 66562306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 66662306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 66762306a36Sopenharmony_ci#define I2S4_FMT_SFT 3 66862306a36Sopenharmony_ci#define I2S4_FMT_MASK 0x1 66962306a36Sopenharmony_ci#define I2S4_FMT_MASK_SFT (0x1 << 3) 67062306a36Sopenharmony_ci#define I2S4_WLEN_SFT 1 67162306a36Sopenharmony_ci#define I2S4_WLEN_MASK 0x1 67262306a36Sopenharmony_ci#define I2S4_WLEN_MASK_SFT (0x1 << 1) 67362306a36Sopenharmony_ci#define I2S4_EN_SFT 0 67462306a36Sopenharmony_ci#define I2S4_EN_MASK 0x1 67562306a36Sopenharmony_ci#define I2S4_EN_MASK_SFT (0x1 << 0) 67662306a36Sopenharmony_ci 67762306a36Sopenharmony_ci/* AFE_I2S_CON4 */ 67862306a36Sopenharmony_ci#define I2S5_LR_SWAP_SFT 31 67962306a36Sopenharmony_ci#define I2S5_LR_SWAP_MASK 0x1 68062306a36Sopenharmony_ci#define I2S5_LR_SWAP_MASK_SFT (0x1 << 31) 68162306a36Sopenharmony_ci#define I2S_LOOPBACK_SFT 20 68262306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK 0x1 68362306a36Sopenharmony_ci#define I2S_LOOPBACK_MASK_SFT (0x1 << 20) 68462306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17 68562306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1 68662306a36Sopenharmony_ci#define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17) 68762306a36Sopenharmony_ci#define I2S5_32BIT_EN_SFT 13 68862306a36Sopenharmony_ci#define I2S5_32BIT_EN_MASK 0x1 68962306a36Sopenharmony_ci#define I2S5_32BIT_EN_MASK_SFT (0x1 << 13) 69062306a36Sopenharmony_ci#define I2S5_HD_EN_SFT 12 69162306a36Sopenharmony_ci#define I2S5_HD_EN_MASK 0x1 69262306a36Sopenharmony_ci#define I2S5_HD_EN_MASK_SFT (0x1 << 12) 69362306a36Sopenharmony_ci#define I2S5_OUT_MODE_SFT 8 69462306a36Sopenharmony_ci#define I2S5_OUT_MODE_MASK 0xf 69562306a36Sopenharmony_ci#define I2S5_OUT_MODE_MASK_SFT (0xf << 8) 69662306a36Sopenharmony_ci#define INV_LRCK_SFT 5 69762306a36Sopenharmony_ci#define INV_LRCK_MASK 0x1 69862306a36Sopenharmony_ci#define INV_LRCK_MASK_SFT (0x1 << 5) 69962306a36Sopenharmony_ci#define I2S5_FMT_SFT 3 70062306a36Sopenharmony_ci#define I2S5_FMT_MASK 0x1 70162306a36Sopenharmony_ci#define I2S5_FMT_MASK_SFT (0x1 << 3) 70262306a36Sopenharmony_ci#define I2S5_WLEN_SFT 1 70362306a36Sopenharmony_ci#define I2S5_WLEN_MASK 0x1 70462306a36Sopenharmony_ci#define I2S5_WLEN_MASK_SFT (0x1 << 1) 70562306a36Sopenharmony_ci#define I2S5_EN_SFT 0 70662306a36Sopenharmony_ci#define I2S5_EN_MASK 0x1 70762306a36Sopenharmony_ci#define I2S5_EN_MASK_SFT (0x1 << 0) 70862306a36Sopenharmony_ci 70962306a36Sopenharmony_ci/* AFE_GAIN1_CON0 */ 71062306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_SFT 8 71162306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_MASK 0xff 71262306a36Sopenharmony_ci#define GAIN1_SAMPLE_PER_STEP_MASK_SFT (0xff << 8) 71362306a36Sopenharmony_ci#define GAIN1_MODE_SFT 4 71462306a36Sopenharmony_ci#define GAIN1_MODE_MASK 0xf 71562306a36Sopenharmony_ci#define GAIN1_MODE_MASK_SFT (0xf << 4) 71662306a36Sopenharmony_ci#define GAIN1_ON_SFT 0 71762306a36Sopenharmony_ci#define GAIN1_ON_MASK 0x1 71862306a36Sopenharmony_ci#define GAIN1_ON_MASK_SFT (0x1 << 0) 71962306a36Sopenharmony_ci 72062306a36Sopenharmony_ci/* AFE_GAIN1_CON1 */ 72162306a36Sopenharmony_ci#define GAIN1_TARGET_SFT 0 72262306a36Sopenharmony_ci#define GAIN1_TARGET_MASK 0xfffff 72362306a36Sopenharmony_ci#define GAIN1_TARGET_MASK_SFT (0xfffff << 0) 72462306a36Sopenharmony_ci 72562306a36Sopenharmony_ci/* AFE_GAIN2_CON0 */ 72662306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_SFT 8 72762306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_MASK 0xff 72862306a36Sopenharmony_ci#define GAIN2_SAMPLE_PER_STEP_MASK_SFT (0xff << 8) 72962306a36Sopenharmony_ci#define GAIN2_MODE_SFT 4 73062306a36Sopenharmony_ci#define GAIN2_MODE_MASK 0xf 73162306a36Sopenharmony_ci#define GAIN2_MODE_MASK_SFT (0xf << 4) 73262306a36Sopenharmony_ci#define GAIN2_ON_SFT 0 73362306a36Sopenharmony_ci#define GAIN2_ON_MASK 0x1 73462306a36Sopenharmony_ci#define GAIN2_ON_MASK_SFT (0x1 << 0) 73562306a36Sopenharmony_ci 73662306a36Sopenharmony_ci/* AFE_GAIN2_CON1 */ 73762306a36Sopenharmony_ci#define GAIN2_TARGET_SFT 0 73862306a36Sopenharmony_ci#define GAIN2_TARGET_MASK 0xfffff 73962306a36Sopenharmony_ci#define GAIN2_TARGET_MASK_SFT (0xfffff << 0) 74062306a36Sopenharmony_ci 74162306a36Sopenharmony_ci/* AFE_GAIN1_CUR */ 74262306a36Sopenharmony_ci#define AFE_GAIN1_CUR_SFT 0 74362306a36Sopenharmony_ci#define AFE_GAIN1_CUR_MASK 0xfffff 74462306a36Sopenharmony_ci#define AFE_GAIN1_CUR_MASK_SFT (0xfffff << 0) 74562306a36Sopenharmony_ci 74662306a36Sopenharmony_ci/* AFE_GAIN2_CUR */ 74762306a36Sopenharmony_ci#define AFE_GAIN2_CUR_SFT 0 74862306a36Sopenharmony_ci#define AFE_GAIN2_CUR_MASK 0xfffff 74962306a36Sopenharmony_ci#define AFE_GAIN2_CUR_MASK_SFT (0xfffff << 0) 75062306a36Sopenharmony_ci 75162306a36Sopenharmony_ci/* AFE_MEMIF_HD_MODE */ 75262306a36Sopenharmony_ci#define AWB2_HD_SFT 28 75362306a36Sopenharmony_ci#define AWB2_HD_MASK 0x3 75462306a36Sopenharmony_ci#define AWB2_HD_MASK_SFT (0x3 << 28) 75562306a36Sopenharmony_ci#define HDMI_HD_SFT 20 75662306a36Sopenharmony_ci#define HDMI_HD_MASK 0x3 75762306a36Sopenharmony_ci#define HDMI_HD_MASK_SFT (0x3 << 20) 75862306a36Sopenharmony_ci#define MOD_DAI_HD_SFT 18 75962306a36Sopenharmony_ci#define MOD_DAI_HD_MASK 0x3 76062306a36Sopenharmony_ci#define MOD_DAI_HD_MASK_SFT (0x3 << 18) 76162306a36Sopenharmony_ci#define DAI_HD_SFT 16 76262306a36Sopenharmony_ci#define DAI_HD_MASK 0x3 76362306a36Sopenharmony_ci#define DAI_HD_MASK_SFT (0x3 << 16) 76462306a36Sopenharmony_ci#define VUL2_HD_SFT 14 76562306a36Sopenharmony_ci#define VUL2_HD_MASK 0x3 76662306a36Sopenharmony_ci#define VUL2_HD_MASK_SFT (0x3 << 14) 76762306a36Sopenharmony_ci#define VUL12_HD_SFT 12 76862306a36Sopenharmony_ci#define VUL12_HD_MASK 0x3 76962306a36Sopenharmony_ci#define VUL12_HD_MASK_SFT (0x3 << 12) 77062306a36Sopenharmony_ci#define VUL_HD_SFT 10 77162306a36Sopenharmony_ci#define VUL_HD_MASK 0x3 77262306a36Sopenharmony_ci#define VUL_HD_MASK_SFT (0x3 << 10) 77362306a36Sopenharmony_ci#define AWB_HD_SFT 8 77462306a36Sopenharmony_ci#define AWB_HD_MASK 0x3 77562306a36Sopenharmony_ci#define AWB_HD_MASK_SFT (0x3 << 8) 77662306a36Sopenharmony_ci#define DL3_HD_SFT 6 77762306a36Sopenharmony_ci#define DL3_HD_MASK 0x3 77862306a36Sopenharmony_ci#define DL3_HD_MASK_SFT (0x3 << 6) 77962306a36Sopenharmony_ci#define DL2_HD_SFT 4 78062306a36Sopenharmony_ci#define DL2_HD_MASK 0x3 78162306a36Sopenharmony_ci#define DL2_HD_MASK_SFT (0x3 << 4) 78262306a36Sopenharmony_ci#define DL1_HD_SFT 0 78362306a36Sopenharmony_ci#define DL1_HD_MASK 0x3 78462306a36Sopenharmony_ci#define DL1_HD_MASK_SFT (0x3 << 0) 78562306a36Sopenharmony_ci 78662306a36Sopenharmony_ci/* AFE_MEMIF_HDALIGN */ 78762306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_SFT 30 78862306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK 0x1 78962306a36Sopenharmony_ci#define AWB2_NORMAL_MODE_MASK_SFT (0x1 << 30) 79062306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_SFT 26 79162306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK 0x1 79262306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK_SFT (0x1 << 26) 79362306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_SFT 25 79462306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK 0x1 79562306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK_SFT (0x1 << 25) 79662306a36Sopenharmony_ci#define DAI_NORMAL_MODE_SFT 24 79762306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK 0x1 79862306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK_SFT (0x1 << 24) 79962306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_SFT 23 80062306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK 0x1 80162306a36Sopenharmony_ci#define VUL2_NORMAL_MODE_MASK_SFT (0x1 << 23) 80262306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_SFT 22 80362306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK 0x1 80462306a36Sopenharmony_ci#define VUL12_NORMAL_MODE_MASK_SFT (0x1 << 22) 80562306a36Sopenharmony_ci#define VUL_NORMAL_MODE_SFT 21 80662306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK 0x1 80762306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK_SFT (0x1 << 21) 80862306a36Sopenharmony_ci#define AWB_NORMAL_MODE_SFT 20 80962306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK 0x1 81062306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK_SFT (0x1 << 20) 81162306a36Sopenharmony_ci#define DL3_NORMAL_MODE_SFT 19 81262306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK 0x1 81362306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK_SFT (0x1 << 19) 81462306a36Sopenharmony_ci#define DL2_NORMAL_MODE_SFT 18 81562306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK 0x1 81662306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK_SFT (0x1 << 18) 81762306a36Sopenharmony_ci#define DL1_NORMAL_MODE_SFT 16 81862306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK 0x1 81962306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK_SFT (0x1 << 16) 82062306a36Sopenharmony_ci#define RESERVED1_SFT 15 82162306a36Sopenharmony_ci#define RESERVED1_MASK 0x1 82262306a36Sopenharmony_ci#define RESERVED1_MASK_SFT (0x1 << 15) 82362306a36Sopenharmony_ci#define AWB2_ALIGN_SFT 14 82462306a36Sopenharmony_ci#define AWB2_ALIGN_MASK 0x1 82562306a36Sopenharmony_ci#define AWB2_ALIGN_MASK_SFT (0x1 << 14) 82662306a36Sopenharmony_ci#define HDMI_HD_ALIGN_SFT 10 82762306a36Sopenharmony_ci#define HDMI_HD_ALIGN_MASK 0x1 82862306a36Sopenharmony_ci#define HDMI_HD_ALIGN_MASK_SFT (0x1 << 10) 82962306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_SFT 9 83062306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK 0x1 83162306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK_SFT (0x1 << 9) 83262306a36Sopenharmony_ci#define VUL2_HD_ALIGN_SFT 7 83362306a36Sopenharmony_ci#define VUL2_HD_ALIGN_MASK 0x1 83462306a36Sopenharmony_ci#define VUL2_HD_ALIGN_MASK_SFT (0x1 << 7) 83562306a36Sopenharmony_ci#define VUL12_HD_ALIGN_SFT 6 83662306a36Sopenharmony_ci#define VUL12_HD_ALIGN_MASK 0x1 83762306a36Sopenharmony_ci#define VUL12_HD_ALIGN_MASK_SFT (0x1 << 6) 83862306a36Sopenharmony_ci#define VUL_HD_ALIGN_SFT 5 83962306a36Sopenharmony_ci#define VUL_HD_ALIGN_MASK 0x1 84062306a36Sopenharmony_ci#define VUL_HD_ALIGN_MASK_SFT (0x1 << 5) 84162306a36Sopenharmony_ci#define AWB_HD_ALIGN_SFT 4 84262306a36Sopenharmony_ci#define AWB_HD_ALIGN_MASK 0x1 84362306a36Sopenharmony_ci#define AWB_HD_ALIGN_MASK_SFT (0x1 << 4) 84462306a36Sopenharmony_ci#define DL3_HD_ALIGN_SFT 3 84562306a36Sopenharmony_ci#define DL3_HD_ALIGN_MASK 0x1 84662306a36Sopenharmony_ci#define DL3_HD_ALIGN_MASK_SFT (0x1 << 3) 84762306a36Sopenharmony_ci#define DL2_HD_ALIGN_SFT 2 84862306a36Sopenharmony_ci#define DL2_HD_ALIGN_MASK 0x1 84962306a36Sopenharmony_ci#define DL2_HD_ALIGN_MASK_SFT (0x1 << 2) 85062306a36Sopenharmony_ci#define DL1_HD_ALIGN_SFT 0 85162306a36Sopenharmony_ci#define DL1_HD_ALIGN_MASK 0x1 85262306a36Sopenharmony_ci#define DL1_HD_ALIGN_MASK_SFT (0x1 << 0) 85362306a36Sopenharmony_ci 85462306a36Sopenharmony_ci/* PCM_INTF_CON1 */ 85562306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_SFT 31 85662306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK 0x1 85762306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK_SFT (0x1 << 31) 85862306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_SFT 30 85962306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK 0x1 86062306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK_SFT (0x1 << 30) 86162306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_SFT 29 86262306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK 0x1 86362306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 29) 86462306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_SFT 28 86562306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK 0x1 86662306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK_SFT (0x1 << 28) 86762306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_SFT 27 86862306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK 0x1 86962306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 27) 87062306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_SFT 26 87162306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK 0x1 87262306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 26) 87362306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_SFT 25 87462306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK 0x1 87562306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK_SFT (0x1 << 25) 87662306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_SFT 24 87762306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK 0x1 87862306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK_SFT (0x1 << 24) 87962306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_SFT 23 88062306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK 0x1 88162306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK_SFT (0x1 << 23) 88262306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_SFT 22 88362306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK 0x1 88462306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK_SFT (0x1 << 22) 88562306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_SFT 21 88662306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK 0x1 88762306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK_SFT (0x1 << 21) 88862306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_SFT 20 88962306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK 0x1 89062306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK_SFT (0x1 << 20) 89162306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_SFT 19 89262306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK 0x1 89362306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK_SFT (0x1 << 19) 89462306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_SFT 18 89562306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK 0x1 89662306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK_SFT (0x1 << 18) 89762306a36Sopenharmony_ci#define PCM_EXT_MODEM_SFT 17 89862306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK 0x1 89962306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK_SFT (0x1 << 17) 90062306a36Sopenharmony_ci#define PCM_24BIT_SFT 16 90162306a36Sopenharmony_ci#define PCM_24BIT_MASK 0x1 90262306a36Sopenharmony_ci#define PCM_24BIT_MASK_SFT (0x1 << 16) 90362306a36Sopenharmony_ci#define PCM_WLEN_SFT 14 90462306a36Sopenharmony_ci#define PCM_WLEN_MASK 0x3 90562306a36Sopenharmony_ci#define PCM_WLEN_MASK_SFT (0x3 << 14) 90662306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_SFT 9 90762306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK 0x1f 90862306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK_SFT (0x1f << 9) 90962306a36Sopenharmony_ci#define PCM_SYNC_TYPE_SFT 8 91062306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK 0x1 91162306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK_SFT (0x1 << 8) 91262306a36Sopenharmony_ci#define PCM_BT_MODE_SFT 7 91362306a36Sopenharmony_ci#define PCM_BT_MODE_MASK 0x1 91462306a36Sopenharmony_ci#define PCM_BT_MODE_MASK_SFT (0x1 << 7) 91562306a36Sopenharmony_ci#define PCM_BYP_ASRC_SFT 6 91662306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK 0x1 91762306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK_SFT (0x1 << 6) 91862306a36Sopenharmony_ci#define PCM_SLAVE_SFT 5 91962306a36Sopenharmony_ci#define PCM_SLAVE_MASK 0x1 92062306a36Sopenharmony_ci#define PCM_SLAVE_MASK_SFT (0x1 << 5) 92162306a36Sopenharmony_ci#define PCM_MODE_SFT 3 92262306a36Sopenharmony_ci#define PCM_MODE_MASK 0x3 92362306a36Sopenharmony_ci#define PCM_MODE_MASK_SFT (0x3 << 3) 92462306a36Sopenharmony_ci#define PCM_FMT_SFT 1 92562306a36Sopenharmony_ci#define PCM_FMT_MASK 0x3 92662306a36Sopenharmony_ci#define PCM_FMT_MASK_SFT (0x3 << 1) 92762306a36Sopenharmony_ci#define PCM_EN_SFT 0 92862306a36Sopenharmony_ci#define PCM_EN_MASK 0x1 92962306a36Sopenharmony_ci#define PCM_EN_MASK_SFT (0x1 << 0) 93062306a36Sopenharmony_ci 93162306a36Sopenharmony_ci/* PCM_INTF_CON2 */ 93262306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_SFT 31 93362306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK 0x1 93462306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK_SFT (0x1 << 31) 93562306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_SFT 30 93662306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK 0x1 93762306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK_SFT (0x1 << 30) 93862306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_SFT 29 93962306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK 0x1 94062306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK_SFT (0x1 << 29) 94162306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_SFT 28 94262306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK 0x1 94362306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK_SFT (0x1 << 28) 94462306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_SFT 27 94562306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK 0x1 94662306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK_SFT (0x1 << 27) 94762306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_SFT 26 94862306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK 0x1 94962306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK_SFT (0x1 << 26) 95062306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_SFT 17 95162306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_MASK 0x1 95262306a36Sopenharmony_ci#define TX3_RCH_DBG_MODE_MASK_SFT (0x1 << 17) 95362306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_SFT 16 95462306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK 0x1 95562306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK_SFT (0x1 << 16) 95662306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_SFT 14 95762306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK 0x3 95862306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 14) 95962306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_SFT 12 96062306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK 0x3 96162306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 12) 96262306a36Sopenharmony_ci#define TX_FIX_VALUE_SFT 0 96362306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK 0xff 96462306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK_SFT (0xff << 0) 96562306a36Sopenharmony_ci 96662306a36Sopenharmony_ci/* PCM2_INTF_CON */ 96762306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_SFT 24 96862306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK 0xff 96962306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK_SFT (0xff << 24) 97062306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_SFT 23 97162306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK 0x1 97262306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK_SFT (0x1 << 23) 97362306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_SFT 22 97462306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK 0x1 97562306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK_SFT (0x1 << 22) 97662306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_SFT 21 97762306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK 0x1 97862306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 21) 97962306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_SFT 20 98062306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK 0x1 98162306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK_SFT (0x1 << 20) 98262306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_SFT 19 98362306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK 0x1 98462306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 19) 98562306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_SFT 18 98662306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK 0x1 98762306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 18) 98862306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_SFT 17 98962306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK 0x1 99062306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK_SFT (0x1 << 17) 99162306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_SFT 16 99262306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK 0x1 99362306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK_SFT (0x1 << 16) 99462306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_SFT 15 99562306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK 0x1 99662306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK_SFT (0x1 << 15) 99762306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_SFT 14 99862306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK 0x1 99962306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK_SFT (0x1 << 14) 100062306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_SFT 13 100162306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK 0x1 100262306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK_SFT (0x1 << 13) 100362306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_SFT 12 100462306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK 0x1 100562306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK_SFT (0x1 << 12) 100662306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_SFT 10 100762306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK 0x3 100862306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK_SFT (0x3 << 10) 100962306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_SFT 8 101062306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK 0x1 101162306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK_SFT (0x1 << 8) 101262306a36Sopenharmony_ci#define PCM2_BT_MODE_SFT 7 101362306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK 0x1 101462306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK_SFT (0x1 << 7) 101562306a36Sopenharmony_ci#define PCM2_AFIFO_SFT 6 101662306a36Sopenharmony_ci#define PCM2_AFIFO_MASK 0x1 101762306a36Sopenharmony_ci#define PCM2_AFIFO_MASK_SFT (0x1 << 6) 101862306a36Sopenharmony_ci#define PCM2_WLEN_SFT 5 101962306a36Sopenharmony_ci#define PCM2_WLEN_MASK 0x1 102062306a36Sopenharmony_ci#define PCM2_WLEN_MASK_SFT (0x1 << 5) 102162306a36Sopenharmony_ci#define PCM2_MODE_SFT 3 102262306a36Sopenharmony_ci#define PCM2_MODE_MASK 0x3 102362306a36Sopenharmony_ci#define PCM2_MODE_MASK_SFT (0x3 << 3) 102462306a36Sopenharmony_ci#define PCM2_FMT_SFT 1 102562306a36Sopenharmony_ci#define PCM2_FMT_MASK 0x3 102662306a36Sopenharmony_ci#define PCM2_FMT_MASK_SFT (0x3 << 1) 102762306a36Sopenharmony_ci#define PCM2_EN_SFT 0 102862306a36Sopenharmony_ci#define PCM2_EN_MASK 0x1 102962306a36Sopenharmony_ci#define PCM2_EN_MASK_SFT (0x1 << 0) 103062306a36Sopenharmony_ci 103162306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_CFG0 */ 103262306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_SFT 31 103362306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_MASK 0x1 103462306a36Sopenharmony_ci#define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT (0x1 << 31) 103562306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_SFT 17 103662306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_MASK 0x1 103762306a36Sopenharmony_ci#define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT (0x1 << 17) 103862306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_SFT 16 103962306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_MASK 0x1 104062306a36Sopenharmony_ci#define MTKAIF_RXIF_PROTOCOL2_MASK_SFT (0x1 << 16) 104162306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_SFT 5 104262306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_MASK 0x1 104362306a36Sopenharmony_ci#define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT (0x1 << 5) 104462306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_SFT 4 104562306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_MASK 0x1 104662306a36Sopenharmony_ci#define MTKAIF_TXIF_PROTOCOL2_MASK_SFT (0x1 << 4) 104762306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_SFT 2 104862306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_MASK 0x1 104962306a36Sopenharmony_ci#define MTKAIF_TXIF_8TO5_MASK_SFT (0x1 << 2) 105062306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_SFT 1 105162306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_MASK 0x1 105262306a36Sopenharmony_ci#define MTKAIF_RXIF_8TO5_MASK_SFT (0x1 << 1) 105362306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_SFT 0 105462306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_MASK 0x1 105562306a36Sopenharmony_ci#define MTKAIF_IF_LOOPBACK1_MASK_SFT (0x1 << 0) 105662306a36Sopenharmony_ci 105762306a36Sopenharmony_ci/* AFE_ADDA_MTKAIF_RX_CFG2 */ 105862306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT 16 105962306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK 0x1 106062306a36Sopenharmony_ci#define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT (0x1 << 16) 106162306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_SFT 12 106262306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_MASK 0xf 106362306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT (0xf << 12) 106462306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_SFT 8 106562306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK 0x1 106662306a36Sopenharmony_ci#define MTKAIF_RXIF_DELAY_DATA_MASK_SFT (0x1 << 8) 106762306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT 4 106862306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK 0x7 106962306a36Sopenharmony_ci#define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT (0x7 << 4) 107062306a36Sopenharmony_ci 107162306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON0 */ 107262306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_SFT 28 107362306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK 0xf 107462306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK_SFT (0xf << 28) 107562306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_SFT 27 107662306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK 0x1 107762306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT (0x1 << 27) 107862306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_SFT 26 107962306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK 0x1 108062306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT (0x1 << 26) 108162306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_SFT 24 108262306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK 0x3 108362306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK_SFT (0x3 << 24) 108462306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_SFT 16 108562306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK 0x3 108662306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK_SFT (0x3 << 16) 108762306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_SFT 15 108862306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK 0x1 108962306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 15) 109062306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_SFT 14 109162306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK 0x1 109262306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT (0x1 << 14) 109362306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT 13 109462306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK 0x1 109562306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT (0x1 << 13) 109662306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT 12 109762306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK 0x1 109862306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT (0x1 << 12) 109962306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT 11 110062306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK 0x1 110162306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT (0x1 << 11) 110262306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_SFT 9 110362306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK 0x3 110462306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK_SFT (0x3 << 9) 110562306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_SFT 6 110662306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK 0x7 110762306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK_SFT (0x7 << 6) 110862306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_SFT 5 110962306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK 0x1 111062306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT (0x1 << 5) 111162306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT 4 111262306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK 0x1 111362306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT (0x1 << 4) 111462306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT 3 111562306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK 0x1 111662306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT (0x1 << 3) 111762306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_SFT 2 111862306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK 0x1 111962306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK_SFT (0x1 << 2) 112062306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_SFT 1 112162306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK 0x1 112262306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT (0x1 << 1) 112362306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_SFT 0 112462306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK 0x1 112562306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT (0x1 << 0) 112662306a36Sopenharmony_ci 112762306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON1 */ 112862306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_SFT 16 112962306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK 0xffff 113062306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK_SFT (0xffff << 16) 113162306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_SFT 0 113262306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK 0x1 113362306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK_SFT (0x1 << 0) 113462306a36Sopenharmony_ci 113562306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON0 */ 113662306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_SFT 31 113762306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_MASK 0x1 113862306a36Sopenharmony_ci#define ULCF_CFG_EN_CTL_MASK_SFT (0x1 << 31) 113962306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_SFT 22 114062306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK 0x1 114162306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK_SFT (0x1 << 22) 114262306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_SFT 21 114362306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK 0x1 114462306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK_SFT (0x1 << 21) 114562306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_SFT 17 114662306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK 0x7 114762306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT (0x7 << 17) 114862306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_SFT 14 114962306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK 0x3 115062306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK_SFT (0x3 << 14) 115162306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_SFT 12 115262306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK 0x1 115362306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 12) 115462306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_SFT 10 115562306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK 0x1 115662306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK_SFT (0x1 << 10) 115762306a36Sopenharmony_ci#define UL_IIRMODE_CTL_SFT 7 115862306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK 0x7 115962306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK_SFT (0x7 << 7) 116062306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_SFT 5 116162306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK 0x1 116262306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT (0x1 << 5) 116362306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_SFT 2 116462306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK 0x1 116562306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK_SFT (0x1 << 2) 116662306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_SFT 1 116762306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK 0x1 116862306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK_SFT (0x1 << 1) 116962306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_SFT 0 117062306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK 0x1 117162306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK_SFT (0x1 << 0) 117262306a36Sopenharmony_ci 117362306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON1 */ 117462306a36Sopenharmony_ci#define C_DAC_EN_CTL_SFT 27 117562306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK 0x1 117662306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK_SFT (0x1 << 27) 117762306a36Sopenharmony_ci#define C_MUTE_SW_CTL_SFT 26 117862306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK 0x1 117962306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK_SFT (0x1 << 26) 118062306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_SFT 25 118162306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK 0x1 118262306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK_SFT (0x1 << 25) 118362306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_SFT 21 118462306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK 0x7 118562306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK_SFT (0x7 << 21) 118662306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_SFT 16 118762306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK 0x1f 118862306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK_SFT (0x1f << 16) 118962306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_SFT 12 119062306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK 0xf 119162306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK_SFT (0xf << 12) 119262306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_SFT 9 119362306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK 0x7 119462306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK_SFT (0x7 << 9) 119562306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_SFT 4 119662306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK 0x1f 119762306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK_SFT (0x1f << 4) 119862306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_SFT 0 119962306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK 0xf 120062306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK_SFT (0xf << 0) 120162306a36Sopenharmony_ci 120262306a36Sopenharmony_ci/* AFE_ADDA_TOP_CON0 */ 120362306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_SFT 12 120462306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK 0xf 120562306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK_SFT (0xf << 12) 120662306a36Sopenharmony_ci#define C_EXT_ADC_CTL_SFT 0 120762306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK 0x1 120862306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK_SFT (0x1 << 0) 120962306a36Sopenharmony_ci 121062306a36Sopenharmony_ci/* AFE_ADDA_UL_DL_CON0 */ 121162306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_SFT 15 121262306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_MASK 0x1 121362306a36Sopenharmony_ci#define AFE_ADDA6_UL_LR_SWAP_MASK_SFT (0x1 << 15) 121462306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_SFT 14 121562306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_MASK 0x1 121662306a36Sopenharmony_ci#define AFE_ADDA6_CKDIV_RST_MASK_SFT (0x1 << 14) 121762306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_SFT 13 121862306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_MASK 0x1 121962306a36Sopenharmony_ci#define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT (0x1 << 13) 122062306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_TESTIN_SFT 5 122162306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_TESTIN_MASK 0x3 122262306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 5) 122362306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 4 122462306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1 122562306a36Sopenharmony_ci#define UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 4) 122662306a36Sopenharmony_ci#define ADDA_AFE_ON_SFT 0 122762306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK 0x1 122862306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK_SFT (0x1 << 0) 122962306a36Sopenharmony_ci 123062306a36Sopenharmony_ci/* AFE_SIDETONE_CON0 */ 123162306a36Sopenharmony_ci#define R_RDY_SFT 30 123262306a36Sopenharmony_ci#define R_RDY_MASK 0x1 123362306a36Sopenharmony_ci#define R_RDY_MASK_SFT (0x1 << 30) 123462306a36Sopenharmony_ci#define W_RDY_SFT 29 123562306a36Sopenharmony_ci#define W_RDY_MASK 0x1 123662306a36Sopenharmony_ci#define W_RDY_MASK_SFT (0x1 << 29) 123762306a36Sopenharmony_ci#define R_W_EN_SFT 25 123862306a36Sopenharmony_ci#define R_W_EN_MASK 0x1 123962306a36Sopenharmony_ci#define R_W_EN_MASK_SFT (0x1 << 25) 124062306a36Sopenharmony_ci#define R_W_SEL_SFT 24 124162306a36Sopenharmony_ci#define R_W_SEL_MASK 0x1 124262306a36Sopenharmony_ci#define R_W_SEL_MASK_SFT (0x1 << 24) 124362306a36Sopenharmony_ci#define SEL_CH2_SFT 23 124462306a36Sopenharmony_ci#define SEL_CH2_MASK 0x1 124562306a36Sopenharmony_ci#define SEL_CH2_MASK_SFT (0x1 << 23) 124662306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_SFT 16 124762306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_MASK 0x1f 124862306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT (0x1f << 16) 124962306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_SFT 0 125062306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_MASK 0xffff 125162306a36Sopenharmony_ci#define SIDE_TONE_COEFFICIENT_MASK_SFT (0xffff << 0) 125262306a36Sopenharmony_ci 125362306a36Sopenharmony_ci/* AFE_SIDETONE_COEFF */ 125462306a36Sopenharmony_ci#define SIDE_TONE_COEFF_SFT 0 125562306a36Sopenharmony_ci#define SIDE_TONE_COEFF_MASK 0xffff 125662306a36Sopenharmony_ci#define SIDE_TONE_COEFF_MASK_SFT (0xffff << 0) 125762306a36Sopenharmony_ci 125862306a36Sopenharmony_ci/* AFE_SIDETONE_CON1 */ 125962306a36Sopenharmony_ci#define STF_BYPASS_MODE_SFT 31 126062306a36Sopenharmony_ci#define STF_BYPASS_MODE_MASK 0x1 126162306a36Sopenharmony_ci#define STF_BYPASS_MODE_MASK_SFT (0x1 << 31) 126262306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_SFT 30 126362306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_MASK 0x1 126462306a36Sopenharmony_ci#define STF_BYPASS_MODE_O28_O29_MASK_SFT (0x1 << 30) 126562306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_SFT 29 126662306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_MASK 0x1 126762306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S4_MASK_SFT (0x1 << 29) 126862306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_SFT 28 126962306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_MASK 0x1 127062306a36Sopenharmony_ci#define STF_BYPASS_MODE_I2S5_MASK_SFT (0x1 << 28) 127162306a36Sopenharmony_ci#define STF_INPUT_EN_SEL_SFT 13 127262306a36Sopenharmony_ci#define STF_INPUT_EN_SEL_MASK 0x1 127362306a36Sopenharmony_ci#define STF_INPUT_EN_SEL_MASK_SFT (0x1 << 13) 127462306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_SFT 12 127562306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_MASK 0x1 127662306a36Sopenharmony_ci#define STF_SOURCE_FROM_O19O20_MASK_SFT (0x1 << 12) 127762306a36Sopenharmony_ci#define SIDE_TONE_ON_SFT 8 127862306a36Sopenharmony_ci#define SIDE_TONE_ON_MASK 0x1 127962306a36Sopenharmony_ci#define SIDE_TONE_ON_MASK_SFT (0x1 << 8) 128062306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_SFT 0 128162306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_MASK 0x3f 128262306a36Sopenharmony_ci#define SIDE_TONE_HALF_TAP_NUM_MASK_SFT (0x3f << 0) 128362306a36Sopenharmony_ci 128462306a36Sopenharmony_ci/* AFE_SIDETONE_GAIN */ 128562306a36Sopenharmony_ci#define POSITIVE_GAIN_SFT 16 128662306a36Sopenharmony_ci#define POSITIVE_GAIN_MASK 0x7 128762306a36Sopenharmony_ci#define POSITIVE_GAIN_MASK_SFT (0x7 << 16) 128862306a36Sopenharmony_ci#define SIDE_TONE_GAIN_SFT 0 128962306a36Sopenharmony_ci#define SIDE_TONE_GAIN_MASK 0xffff 129062306a36Sopenharmony_ci#define SIDE_TONE_GAIN_MASK_SFT (0xffff << 0) 129162306a36Sopenharmony_ci 129262306a36Sopenharmony_ci/* AFE_ADDA_DL_SDM_DCCOMP_CON */ 129362306a36Sopenharmony_ci#define AUD_DC_COMP_EN_SFT 8 129462306a36Sopenharmony_ci#define AUD_DC_COMP_EN_MASK 0x1 129562306a36Sopenharmony_ci#define AUD_DC_COMP_EN_MASK_SFT (0x1 << 8) 129662306a36Sopenharmony_ci#define ATTGAIN_CTL_SFT 0 129762306a36Sopenharmony_ci#define ATTGAIN_CTL_MASK 0x3f 129862306a36Sopenharmony_ci#define ATTGAIN_CTL_MASK_SFT (0x3f << 0) 129962306a36Sopenharmony_ci 130062306a36Sopenharmony_ci/* AFE_SINEGEN_CON0 */ 130162306a36Sopenharmony_ci#define DAC_EN_SFT 26 130262306a36Sopenharmony_ci#define DAC_EN_MASK 0x1 130362306a36Sopenharmony_ci#define DAC_EN_MASK_SFT (0x1 << 26) 130462306a36Sopenharmony_ci#define MUTE_SW_CH2_SFT 25 130562306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK 0x1 130662306a36Sopenharmony_ci#define MUTE_SW_CH2_MASK_SFT (0x1 << 25) 130762306a36Sopenharmony_ci#define MUTE_SW_CH1_SFT 24 130862306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK 0x1 130962306a36Sopenharmony_ci#define MUTE_SW_CH1_MASK_SFT (0x1 << 24) 131062306a36Sopenharmony_ci#define SINE_MODE_CH2_SFT 20 131162306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK 0xf 131262306a36Sopenharmony_ci#define SINE_MODE_CH2_MASK_SFT (0xf << 20) 131362306a36Sopenharmony_ci#define AMP_DIV_CH2_SFT 17 131462306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK 0x7 131562306a36Sopenharmony_ci#define AMP_DIV_CH2_MASK_SFT (0x7 << 17) 131662306a36Sopenharmony_ci#define FREQ_DIV_CH2_SFT 12 131762306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK 0x1f 131862306a36Sopenharmony_ci#define FREQ_DIV_CH2_MASK_SFT (0x1f << 12) 131962306a36Sopenharmony_ci#define SINE_MODE_CH1_SFT 8 132062306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK 0xf 132162306a36Sopenharmony_ci#define SINE_MODE_CH1_MASK_SFT (0xf << 8) 132262306a36Sopenharmony_ci#define AMP_DIV_CH1_SFT 5 132362306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK 0x7 132462306a36Sopenharmony_ci#define AMP_DIV_CH1_MASK_SFT (0x7 << 5) 132562306a36Sopenharmony_ci#define FREQ_DIV_CH1_SFT 0 132662306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK 0x1f 132762306a36Sopenharmony_ci#define FREQ_DIV_CH1_MASK_SFT (0x1f << 0) 132862306a36Sopenharmony_ci 132962306a36Sopenharmony_ci/* AFE_SINEGEN_CON2 */ 133062306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_SFT 0 133162306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_MASK 0x3f 133262306a36Sopenharmony_ci#define INNER_LOOP_BACK_MODE_MASK_SFT (0x3f << 0) 133362306a36Sopenharmony_ci 133462306a36Sopenharmony_ci/* AFE_MEMIF_MINLEN */ 133562306a36Sopenharmony_ci#define HDMI_MINLEN_SFT 24 133662306a36Sopenharmony_ci#define HDMI_MINLEN_MASK 0xf 133762306a36Sopenharmony_ci#define HDMI_MINLEN_MASK_SFT (0xf << 24) 133862306a36Sopenharmony_ci#define DL3_MINLEN_SFT 12 133962306a36Sopenharmony_ci#define DL3_MINLEN_MASK 0xf 134062306a36Sopenharmony_ci#define DL3_MINLEN_MASK_SFT (0xf << 12) 134162306a36Sopenharmony_ci#define DL2_MINLEN_SFT 8 134262306a36Sopenharmony_ci#define DL2_MINLEN_MASK 0xf 134362306a36Sopenharmony_ci#define DL2_MINLEN_MASK_SFT (0xf << 8) 134462306a36Sopenharmony_ci#define DL1_DATA2_MINLEN_SFT 4 134562306a36Sopenharmony_ci#define DL1_DATA2_MINLEN_MASK 0xf 134662306a36Sopenharmony_ci#define DL1_DATA2_MINLEN_MASK_SFT (0xf << 4) 134762306a36Sopenharmony_ci#define DL1_MINLEN_SFT 0 134862306a36Sopenharmony_ci#define DL1_MINLEN_MASK 0xf 134962306a36Sopenharmony_ci#define DL1_MINLEN_MASK_SFT (0xf << 0) 135062306a36Sopenharmony_ci 135162306a36Sopenharmony_ci/* AFE_MEMIF_MAXLEN */ 135262306a36Sopenharmony_ci#define HDMI_MAXLEN_SFT 24 135362306a36Sopenharmony_ci#define HDMI_MAXLEN_MASK 0xf 135462306a36Sopenharmony_ci#define HDMI_MAXLEN_MASK_SFT (0xf << 24) 135562306a36Sopenharmony_ci#define DL3_MAXLEN_SFT 8 135662306a36Sopenharmony_ci#define DL3_MAXLEN_MASK 0xf 135762306a36Sopenharmony_ci#define DL3_MAXLEN_MASK_SFT (0xf << 8) 135862306a36Sopenharmony_ci#define DL2_MAXLEN_SFT 4 135962306a36Sopenharmony_ci#define DL2_MAXLEN_MASK 0xf 136062306a36Sopenharmony_ci#define DL2_MAXLEN_MASK_SFT (0xf << 4) 136162306a36Sopenharmony_ci#define DL1_MAXLEN_SFT 0 136262306a36Sopenharmony_ci#define DL1_MAXLEN_MASK 0x3 136362306a36Sopenharmony_ci#define DL1_MAXLEN_MASK_SFT (0x3 << 0) 136462306a36Sopenharmony_ci 136562306a36Sopenharmony_ci/* AFE_MEMIF_PBUF_SIZE */ 136662306a36Sopenharmony_ci#define VUL12_4CH_SFT 17 136762306a36Sopenharmony_ci#define VUL12_4CH_MASK 0x1 136862306a36Sopenharmony_ci#define VUL12_4CH_MASK_SFT (0x1 << 17) 136962306a36Sopenharmony_ci#define DL3_PBUF_SIZE_SFT 10 137062306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK 0x3 137162306a36Sopenharmony_ci#define DL3_PBUF_SIZE_MASK_SFT (0x3 << 10) 137262306a36Sopenharmony_ci#define HDMI_PBUF_SIZE_SFT 4 137362306a36Sopenharmony_ci#define HDMI_PBUF_SIZE_MASK 0x3 137462306a36Sopenharmony_ci#define HDMI_PBUF_SIZE_MASK_SFT (0x3 << 4) 137562306a36Sopenharmony_ci#define DL2_PBUF_SIZE_SFT 2 137662306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK 0x3 137762306a36Sopenharmony_ci#define DL2_PBUF_SIZE_MASK_SFT (0x3 << 2) 137862306a36Sopenharmony_ci#define DL1_PBUF_SIZE_SFT 0 137962306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK 0x3 138062306a36Sopenharmony_ci#define DL1_PBUF_SIZE_MASK_SFT (0x3 << 0) 138162306a36Sopenharmony_ci 138262306a36Sopenharmony_ci/* AFE_HD_ENGEN_ENABLE */ 138362306a36Sopenharmony_ci#define AFE_24M_ON_SFT 1 138462306a36Sopenharmony_ci#define AFE_24M_ON_MASK 0x1 138562306a36Sopenharmony_ci#define AFE_24M_ON_MASK_SFT (0x1 << 1) 138662306a36Sopenharmony_ci#define AFE_22M_ON_SFT 0 138762306a36Sopenharmony_ci#define AFE_22M_ON_MASK 0x1 138862306a36Sopenharmony_ci#define AFE_22M_ON_MASK_SFT (0x1 << 0) 138962306a36Sopenharmony_ci 139062306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON0 */ 139162306a36Sopenharmony_ci#define IRQ12_MCU_ON_SFT 12 139262306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK 0x1 139362306a36Sopenharmony_ci#define IRQ12_MCU_ON_MASK_SFT (0x1 << 12) 139462306a36Sopenharmony_ci#define IRQ11_MCU_ON_SFT 11 139562306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK 0x1 139662306a36Sopenharmony_ci#define IRQ11_MCU_ON_MASK_SFT (0x1 << 11) 139762306a36Sopenharmony_ci#define IRQ10_MCU_ON_SFT 10 139862306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK 0x1 139962306a36Sopenharmony_ci#define IRQ10_MCU_ON_MASK_SFT (0x1 << 10) 140062306a36Sopenharmony_ci#define IRQ9_MCU_ON_SFT 9 140162306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK 0x1 140262306a36Sopenharmony_ci#define IRQ9_MCU_ON_MASK_SFT (0x1 << 9) 140362306a36Sopenharmony_ci#define IRQ8_MCU_ON_SFT 8 140462306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK 0x1 140562306a36Sopenharmony_ci#define IRQ8_MCU_ON_MASK_SFT (0x1 << 8) 140662306a36Sopenharmony_ci#define IRQ7_MCU_ON_SFT 7 140762306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK 0x1 140862306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK_SFT (0x1 << 7) 140962306a36Sopenharmony_ci#define IRQ6_MCU_ON_SFT 6 141062306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK 0x1 141162306a36Sopenharmony_ci#define IRQ6_MCU_ON_MASK_SFT (0x1 << 6) 141262306a36Sopenharmony_ci#define IRQ5_MCU_ON_SFT 5 141362306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK 0x1 141462306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK_SFT (0x1 << 5) 141562306a36Sopenharmony_ci#define IRQ4_MCU_ON_SFT 4 141662306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK 0x1 141762306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK_SFT (0x1 << 4) 141862306a36Sopenharmony_ci#define IRQ3_MCU_ON_SFT 3 141962306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK 0x1 142062306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK_SFT (0x1 << 3) 142162306a36Sopenharmony_ci#define IRQ2_MCU_ON_SFT 2 142262306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK 0x1 142362306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK_SFT (0x1 << 2) 142462306a36Sopenharmony_ci#define IRQ1_MCU_ON_SFT 1 142562306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK 0x1 142662306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK_SFT (0x1 << 1) 142762306a36Sopenharmony_ci#define IRQ0_MCU_ON_SFT 0 142862306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK 0x1 142962306a36Sopenharmony_ci#define IRQ0_MCU_ON_MASK_SFT (0x1 << 0) 143062306a36Sopenharmony_ci 143162306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON1 */ 143262306a36Sopenharmony_ci#define IRQ7_MCU_MODE_SFT 28 143362306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK 0xf 143462306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK_SFT (0xf << 28) 143562306a36Sopenharmony_ci#define IRQ6_MCU_MODE_SFT 24 143662306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK 0xf 143762306a36Sopenharmony_ci#define IRQ6_MCU_MODE_MASK_SFT (0xf << 24) 143862306a36Sopenharmony_ci#define IRQ5_MCU_MODE_SFT 20 143962306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK 0xf 144062306a36Sopenharmony_ci#define IRQ5_MCU_MODE_MASK_SFT (0xf << 20) 144162306a36Sopenharmony_ci#define IRQ4_MCU_MODE_SFT 16 144262306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK 0xf 144362306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK_SFT (0xf << 16) 144462306a36Sopenharmony_ci#define IRQ3_MCU_MODE_SFT 12 144562306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK 0xf 144662306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK_SFT (0xf << 12) 144762306a36Sopenharmony_ci#define IRQ2_MCU_MODE_SFT 8 144862306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK 0xf 144962306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK_SFT (0xf << 8) 145062306a36Sopenharmony_ci#define IRQ1_MCU_MODE_SFT 4 145162306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK 0xf 145262306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK_SFT (0xf << 4) 145362306a36Sopenharmony_ci#define IRQ0_MCU_MODE_SFT 0 145462306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK 0xf 145562306a36Sopenharmony_ci#define IRQ0_MCU_MODE_MASK_SFT (0xf << 0) 145662306a36Sopenharmony_ci 145762306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON2 */ 145862306a36Sopenharmony_ci#define IRQ12_MCU_MODE_SFT 4 145962306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK 0xf 146062306a36Sopenharmony_ci#define IRQ12_MCU_MODE_MASK_SFT (0xf << 4) 146162306a36Sopenharmony_ci#define IRQ11_MCU_MODE_SFT 0 146262306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK 0xf 146362306a36Sopenharmony_ci#define IRQ11_MCU_MODE_MASK_SFT (0xf << 0) 146462306a36Sopenharmony_ci 146562306a36Sopenharmony_ci/* AFE_IRQ_MCU_CLR */ 146662306a36Sopenharmony_ci#define IRQ12_MCU_MISS_CNT_CLR_SFT 28 146762306a36Sopenharmony_ci#define IRQ12_MCU_MISS_CNT_CLR_MASK 0x1 146862306a36Sopenharmony_ci#define IRQ12_MCU_MISS_CNT_CLR_MASK_SFT (0x1 << 28) 146962306a36Sopenharmony_ci#define IRQ11_MCU_MISS_CNT_CLR_SFT 27 147062306a36Sopenharmony_ci#define IRQ11_MCU_MISS_CNT_CLR_MASK 0x1 147162306a36Sopenharmony_ci#define IRQ11_MCU_MISS_CNT_CLR_MASK_SFT (0x1 << 27) 147262306a36Sopenharmony_ci#define IRQ10_MCU_MISS_CLR_SFT 26 147362306a36Sopenharmony_ci#define IRQ10_MCU_MISS_CLR_MASK 0x1 147462306a36Sopenharmony_ci#define IRQ10_MCU_MISS_CLR_MASK_SFT (0x1 << 26) 147562306a36Sopenharmony_ci#define IRQ9_MCU_MISS_CLR_SFT 25 147662306a36Sopenharmony_ci#define IRQ9_MCU_MISS_CLR_MASK 0x1 147762306a36Sopenharmony_ci#define IRQ9_MCU_MISS_CLR_MASK_SFT (0x1 << 25) 147862306a36Sopenharmony_ci#define IRQ8_MCU_MISS_CLR_SFT 24 147962306a36Sopenharmony_ci#define IRQ8_MCU_MISS_CLR_MASK 0x1 148062306a36Sopenharmony_ci#define IRQ8_MCU_MISS_CLR_MASK_SFT (0x1 << 24) 148162306a36Sopenharmony_ci#define IRQ7_MCU_MISS_CLR_SFT 23 148262306a36Sopenharmony_ci#define IRQ7_MCU_MISS_CLR_MASK 0x1 148362306a36Sopenharmony_ci#define IRQ7_MCU_MISS_CLR_MASK_SFT (0x1 << 23) 148462306a36Sopenharmony_ci#define IRQ6_MCU_MISS_CLR_SFT 22 148562306a36Sopenharmony_ci#define IRQ6_MCU_MISS_CLR_MASK 0x1 148662306a36Sopenharmony_ci#define IRQ6_MCU_MISS_CLR_MASK_SFT (0x1 << 22) 148762306a36Sopenharmony_ci#define IRQ5_MCU_MISS_CLR_SFT 21 148862306a36Sopenharmony_ci#define IRQ5_MCU_MISS_CLR_MASK 0x1 148962306a36Sopenharmony_ci#define IRQ5_MCU_MISS_CLR_MASK_SFT (0x1 << 21) 149062306a36Sopenharmony_ci#define IRQ4_MCU_MISS_CLR_SFT 20 149162306a36Sopenharmony_ci#define IRQ4_MCU_MISS_CLR_MASK 0x1 149262306a36Sopenharmony_ci#define IRQ4_MCU_MISS_CLR_MASK_SFT (0x1 << 20) 149362306a36Sopenharmony_ci#define IRQ3_MCU_MISS_CLR_SFT 19 149462306a36Sopenharmony_ci#define IRQ3_MCU_MISS_CLR_MASK 0x1 149562306a36Sopenharmony_ci#define IRQ3_MCU_MISS_CLR_MASK_SFT (0x1 << 19) 149662306a36Sopenharmony_ci#define IRQ2_MCU_MISS_CLR_SFT 18 149762306a36Sopenharmony_ci#define IRQ2_MCU_MISS_CLR_MASK 0x1 149862306a36Sopenharmony_ci#define IRQ2_MCU_MISS_CLR_MASK_SFT (0x1 << 18) 149962306a36Sopenharmony_ci#define IRQ1_MCU_MISS_CLR_SFT 17 150062306a36Sopenharmony_ci#define IRQ1_MCU_MISS_CLR_MASK 0x1 150162306a36Sopenharmony_ci#define IRQ1_MCU_MISS_CLR_MASK_SFT (0x1 << 17) 150262306a36Sopenharmony_ci#define IRQ0_MCU_MISS_CLR_SFT 16 150362306a36Sopenharmony_ci#define IRQ0_MCU_MISS_CLR_MASK 0x1 150462306a36Sopenharmony_ci#define IRQ0_MCU_MISS_CLR_MASK_SFT (0x1 << 16) 150562306a36Sopenharmony_ci#define IRQ12_MCU_CLR_SFT 12 150662306a36Sopenharmony_ci#define IRQ12_MCU_CLR_MASK 0x1 150762306a36Sopenharmony_ci#define IRQ12_MCU_CLR_MASK_SFT (0x1 << 12) 150862306a36Sopenharmony_ci#define IRQ11_MCU_CLR_SFT 11 150962306a36Sopenharmony_ci#define IRQ11_MCU_CLR_MASK 0x1 151062306a36Sopenharmony_ci#define IRQ11_MCU_CLR_MASK_SFT (0x1 << 11) 151162306a36Sopenharmony_ci#define IRQ10_MCU_CLR_SFT 10 151262306a36Sopenharmony_ci#define IRQ10_MCU_CLR_MASK 0x1 151362306a36Sopenharmony_ci#define IRQ10_MCU_CLR_MASK_SFT (0x1 << 10) 151462306a36Sopenharmony_ci#define IRQ9_MCU_CLR_SFT 9 151562306a36Sopenharmony_ci#define IRQ9_MCU_CLR_MASK 0x1 151662306a36Sopenharmony_ci#define IRQ9_MCU_CLR_MASK_SFT (0x1 << 9) 151762306a36Sopenharmony_ci#define IRQ8_MCU_CLR_SFT 8 151862306a36Sopenharmony_ci#define IRQ8_MCU_CLR_MASK 0x1 151962306a36Sopenharmony_ci#define IRQ8_MCU_CLR_MASK_SFT (0x1 << 8) 152062306a36Sopenharmony_ci#define IRQ7_MCU_CLR_SFT 7 152162306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK 0x1 152262306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK_SFT (0x1 << 7) 152362306a36Sopenharmony_ci#define IRQ6_MCU_CLR_SFT 6 152462306a36Sopenharmony_ci#define IRQ6_MCU_CLR_MASK 0x1 152562306a36Sopenharmony_ci#define IRQ6_MCU_CLR_MASK_SFT (0x1 << 6) 152662306a36Sopenharmony_ci#define IRQ5_MCU_CLR_SFT 5 152762306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK 0x1 152862306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK_SFT (0x1 << 5) 152962306a36Sopenharmony_ci#define IRQ4_MCU_CLR_SFT 4 153062306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK 0x1 153162306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK_SFT (0x1 << 4) 153262306a36Sopenharmony_ci#define IRQ3_MCU_CLR_SFT 3 153362306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK 0x1 153462306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK_SFT (0x1 << 3) 153562306a36Sopenharmony_ci#define IRQ2_MCU_CLR_SFT 2 153662306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK 0x1 153762306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK_SFT (0x1 << 2) 153862306a36Sopenharmony_ci#define IRQ1_MCU_CLR_SFT 1 153962306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK 0x1 154062306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK_SFT (0x1 << 1) 154162306a36Sopenharmony_ci#define IRQ0_MCU_CLR_SFT 0 154262306a36Sopenharmony_ci#define IRQ0_MCU_CLR_MASK 0x1 154362306a36Sopenharmony_ci#define IRQ0_MCU_CLR_MASK_SFT (0x1 << 0) 154462306a36Sopenharmony_ci 154562306a36Sopenharmony_ci/* AFE_MEMIF_MSB */ 154662306a36Sopenharmony_ci#define CPU_COMPACT_MODE_SFT 29 154762306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK 0x1 154862306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK_SFT (0x1 << 29) 154962306a36Sopenharmony_ci#define CPU_HD_ALIGN_SFT 28 155062306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK 0x1 155162306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK_SFT (0x1 << 28) 155262306a36Sopenharmony_ci#define AWB2_AXI_WR_SIGN_SFT 24 155362306a36Sopenharmony_ci#define AWB2_AXI_WR_SIGN_MASK 0x1 155462306a36Sopenharmony_ci#define AWB2_AXI_WR_SIGN_MASK_SFT (0x1 << 24) 155562306a36Sopenharmony_ci#define VUL2_AXI_WR_SIGN_SFT 22 155662306a36Sopenharmony_ci#define VUL2_AXI_WR_SIGN_MASK 0x1 155762306a36Sopenharmony_ci#define VUL2_AXI_WR_SIGN_MASK_SFT (0x1 << 22) 155862306a36Sopenharmony_ci#define VUL12_AXI_WR_SIGN_SFT 21 155962306a36Sopenharmony_ci#define VUL12_AXI_WR_SIGN_MASK 0x1 156062306a36Sopenharmony_ci#define VUL12_AXI_WR_SIGN_MASK_SFT (0x1 << 21) 156162306a36Sopenharmony_ci#define VUL_AXI_WR_SIGN_SFT 20 156262306a36Sopenharmony_ci#define VUL_AXI_WR_SIGN_MASK 0x1 156362306a36Sopenharmony_ci#define VUL_AXI_WR_SIGN_MASK_SFT (0x1 << 20) 156462306a36Sopenharmony_ci#define MOD_DAI_AXI_WR_SIGN_SFT 18 156562306a36Sopenharmony_ci#define MOD_DAI_AXI_WR_SIGN_MASK 0x1 156662306a36Sopenharmony_ci#define MOD_DAI_AXI_WR_SIGN_MASK_SFT (0x1 << 18) 156762306a36Sopenharmony_ci#define AWB_MSTR_SIGN_SFT 17 156862306a36Sopenharmony_ci#define AWB_MSTR_SIGN_MASK 0x1 156962306a36Sopenharmony_ci#define AWB_MSTR_SIGN_MASK_SFT (0x1 << 17) 157062306a36Sopenharmony_ci#define SYSRAM_SIGN_SFT 16 157162306a36Sopenharmony_ci#define SYSRAM_SIGN_MASK 0x1 157262306a36Sopenharmony_ci#define SYSRAM_SIGN_MASK_SFT (0x1 << 16) 157362306a36Sopenharmony_ci 157462306a36Sopenharmony_ci/* AFE_HDMI_CONN0 */ 157562306a36Sopenharmony_ci#define HDMI_O_7_SFT 21 157662306a36Sopenharmony_ci#define HDMI_O_7_MASK 0x7 157762306a36Sopenharmony_ci#define HDMI_O_7_MASK_SFT (0x7 << 21) 157862306a36Sopenharmony_ci#define HDMI_O_6_SFT 18 157962306a36Sopenharmony_ci#define HDMI_O_6_MASK 0x7 158062306a36Sopenharmony_ci#define HDMI_O_6_MASK_SFT (0x7 << 18) 158162306a36Sopenharmony_ci#define HDMI_O_5_SFT 15 158262306a36Sopenharmony_ci#define HDMI_O_5_MASK 0x7 158362306a36Sopenharmony_ci#define HDMI_O_5_MASK_SFT (0x7 << 15) 158462306a36Sopenharmony_ci#define HDMI_O_4_SFT 12 158562306a36Sopenharmony_ci#define HDMI_O_4_MASK 0x7 158662306a36Sopenharmony_ci#define HDMI_O_4_MASK_SFT (0x7 << 12) 158762306a36Sopenharmony_ci#define HDMI_O_3_SFT 9 158862306a36Sopenharmony_ci#define HDMI_O_3_MASK 0x7 158962306a36Sopenharmony_ci#define HDMI_O_3_MASK_SFT (0x7 << 9) 159062306a36Sopenharmony_ci#define HDMI_O_2_SFT 6 159162306a36Sopenharmony_ci#define HDMI_O_2_MASK 0x7 159262306a36Sopenharmony_ci#define HDMI_O_2_MASK_SFT (0x7 << 6) 159362306a36Sopenharmony_ci#define HDMI_O_1_SFT 3 159462306a36Sopenharmony_ci#define HDMI_O_1_MASK 0x7 159562306a36Sopenharmony_ci#define HDMI_O_1_MASK_SFT (0x7 << 3) 159662306a36Sopenharmony_ci#define HDMI_O_0_SFT 0 159762306a36Sopenharmony_ci#define HDMI_O_0_MASK 0x7 159862306a36Sopenharmony_ci#define HDMI_O_0_MASK_SFT (0x7 << 0) 159962306a36Sopenharmony_ci 160062306a36Sopenharmony_ci/* AFE_TDM_CON1 */ 160162306a36Sopenharmony_ci#define TDM_EN_SFT 0 160262306a36Sopenharmony_ci#define TDM_EN_MASK 0x1 160362306a36Sopenharmony_ci#define TDM_EN_MASK_SFT (0x1 << 0) 160462306a36Sopenharmony_ci#define LRCK_INVERSE_SFT 2 160562306a36Sopenharmony_ci#define LRCK_INVERSE_MASK 0x1 160662306a36Sopenharmony_ci#define LRCK_INVERSE_MASK_SFT (0x1 << 2) 160762306a36Sopenharmony_ci#define DELAY_DATA_SFT 3 160862306a36Sopenharmony_ci#define DELAY_DATA_MASK 0x1 160962306a36Sopenharmony_ci#define DELAY_DATA_MASK_SFT (0x1 << 3) 161062306a36Sopenharmony_ci#define LEFT_ALIGN_SFT 4 161162306a36Sopenharmony_ci#define LEFT_ALIGN_MASK 0x1 161262306a36Sopenharmony_ci#define LEFT_ALIGN_MASK_SFT (0x1 << 4) 161362306a36Sopenharmony_ci#define WLEN_SFT 8 161462306a36Sopenharmony_ci#define WLEN_MASK 0x3 161562306a36Sopenharmony_ci#define WLEN_MASK_SFT (0x3 << 8) 161662306a36Sopenharmony_ci#define CHANNEL_NUM_SFT 10 161762306a36Sopenharmony_ci#define CHANNEL_NUM_MASK 0x3 161862306a36Sopenharmony_ci#define CHANNEL_NUM_MASK_SFT (0x3 << 10) 161962306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_SFT 12 162062306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_MASK 0x3 162162306a36Sopenharmony_ci#define CHANNEL_BCK_CYCLES_MASK_SFT (0x3 << 12) 162262306a36Sopenharmony_ci#define DAC_BIT_NUM_SFT 16 162362306a36Sopenharmony_ci#define DAC_BIT_NUM_MASK 0x1f 162462306a36Sopenharmony_ci#define DAC_BIT_NUM_MASK_SFT (0x1f << 16) 162562306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_SFT 24 162662306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_MASK 0xff 162762306a36Sopenharmony_ci#define LRCK_TDM_WIDTH_MASK_SFT (0xff << 24) 162862306a36Sopenharmony_ci 162962306a36Sopenharmony_ci/* AFE_TDM_CON2 */ 163062306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_SFT 0 163162306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_MASK 0x7 163262306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT0_MASK_SFT (0x7 << 0) 163362306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_SFT 4 163462306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_MASK 0x7 163562306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT1_MASK_SFT (0x7 << 4) 163662306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_SFT 8 163762306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_MASK 0x7 163862306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT2_MASK_SFT (0x7 << 8) 163962306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_SFT 12 164062306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_MASK 0x7 164162306a36Sopenharmony_ci#define ST_CH_PAIR_SOUT3_MASK_SFT (0x7 << 12) 164262306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_SFT 16 164362306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_MASK 0x1 164462306a36Sopenharmony_ci#define TDM_FIX_VALUE_SEL_MASK_SFT (0x1 << 16) 164562306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_SFT 20 164662306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_MASK 0x1 164762306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_MASK_SFT (0x1 << 20) 164862306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_SFT 21 164962306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_MASK 0x3 165062306a36Sopenharmony_ci#define TDM_I2S_LOOPBACK_CH_MASK_SFT (0x3 << 21) 165162306a36Sopenharmony_ci#define TDM_FIX_VALUE_SFT 24 165262306a36Sopenharmony_ci#define TDM_FIX_VALUE_MASK 0xff 165362306a36Sopenharmony_ci#define TDM_FIX_VALUE_MASK_SFT (0xff << 24) 165462306a36Sopenharmony_ci 165562306a36Sopenharmony_ci/* AFE_HDMI_OUT_CON0 */ 165662306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_RETM_SFT 8 165762306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_RETM_MASK 0x1 165862306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_RETM_MASK_SFT (0x1 << 8) 165962306a36Sopenharmony_ci#define AFE_HDMI_OUT_CH_NUM_SFT 4 166062306a36Sopenharmony_ci#define AFE_HDMI_OUT_CH_NUM_MASK 0xf 166162306a36Sopenharmony_ci#define AFE_HDMI_OUT_CH_NUM_MASK_SFT (0xf << 4) 166262306a36Sopenharmony_ci#define AFE_HDMI_OUT_BIT_WIDTH_SFT 1 166362306a36Sopenharmony_ci#define AFE_HDMI_OUT_BIT_WIDTH_MASK 0x1 166462306a36Sopenharmony_ci#define AFE_HDMI_OUT_BIT_WIDTH_MASK_SFT (0x1 << 1) 166562306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_SFT 0 166662306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_MASK 0x1 166762306a36Sopenharmony_ci#define AFE_HDMI_OUT_ON_MASK_SFT (0x1 << 0) 166862306a36Sopenharmony_ci#endif 1669