0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _MT8183_REG_H_
0010 #define _MT8183_REG_H_
0011
0012 #define AUDIO_TOP_CON0 0x0000
0013 #define AUDIO_TOP_CON1 0x0004
0014 #define AUDIO_TOP_CON3 0x000c
0015 #define AFE_DAC_CON0 0x0010
0016 #define AFE_DAC_CON1 0x0014
0017 #define AFE_I2S_CON 0x0018
0018 #define AFE_DAIBT_CON0 0x001c
0019 #define AFE_CONN0 0x0020
0020 #define AFE_CONN1 0x0024
0021 #define AFE_CONN2 0x0028
0022 #define AFE_CONN3 0x002c
0023 #define AFE_CONN4 0x0030
0024 #define AFE_I2S_CON1 0x0034
0025 #define AFE_I2S_CON2 0x0038
0026 #define AFE_MRGIF_CON 0x003c
0027 #define AFE_DL1_BASE 0x0040
0028 #define AFE_DL1_CUR 0x0044
0029 #define AFE_DL1_END 0x0048
0030 #define AFE_I2S_CON3 0x004c
0031 #define AFE_DL2_BASE 0x0050
0032 #define AFE_DL2_CUR 0x0054
0033 #define AFE_DL2_END 0x0058
0034 #define AFE_CONN5 0x005c
0035 #define AFE_CONN_24BIT 0x006c
0036 #define AFE_AWB_BASE 0x0070
0037 #define AFE_AWB_END 0x0078
0038 #define AFE_AWB_CUR 0x007c
0039 #define AFE_VUL_BASE 0x0080
0040 #define AFE_VUL_END 0x0088
0041 #define AFE_VUL_CUR 0x008c
0042 #define AFE_CONN6 0x00bc
0043 #define AFE_MEMIF_MSB 0x00cc
0044 #define AFE_MEMIF_MON0 0x00d0
0045 #define AFE_MEMIF_MON1 0x00d4
0046 #define AFE_MEMIF_MON2 0x00d8
0047 #define AFE_MEMIF_MON3 0x00dc
0048 #define AFE_MEMIF_MON4 0x00e0
0049 #define AFE_MEMIF_MON5 0x00e4
0050 #define AFE_MEMIF_MON6 0x00e8
0051 #define AFE_MEMIF_MON7 0x00ec
0052 #define AFE_MEMIF_MON8 0x00f0
0053 #define AFE_MEMIF_MON9 0x00f4
0054 #define AFE_ADDA_DL_SRC2_CON0 0x0108
0055 #define AFE_ADDA_DL_SRC2_CON1 0x010c
0056 #define AFE_ADDA_UL_SRC_CON0 0x0114
0057 #define AFE_ADDA_UL_SRC_CON1 0x0118
0058 #define AFE_ADDA_TOP_CON0 0x0120
0059 #define AFE_ADDA_UL_DL_CON0 0x0124
0060 #define AFE_ADDA_SRC_DEBUG 0x012c
0061 #define AFE_ADDA_SRC_DEBUG_MON0 0x0130
0062 #define AFE_ADDA_SRC_DEBUG_MON1 0x0134
0063 #define AFE_ADDA_UL_SRC_MON0 0x0148
0064 #define AFE_ADDA_UL_SRC_MON1 0x014c
0065 #define AFE_SIDETONE_DEBUG 0x01d0
0066 #define AFE_SIDETONE_MON 0x01d4
0067 #define AFE_SINEGEN_CON2 0x01dc
0068 #define AFE_SIDETONE_CON0 0x01e0
0069 #define AFE_SIDETONE_COEFF 0x01e4
0070 #define AFE_SIDETONE_CON1 0x01e8
0071 #define AFE_SIDETONE_GAIN 0x01ec
0072 #define AFE_SINEGEN_CON0 0x01f0
0073 #define AFE_TOP_CON0 0x0200
0074 #define AFE_BUS_CFG 0x0240
0075 #define AFE_BUS_MON0 0x0244
0076 #define AFE_ADDA_PREDIS_CON0 0x0260
0077 #define AFE_ADDA_PREDIS_CON1 0x0264
0078 #define AFE_MRGIF_MON0 0x0270
0079 #define AFE_MRGIF_MON1 0x0274
0080 #define AFE_MRGIF_MON2 0x0278
0081 #define AFE_I2S_MON 0x027c
0082 #define AFE_ADDA_IIR_COEF_02_01 0x0290
0083 #define AFE_ADDA_IIR_COEF_04_03 0x0294
0084 #define AFE_ADDA_IIR_COEF_06_05 0x0298
0085 #define AFE_ADDA_IIR_COEF_08_07 0x029c
0086 #define AFE_ADDA_IIR_COEF_10_09 0x02a0
0087 #define AFE_DAC_CON2 0x02e0
0088 #define AFE_IRQ_MCU_CON1 0x02e4
0089 #define AFE_IRQ_MCU_CON2 0x02e8
0090 #define AFE_DAC_MON 0x02ec
0091 #define AFE_VUL2_BASE 0x02f0
0092 #define AFE_VUL2_END 0x02f8
0093 #define AFE_VUL2_CUR 0x02fc
0094 #define AFE_IRQ_MCU_CNT0 0x0300
0095 #define AFE_IRQ_MCU_CNT6 0x0304
0096 #define AFE_IRQ_MCU_CNT8 0x0308
0097 #define AFE_IRQ_MCU_EN1 0x030c
0098 #define AFE_IRQ0_MCU_CNT_MON 0x0310
0099 #define AFE_IRQ6_MCU_CNT_MON 0x0314
0100 #define AFE_MOD_DAI_BASE 0x0330
0101 #define AFE_MOD_DAI_END 0x0338
0102 #define AFE_MOD_DAI_CUR 0x033c
0103 #define AFE_VUL_D2_BASE 0x0350
0104 #define AFE_VUL_D2_END 0x0358
0105 #define AFE_VUL_D2_CUR 0x035c
0106 #define AFE_DL3_BASE 0x0360
0107 #define AFE_DL3_CUR 0x0364
0108 #define AFE_DL3_END 0x0368
0109 #define AFE_HDMI_OUT_CON0 0x0370
0110 #define AFE_HDMI_OUT_BASE 0x0374
0111 #define AFE_HDMI_OUT_CUR 0x0378
0112 #define AFE_HDMI_OUT_END 0x037c
0113 #define AFE_HDMI_CONN0 0x0390
0114 #define AFE_IRQ3_MCU_CNT_MON 0x0398
0115 #define AFE_IRQ4_MCU_CNT_MON 0x039c
0116 #define AFE_IRQ_MCU_CON0 0x03a0
0117 #define AFE_IRQ_MCU_STATUS 0x03a4
0118 #define AFE_IRQ_MCU_CLR 0x03a8
0119 #define AFE_IRQ_MCU_CNT1 0x03ac
0120 #define AFE_IRQ_MCU_CNT2 0x03b0
0121 #define AFE_IRQ_MCU_EN 0x03b4
0122 #define AFE_IRQ_MCU_MON2 0x03b8
0123 #define AFE_IRQ_MCU_CNT5 0x03bc
0124 #define AFE_IRQ1_MCU_CNT_MON 0x03c0
0125 #define AFE_IRQ2_MCU_CNT_MON 0x03c4
0126 #define AFE_IRQ1_MCU_EN_CNT_MON 0x03c8
0127 #define AFE_IRQ5_MCU_CNT_MON 0x03cc
0128 #define AFE_MEMIF_MINLEN 0x03d0
0129 #define AFE_MEMIF_MAXLEN 0x03d4
0130 #define AFE_MEMIF_PBUF_SIZE 0x03d8
0131 #define AFE_IRQ_MCU_CNT7 0x03dc
0132 #define AFE_IRQ7_MCU_CNT_MON 0x03e0
0133 #define AFE_IRQ_MCU_CNT3 0x03e4
0134 #define AFE_IRQ_MCU_CNT4 0x03e8
0135 #define AFE_IRQ_MCU_CNT11 0x03ec
0136 #define AFE_APLL1_TUNER_CFG 0x03f0
0137 #define AFE_APLL2_TUNER_CFG 0x03f4
0138 #define AFE_MEMIF_HD_MODE 0x03f8
0139 #define AFE_MEMIF_HDALIGN 0x03fc
0140 #define AFE_CONN33 0x0408
0141 #define AFE_IRQ_MCU_CNT12 0x040c
0142 #define AFE_GAIN1_CON0 0x0410
0143 #define AFE_GAIN1_CON1 0x0414
0144 #define AFE_GAIN1_CON2 0x0418
0145 #define AFE_GAIN1_CON3 0x041c
0146 #define AFE_CONN7 0x0420
0147 #define AFE_GAIN1_CUR 0x0424
0148 #define AFE_GAIN2_CON0 0x0428
0149 #define AFE_GAIN2_CON1 0x042c
0150 #define AFE_GAIN2_CON2 0x0430
0151 #define AFE_GAIN2_CON3 0x0434
0152 #define AFE_CONN8 0x0438
0153 #define AFE_GAIN2_CUR 0x043c
0154 #define AFE_CONN9 0x0440
0155 #define AFE_CONN10 0x0444
0156 #define AFE_CONN11 0x0448
0157 #define AFE_CONN12 0x044c
0158 #define AFE_CONN13 0x0450
0159 #define AFE_CONN14 0x0454
0160 #define AFE_CONN15 0x0458
0161 #define AFE_CONN16 0x045c
0162 #define AFE_CONN17 0x0460
0163 #define AFE_CONN18 0x0464
0164 #define AFE_CONN19 0x0468
0165 #define AFE_CONN20 0x046c
0166 #define AFE_CONN21 0x0470
0167 #define AFE_CONN22 0x0474
0168 #define AFE_CONN23 0x0478
0169 #define AFE_CONN24 0x047c
0170 #define AFE_CONN_RS 0x0494
0171 #define AFE_CONN_DI 0x0498
0172 #define AFE_CONN25 0x04b0
0173 #define AFE_CONN26 0x04b4
0174 #define AFE_CONN27 0x04b8
0175 #define AFE_CONN28 0x04bc
0176 #define AFE_CONN29 0x04c0
0177 #define AFE_CONN30 0x04c4
0178 #define AFE_CONN31 0x04c8
0179 #define AFE_CONN32 0x04cc
0180 #define AFE_SRAM_DELSEL_CON0 0x04f0
0181 #define AFE_SRAM_DELSEL_CON2 0x04f8
0182 #define AFE_SRAM_DELSEL_CON3 0x04fc
0183 #define AFE_ASRC_2CH_CON12 0x0528
0184 #define AFE_ASRC_2CH_CON13 0x052c
0185 #define PCM_INTF_CON1 0x0530
0186 #define PCM_INTF_CON2 0x0538
0187 #define PCM2_INTF_CON 0x053c
0188 #define AFE_TDM_CON1 0x0548
0189 #define AFE_TDM_CON2 0x054c
0190 #define AFE_CONN34 0x0580
0191 #define FPGA_CFG0 0x05b0
0192 #define FPGA_CFG1 0x05b4
0193 #define FPGA_CFG2 0x05c0
0194 #define FPGA_CFG3 0x05c4
0195 #define AUDIO_TOP_DBG_CON 0x05c8
0196 #define AUDIO_TOP_DBG_MON0 0x05cc
0197 #define AUDIO_TOP_DBG_MON1 0x05d0
0198 #define AFE_IRQ8_MCU_CNT_MON 0x05e4
0199 #define AFE_IRQ11_MCU_CNT_MON 0x05e8
0200 #define AFE_IRQ12_MCU_CNT_MON 0x05ec
0201 #define AFE_GENERAL_REG0 0x0800
0202 #define AFE_GENERAL_REG1 0x0804
0203 #define AFE_GENERAL_REG2 0x0808
0204 #define AFE_GENERAL_REG3 0x080c
0205 #define AFE_GENERAL_REG4 0x0810
0206 #define AFE_GENERAL_REG5 0x0814
0207 #define AFE_GENERAL_REG6 0x0818
0208 #define AFE_GENERAL_REG7 0x081c
0209 #define AFE_GENERAL_REG8 0x0820
0210 #define AFE_GENERAL_REG9 0x0824
0211 #define AFE_GENERAL_REG10 0x0828
0212 #define AFE_GENERAL_REG11 0x082c
0213 #define AFE_GENERAL_REG12 0x0830
0214 #define AFE_GENERAL_REG13 0x0834
0215 #define AFE_GENERAL_REG14 0x0838
0216 #define AFE_GENERAL_REG15 0x083c
0217 #define AFE_CBIP_CFG0 0x0840
0218 #define AFE_CBIP_MON0 0x0844
0219 #define AFE_CBIP_SLV_MUX_MON0 0x0848
0220 #define AFE_CBIP_SLV_DECODER_MON0 0x084c
0221 #define AFE_CONN0_1 0x0900
0222 #define AFE_CONN1_1 0x0904
0223 #define AFE_CONN2_1 0x0908
0224 #define AFE_CONN3_1 0x090c
0225 #define AFE_CONN4_1 0x0910
0226 #define AFE_CONN5_1 0x0914
0227 #define AFE_CONN6_1 0x0918
0228 #define AFE_CONN7_1 0x091c
0229 #define AFE_CONN8_1 0x0920
0230 #define AFE_CONN9_1 0x0924
0231 #define AFE_CONN10_1 0x0928
0232 #define AFE_CONN11_1 0x092c
0233 #define AFE_CONN12_1 0x0930
0234 #define AFE_CONN13_1 0x0934
0235 #define AFE_CONN14_1 0x0938
0236 #define AFE_CONN15_1 0x093c
0237 #define AFE_CONN16_1 0x0940
0238 #define AFE_CONN17_1 0x0944
0239 #define AFE_CONN18_1 0x0948
0240 #define AFE_CONN19_1 0x094c
0241 #define AFE_CONN20_1 0x0950
0242 #define AFE_CONN21_1 0x0954
0243 #define AFE_CONN22_1 0x0958
0244 #define AFE_CONN23_1 0x095c
0245 #define AFE_CONN24_1 0x0960
0246 #define AFE_CONN25_1 0x0964
0247 #define AFE_CONN26_1 0x0968
0248 #define AFE_CONN27_1 0x096c
0249 #define AFE_CONN28_1 0x0970
0250 #define AFE_CONN29_1 0x0974
0251 #define AFE_CONN30_1 0x0978
0252 #define AFE_CONN31_1 0x097c
0253 #define AFE_CONN32_1 0x0980
0254 #define AFE_CONN33_1 0x0984
0255 #define AFE_CONN34_1 0x0988
0256 #define AFE_CONN_RS_1 0x098c
0257 #define AFE_CONN_DI_1 0x0990
0258 #define AFE_CONN_24BIT_1 0x0994
0259 #define AFE_CONN_REG 0x0998
0260 #define AFE_CONN35 0x09a0
0261 #define AFE_CONN36 0x09a4
0262 #define AFE_CONN37 0x09a8
0263 #define AFE_CONN38 0x09ac
0264 #define AFE_CONN35_1 0x09b0
0265 #define AFE_CONN36_1 0x09b4
0266 #define AFE_CONN37_1 0x09b8
0267 #define AFE_CONN38_1 0x09bc
0268 #define AFE_CONN39 0x09c0
0269 #define AFE_CONN40 0x09c4
0270 #define AFE_CONN41 0x09c8
0271 #define AFE_CONN42 0x09cc
0272 #define AFE_CONN39_1 0x09e0
0273 #define AFE_CONN40_1 0x09e4
0274 #define AFE_CONN41_1 0x09e8
0275 #define AFE_CONN42_1 0x09ec
0276 #define AFE_I2S_CON4 0x09f8
0277 #define AFE_ADDA6_TOP_CON0 0x0a80
0278 #define AFE_ADDA6_UL_SRC_CON0 0x0a84
0279 #define AFE_ADD6_UL_SRC_CON1 0x0a88
0280 #define AFE_ADDA6_SRC_DEBUG 0x0a8c
0281 #define AFE_ADDA6_SRC_DEBUG_MON0 0x0a90
0282 #define AFE_ADDA6_ULCF_CFG_02_01 0x0aa0
0283 #define AFE_ADDA6_ULCF_CFG_04_03 0x0aa4
0284 #define AFE_ADDA6_ULCF_CFG_06_05 0x0aa8
0285 #define AFE_ADDA6_ULCF_CFG_08_07 0x0aac
0286 #define AFE_ADDA6_ULCF_CFG_10_09 0x0ab0
0287 #define AFE_ADDA6_ULCF_CFG_12_11 0x0ab4
0288 #define AFE_ADDA6_ULCF_CFG_14_13 0x0ab8
0289 #define AFE_ADDA6_ULCF_CFG_16_15 0x0abc
0290 #define AFE_ADDA6_ULCF_CFG_18_17 0x0ac0
0291 #define AFE_ADDA6_ULCF_CFG_20_19 0x0ac4
0292 #define AFE_ADDA6_ULCF_CFG_22_21 0x0ac8
0293 #define AFE_ADDA6_ULCF_CFG_24_23 0x0acc
0294 #define AFE_ADDA6_ULCF_CFG_26_25 0x0ad0
0295 #define AFE_ADDA6_ULCF_CFG_28_27 0x0ad4
0296 #define AFE_ADDA6_ULCF_CFG_30_29 0x0ad8
0297 #define AFE_ADD6A_UL_SRC_MON0 0x0ae4
0298 #define AFE_ADDA6_UL_SRC_MON1 0x0ae8
0299 #define AFE_CONN43 0x0af8
0300 #define AFE_CONN43_1 0x0afc
0301 #define AFE_DL1_BASE_MSB 0x0b00
0302 #define AFE_DL1_CUR_MSB 0x0b04
0303 #define AFE_DL1_END_MSB 0x0b08
0304 #define AFE_DL2_BASE_MSB 0x0b10
0305 #define AFE_DL2_CUR_MSB 0x0b14
0306 #define AFE_DL2_END_MSB 0x0b18
0307 #define AFE_AWB_BASE_MSB 0x0b20
0308 #define AFE_AWB_END_MSB 0x0b28
0309 #define AFE_AWB_CUR_MSB 0x0b2c
0310 #define AFE_VUL_BASE_MSB 0x0b30
0311 #define AFE_VUL_END_MSB 0x0b38
0312 #define AFE_VUL_CUR_MSB 0x0b3c
0313 #define AFE_VUL2_BASE_MSB 0x0b50
0314 #define AFE_VUL2_END_MSB 0x0b58
0315 #define AFE_VUL2_CUR_MSB 0x0b5c
0316 #define AFE_MOD_DAI_BASE_MSB 0x0b60
0317 #define AFE_MOD_DAI_END_MSB 0x0b68
0318 #define AFE_MOD_DAI_CUR_MSB 0x0b6c
0319 #define AFE_VUL_D2_BASE_MSB 0x0b80
0320 #define AFE_VUL_D2_END_MSB 0x0b88
0321 #define AFE_VUL_D2_CUR_MSB 0x0b8c
0322 #define AFE_DL3_BASE_MSB 0x0b90
0323 #define AFE_DL3_CUR_MSB 0x0b94
0324 #define AFE_DL3_END_MSB 0x0b98
0325 #define AFE_HDMI_OUT_BASE_MSB 0x0ba4
0326 #define AFE_HDMI_OUT_CUR_MSB 0x0ba8
0327 #define AFE_HDMI_OUT_END_MSB 0x0bac
0328 #define AFE_AWB2_BASE 0x0bd0
0329 #define AFE_AWB2_END 0x0bd8
0330 #define AFE_AWB2_CUR 0x0bdc
0331 #define AFE_AWB2_BASE_MSB 0x0be0
0332 #define AFE_AWB2_END_MSB 0x0be8
0333 #define AFE_AWB2_CUR_MSB 0x0bec
0334 #define AFE_ADDA_DL_SDM_DCCOMP_CON 0x0c50
0335 #define AFE_ADDA_DL_SDM_TEST 0x0c54
0336 #define AFE_ADDA_DL_DC_COMP_CFG0 0x0c58
0337 #define AFE_ADDA_DL_DC_COMP_CFG1 0x0c5c
0338 #define AFE_ADDA_DL_SDM_FIFO_MON 0x0c60
0339 #define AFE_ADDA_DL_SRC_LCH_MON 0x0c64
0340 #define AFE_ADDA_DL_SRC_RCH_MON 0x0c68
0341 #define AFE_ADDA_DL_SDM_OUT_MON 0x0c6c
0342 #define AFE_CONNSYS_I2S_CON 0x0c78
0343 #define AFE_CONNSYS_I2S_MON 0x0c7c
0344 #define AFE_ASRC_2CH_CON0 0x0c80
0345 #define AFE_ASRC_2CH_CON1 0x0c84
0346 #define AFE_ASRC_2CH_CON2 0x0c88
0347 #define AFE_ASRC_2CH_CON3 0x0c8c
0348 #define AFE_ASRC_2CH_CON4 0x0c90
0349 #define AFE_ASRC_2CH_CON5 0x0c94
0350 #define AFE_ASRC_2CH_CON6 0x0c98
0351 #define AFE_ASRC_2CH_CON7 0x0c9c
0352 #define AFE_ASRC_2CH_CON8 0x0ca0
0353 #define AFE_ASRC_2CH_CON9 0x0ca4
0354 #define AFE_ASRC_2CH_CON10 0x0ca8
0355 #define AFE_ADDA6_IIR_COEF_02_01 0x0ce0
0356 #define AFE_ADDA6_IIR_COEF_04_03 0x0ce4
0357 #define AFE_ADDA6_IIR_COEF_06_05 0x0ce8
0358 #define AFE_ADDA6_IIR_COEF_08_07 0x0cec
0359 #define AFE_ADDA6_IIR_COEF_10_09 0x0cf0
0360 #define AFE_ADDA_PREDIS_CON2 0x0d40
0361 #define AFE_ADDA_PREDIS_CON3 0x0d44
0362 #define AFE_MEMIF_MON12 0x0d70
0363 #define AFE_MEMIF_MON13 0x0d74
0364 #define AFE_MEMIF_MON14 0x0d78
0365 #define AFE_MEMIF_MON15 0x0d7c
0366 #define AFE_MEMIF_MON16 0x0d80
0367 #define AFE_MEMIF_MON17 0x0d84
0368 #define AFE_MEMIF_MON18 0x0d88
0369 #define AFE_MEMIF_MON19 0x0d8c
0370 #define AFE_MEMIF_MON20 0x0d90
0371 #define AFE_MEMIF_MON21 0x0d94
0372 #define AFE_MEMIF_MON22 0x0d98
0373 #define AFE_MEMIF_MON23 0x0d9c
0374 #define AFE_MEMIF_MON24 0x0da0
0375 #define AFE_HD_ENGEN_ENABLE 0x0dd0
0376 #define AFE_ADDA_MTKAIF_CFG0 0x0e00
0377 #define AFE_ADDA_MTKAIF_TX_CFG1 0x0e14
0378 #define AFE_ADDA_MTKAIF_RX_CFG0 0x0e20
0379 #define AFE_ADDA_MTKAIF_RX_CFG1 0x0e24
0380 #define AFE_ADDA_MTKAIF_RX_CFG2 0x0e28
0381 #define AFE_ADDA_MTKAIF_MON0 0x0e34
0382 #define AFE_ADDA_MTKAIF_MON1 0x0e38
0383 #define AFE_AUD_PAD_TOP 0x0e40
0384 #define AFE_GENERAL1_ASRC_2CH_CON0 0x0e80
0385 #define AFE_GENERAL1_ASRC_2CH_CON1 0x0e84
0386 #define AFE_GENERAL1_ASRC_2CH_CON2 0x0e88
0387 #define AFE_GENERAL1_ASRC_2CH_CON3 0x0e8c
0388 #define AFE_GENERAL1_ASRC_2CH_CON4 0x0e90
0389 #define AFE_GENERAL1_ASRC_2CH_CON5 0x0e94
0390 #define AFE_GENERAL1_ASRC_2CH_CON6 0x0e98
0391 #define AFE_GENERAL1_ASRC_2CH_CON7 0x0e9c
0392 #define AFE_GENERAL1_ASRC_2CH_CON8 0x0ea0
0393 #define AFE_GENERAL1_ASRC_2CH_CON9 0x0ea4
0394 #define AFE_GENERAL1_ASRC_2CH_CON10 0x0ea8
0395 #define AFE_GENERAL1_ASRC_2CH_CON12 0x0eb0
0396 #define AFE_GENERAL1_ASRC_2CH_CON13 0x0eb4
0397 #define GENERAL_ASRC_MODE 0x0eb8
0398 #define GENERAL_ASRC_EN_ON 0x0ebc
0399 #define AFE_GENERAL2_ASRC_2CH_CON0 0x0f00
0400 #define AFE_GENERAL2_ASRC_2CH_CON1 0x0f04
0401 #define AFE_GENERAL2_ASRC_2CH_CON2 0x0f08
0402 #define AFE_GENERAL2_ASRC_2CH_CON3 0x0f0c
0403 #define AFE_GENERAL2_ASRC_2CH_CON4 0x0f10
0404 #define AFE_GENERAL2_ASRC_2CH_CON5 0x0f14
0405 #define AFE_GENERAL2_ASRC_2CH_CON6 0x0f18
0406 #define AFE_GENERAL2_ASRC_2CH_CON7 0x0f1c
0407 #define AFE_GENERAL2_ASRC_2CH_CON8 0x0f20
0408 #define AFE_GENERAL2_ASRC_2CH_CON9 0x0f24
0409 #define AFE_GENERAL2_ASRC_2CH_CON10 0x0f28
0410 #define AFE_GENERAL2_ASRC_2CH_CON12 0x0f30
0411 #define AFE_GENERAL2_ASRC_2CH_CON13 0x0f34
0412
0413 #define AFE_MAX_REGISTER AFE_GENERAL2_ASRC_2CH_CON13
0414 #define AFE_IRQ_STATUS_BITS 0x1fff
0415
0416
0417 #define BCK_INVERSE_SFT 3
0418 #define BCK_INVERSE_MASK 0x1
0419 #define BCK_INVERSE_MASK_SFT (0x1 << 3)
0420
0421
0422 #define AWB2_ON_SFT 29
0423 #define AWB2_ON_MASK 0x1
0424 #define AWB2_ON_MASK_SFT (0x1 << 29)
0425 #define VUL2_ON_SFT 27
0426 #define VUL2_ON_MASK 0x1
0427 #define VUL2_ON_MASK_SFT (0x1 << 27)
0428 #define MOD_DAI_DUP_WR_SFT 26
0429 #define MOD_DAI_DUP_WR_MASK 0x1
0430 #define MOD_DAI_DUP_WR_MASK_SFT (0x1 << 26)
0431 #define VUL12_MODE_SFT 20
0432 #define VUL12_MODE_MASK 0xf
0433 #define VUL12_MODE_MASK_SFT (0xf << 20)
0434 #define VUL12_R_MONO_SFT 11
0435 #define VUL12_R_MONO_MASK 0x1
0436 #define VUL12_R_MONO_MASK_SFT (0x1 << 11)
0437 #define VUL12_MONO_SFT 10
0438 #define VUL12_MONO_MASK 0x1
0439 #define VUL12_MONO_MASK_SFT (0x1 << 10)
0440 #define VUL12_ON_SFT 9
0441 #define VUL12_ON_MASK 0x1
0442 #define VUL12_ON_MASK_SFT (0x1 << 9)
0443 #define MOD_DAI_ON_SFT 7
0444 #define MOD_DAI_ON_MASK 0x1
0445 #define MOD_DAI_ON_MASK_SFT (0x1 << 7)
0446 #define AWB_ON_SFT 6
0447 #define AWB_ON_MASK 0x1
0448 #define AWB_ON_MASK_SFT (0x1 << 6)
0449 #define DL3_ON_SFT 5
0450 #define DL3_ON_MASK 0x1
0451 #define DL3_ON_MASK_SFT (0x1 << 5)
0452 #define VUL_ON_SFT 3
0453 #define VUL_ON_MASK 0x1
0454 #define VUL_ON_MASK_SFT (0x1 << 3)
0455 #define DL2_ON_SFT 2
0456 #define DL2_ON_MASK 0x1
0457 #define DL2_ON_MASK_SFT (0x1 << 2)
0458 #define DL1_ON_SFT 1
0459 #define DL1_ON_MASK 0x1
0460 #define DL1_ON_MASK_SFT (0x1 << 1)
0461 #define AFE_ON_SFT 0
0462 #define AFE_ON_MASK 0x1
0463 #define AFE_ON_MASK_SFT (0x1 << 0)
0464
0465
0466 #define MOD_DAI_MODE_SFT 30
0467 #define MOD_DAI_MODE_MASK 0x3
0468 #define MOD_DAI_MODE_MASK_SFT (0x3 << 30)
0469 #define VUL_R_MONO_SFT 28
0470 #define VUL_R_MONO_MASK 0x1
0471 #define VUL_R_MONO_MASK_SFT (0x1 << 28)
0472 #define VUL_DATA_SFT 27
0473 #define VUL_DATA_MASK 0x1
0474 #define VUL_DATA_MASK_SFT (0x1 << 27)
0475 #define AWB_R_MONO_SFT 25
0476 #define AWB_R_MONO_MASK 0x1
0477 #define AWB_R_MONO_MASK_SFT (0x1 << 25)
0478 #define AWB_DATA_SFT 24
0479 #define AWB_DATA_MASK 0x1
0480 #define AWB_DATA_MASK_SFT (0x1 << 24)
0481 #define DL3_DATA_SFT 23
0482 #define DL3_DATA_MASK 0x1
0483 #define DL3_DATA_MASK_SFT (0x1 << 23)
0484 #define DL2_DATA_SFT 22
0485 #define DL2_DATA_MASK 0x1
0486 #define DL2_DATA_MASK_SFT (0x1 << 22)
0487 #define DL1_DATA_SFT 21
0488 #define DL1_DATA_MASK 0x1
0489 #define DL1_DATA_MASK_SFT (0x1 << 21)
0490 #define VUL_MODE_SFT 16
0491 #define VUL_MODE_MASK 0xf
0492 #define VUL_MODE_MASK_SFT (0xf << 16)
0493 #define AWB_MODE_SFT 12
0494 #define AWB_MODE_MASK 0xf
0495 #define AWB_MODE_MASK_SFT (0xf << 12)
0496 #define I2S_MODE_SFT 8
0497 #define I2S_MODE_MASK 0xf
0498 #define I2S_MODE_MASK_SFT (0xf << 8)
0499 #define DL2_MODE_SFT 4
0500 #define DL2_MODE_MASK 0xf
0501 #define DL2_MODE_MASK_SFT (0xf << 4)
0502 #define DL1_MODE_SFT 0
0503 #define DL1_MODE_MASK 0xf
0504 #define DL1_MODE_MASK_SFT (0xf << 0)
0505
0506
0507 #define AWB2_R_MONO_SFT 21
0508 #define AWB2_R_MONO_MASK 0x1
0509 #define AWB2_R_MONO_MASK_SFT (0x1 << 21)
0510 #define AWB2_DATA_SFT 20
0511 #define AWB2_DATA_MASK 0x1
0512 #define AWB2_DATA_MASK_SFT (0x1 << 20)
0513 #define AWB2_MODE_SFT 16
0514 #define AWB2_MODE_MASK 0xf
0515 #define AWB2_MODE_MASK_SFT (0xf << 16)
0516 #define DL3_MODE_SFT 8
0517 #define DL3_MODE_MASK 0xf
0518 #define DL3_MODE_MASK_SFT (0xf << 8)
0519 #define VUL2_MODE_SFT 4
0520 #define VUL2_MODE_MASK 0xf
0521 #define VUL2_MODE_MASK_SFT (0xf << 4)
0522 #define VUL2_R_MONO_SFT 1
0523 #define VUL2_R_MONO_MASK 0x1
0524 #define VUL2_R_MONO_MASK_SFT (0x1 << 1)
0525 #define VUL2_DATA_SFT 0
0526 #define VUL2_DATA_MASK 0x1
0527 #define VUL2_DATA_MASK_SFT (0x1 << 0)
0528
0529
0530 #define AFE_ON_RETM_SFT 0
0531 #define AFE_ON_RETM_MASK 0x1
0532 #define AFE_ON_RETM_MASK_SFT (0x1 << 0)
0533
0534
0535 #define BCK_NEG_EG_LATCH_SFT 30
0536 #define BCK_NEG_EG_LATCH_MASK 0x1
0537 #define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30)
0538 #define BCK_INV_SFT 29
0539 #define BCK_INV_MASK 0x1
0540 #define BCK_INV_MASK_SFT (0x1 << 29)
0541 #define I2SIN_PAD_SEL_SFT 28
0542 #define I2SIN_PAD_SEL_MASK 0x1
0543 #define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28)
0544 #define I2S_LOOPBACK_SFT 20
0545 #define I2S_LOOPBACK_MASK 0x1
0546 #define I2S_LOOPBACK_MASK_SFT (0x1 << 20)
0547 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
0548 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
0549 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
0550 #define I2S1_HD_EN_SFT 12
0551 #define I2S1_HD_EN_MASK 0x1
0552 #define I2S1_HD_EN_MASK_SFT (0x1 << 12)
0553 #define INV_PAD_CTRL_SFT 7
0554 #define INV_PAD_CTRL_MASK 0x1
0555 #define INV_PAD_CTRL_MASK_SFT (0x1 << 7)
0556 #define I2S_BYPSRC_SFT 6
0557 #define I2S_BYPSRC_MASK 0x1
0558 #define I2S_BYPSRC_MASK_SFT (0x1 << 6)
0559 #define INV_LRCK_SFT 5
0560 #define INV_LRCK_MASK 0x1
0561 #define INV_LRCK_MASK_SFT (0x1 << 5)
0562 #define I2S_FMT_SFT 3
0563 #define I2S_FMT_MASK 0x1
0564 #define I2S_FMT_MASK_SFT (0x1 << 3)
0565 #define I2S_SRC_SFT 2
0566 #define I2S_SRC_MASK 0x1
0567 #define I2S_SRC_MASK_SFT (0x1 << 2)
0568 #define I2S_WLEN_SFT 1
0569 #define I2S_WLEN_MASK 0x1
0570 #define I2S_WLEN_MASK_SFT (0x1 << 1)
0571 #define I2S_EN_SFT 0
0572 #define I2S_EN_MASK 0x1
0573 #define I2S_EN_MASK_SFT (0x1 << 0)
0574
0575
0576 #define I2S2_LR_SWAP_SFT 31
0577 #define I2S2_LR_SWAP_MASK 0x1
0578 #define I2S2_LR_SWAP_MASK_SFT (0x1 << 31)
0579 #define I2S2_SEL_O19_O20_SFT 18
0580 #define I2S2_SEL_O19_O20_MASK 0x1
0581 #define I2S2_SEL_O19_O20_MASK_SFT (0x1 << 18)
0582 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
0583 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
0584 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
0585 #define I2S2_SEL_O03_O04_SFT 16
0586 #define I2S2_SEL_O03_O04_MASK 0x1
0587 #define I2S2_SEL_O03_O04_MASK_SFT (0x1 << 16)
0588 #define I2S2_32BIT_EN_SFT 13
0589 #define I2S2_32BIT_EN_MASK 0x1
0590 #define I2S2_32BIT_EN_MASK_SFT (0x1 << 13)
0591 #define I2S2_HD_EN_SFT 12
0592 #define I2S2_HD_EN_MASK 0x1
0593 #define I2S2_HD_EN_MASK_SFT (0x1 << 12)
0594 #define I2S2_OUT_MODE_SFT 8
0595 #define I2S2_OUT_MODE_MASK 0xf
0596 #define I2S2_OUT_MODE_MASK_SFT (0xf << 8)
0597 #define INV_LRCK_SFT 5
0598 #define INV_LRCK_MASK 0x1
0599 #define INV_LRCK_MASK_SFT (0x1 << 5)
0600 #define I2S2_FMT_SFT 3
0601 #define I2S2_FMT_MASK 0x1
0602 #define I2S2_FMT_MASK_SFT (0x1 << 3)
0603 #define I2S2_WLEN_SFT 1
0604 #define I2S2_WLEN_MASK 0x1
0605 #define I2S2_WLEN_MASK_SFT (0x1 << 1)
0606 #define I2S2_EN_SFT 0
0607 #define I2S2_EN_MASK 0x1
0608 #define I2S2_EN_MASK_SFT (0x1 << 0)
0609
0610
0611 #define I2S3_LR_SWAP_SFT 31
0612 #define I2S3_LR_SWAP_MASK 0x1
0613 #define I2S3_LR_SWAP_MASK_SFT (0x1 << 31)
0614 #define I2S3_UPDATE_WORD_SFT 24
0615 #define I2S3_UPDATE_WORD_MASK 0x1f
0616 #define I2S3_UPDATE_WORD_MASK_SFT (0x1f << 24)
0617 #define I2S3_BCK_INV_SFT 23
0618 #define I2S3_BCK_INV_MASK 0x1
0619 #define I2S3_BCK_INV_MASK_SFT (0x1 << 23)
0620 #define I2S3_FPGA_BIT_TEST_SFT 22
0621 #define I2S3_FPGA_BIT_TEST_MASK 0x1
0622 #define I2S3_FPGA_BIT_TEST_MASK_SFT (0x1 << 22)
0623 #define I2S3_FPGA_BIT_SFT 21
0624 #define I2S3_FPGA_BIT_MASK 0x1
0625 #define I2S3_FPGA_BIT_MASK_SFT (0x1 << 21)
0626 #define I2S3_LOOPBACK_SFT 20
0627 #define I2S3_LOOPBACK_MASK 0x1
0628 #define I2S3_LOOPBACK_MASK_SFT (0x1 << 20)
0629 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
0630 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
0631 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
0632 #define I2S3_HD_EN_SFT 12
0633 #define I2S3_HD_EN_MASK 0x1
0634 #define I2S3_HD_EN_MASK_SFT (0x1 << 12)
0635 #define I2S3_OUT_MODE_SFT 8
0636 #define I2S3_OUT_MODE_MASK 0xf
0637 #define I2S3_OUT_MODE_MASK_SFT (0xf << 8)
0638 #define I2S3_FMT_SFT 3
0639 #define I2S3_FMT_MASK 0x1
0640 #define I2S3_FMT_MASK_SFT (0x1 << 3)
0641 #define I2S3_WLEN_SFT 1
0642 #define I2S3_WLEN_MASK 0x1
0643 #define I2S3_WLEN_MASK_SFT (0x1 << 1)
0644 #define I2S3_EN_SFT 0
0645 #define I2S3_EN_MASK 0x1
0646 #define I2S3_EN_MASK_SFT (0x1 << 0)
0647
0648
0649 #define I2S4_LR_SWAP_SFT 31
0650 #define I2S4_LR_SWAP_MASK 0x1
0651 #define I2S4_LR_SWAP_MASK_SFT (0x1 << 31)
0652 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
0653 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
0654 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
0655 #define I2S4_32BIT_EN_SFT 13
0656 #define I2S4_32BIT_EN_MASK 0x1
0657 #define I2S4_32BIT_EN_MASK_SFT (0x1 << 13)
0658 #define I2S4_HD_EN_SFT 12
0659 #define I2S4_HD_EN_MASK 0x1
0660 #define I2S4_HD_EN_MASK_SFT (0x1 << 12)
0661 #define I2S4_OUT_MODE_SFT 8
0662 #define I2S4_OUT_MODE_MASK 0xf
0663 #define I2S4_OUT_MODE_MASK_SFT (0xf << 8)
0664 #define INV_LRCK_SFT 5
0665 #define INV_LRCK_MASK 0x1
0666 #define INV_LRCK_MASK_SFT (0x1 << 5)
0667 #define I2S4_FMT_SFT 3
0668 #define I2S4_FMT_MASK 0x1
0669 #define I2S4_FMT_MASK_SFT (0x1 << 3)
0670 #define I2S4_WLEN_SFT 1
0671 #define I2S4_WLEN_MASK 0x1
0672 #define I2S4_WLEN_MASK_SFT (0x1 << 1)
0673 #define I2S4_EN_SFT 0
0674 #define I2S4_EN_MASK 0x1
0675 #define I2S4_EN_MASK_SFT (0x1 << 0)
0676
0677
0678 #define I2S5_LR_SWAP_SFT 31
0679 #define I2S5_LR_SWAP_MASK 0x1
0680 #define I2S5_LR_SWAP_MASK_SFT (0x1 << 31)
0681 #define I2S_LOOPBACK_SFT 20
0682 #define I2S_LOOPBACK_MASK 0x1
0683 #define I2S_LOOPBACK_MASK_SFT (0x1 << 20)
0684 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
0685 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
0686 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
0687 #define I2S5_32BIT_EN_SFT 13
0688 #define I2S5_32BIT_EN_MASK 0x1
0689 #define I2S5_32BIT_EN_MASK_SFT (0x1 << 13)
0690 #define I2S5_HD_EN_SFT 12
0691 #define I2S5_HD_EN_MASK 0x1
0692 #define I2S5_HD_EN_MASK_SFT (0x1 << 12)
0693 #define I2S5_OUT_MODE_SFT 8
0694 #define I2S5_OUT_MODE_MASK 0xf
0695 #define I2S5_OUT_MODE_MASK_SFT (0xf << 8)
0696 #define INV_LRCK_SFT 5
0697 #define INV_LRCK_MASK 0x1
0698 #define INV_LRCK_MASK_SFT (0x1 << 5)
0699 #define I2S5_FMT_SFT 3
0700 #define I2S5_FMT_MASK 0x1
0701 #define I2S5_FMT_MASK_SFT (0x1 << 3)
0702 #define I2S5_WLEN_SFT 1
0703 #define I2S5_WLEN_MASK 0x1
0704 #define I2S5_WLEN_MASK_SFT (0x1 << 1)
0705 #define I2S5_EN_SFT 0
0706 #define I2S5_EN_MASK 0x1
0707 #define I2S5_EN_MASK_SFT (0x1 << 0)
0708
0709
0710 #define GAIN1_SAMPLE_PER_STEP_SFT 8
0711 #define GAIN1_SAMPLE_PER_STEP_MASK 0xff
0712 #define GAIN1_SAMPLE_PER_STEP_MASK_SFT (0xff << 8)
0713 #define GAIN1_MODE_SFT 4
0714 #define GAIN1_MODE_MASK 0xf
0715 #define GAIN1_MODE_MASK_SFT (0xf << 4)
0716 #define GAIN1_ON_SFT 0
0717 #define GAIN1_ON_MASK 0x1
0718 #define GAIN1_ON_MASK_SFT (0x1 << 0)
0719
0720
0721 #define GAIN1_TARGET_SFT 0
0722 #define GAIN1_TARGET_MASK 0xfffff
0723 #define GAIN1_TARGET_MASK_SFT (0xfffff << 0)
0724
0725
0726 #define GAIN2_SAMPLE_PER_STEP_SFT 8
0727 #define GAIN2_SAMPLE_PER_STEP_MASK 0xff
0728 #define GAIN2_SAMPLE_PER_STEP_MASK_SFT (0xff << 8)
0729 #define GAIN2_MODE_SFT 4
0730 #define GAIN2_MODE_MASK 0xf
0731 #define GAIN2_MODE_MASK_SFT (0xf << 4)
0732 #define GAIN2_ON_SFT 0
0733 #define GAIN2_ON_MASK 0x1
0734 #define GAIN2_ON_MASK_SFT (0x1 << 0)
0735
0736
0737 #define GAIN2_TARGET_SFT 0
0738 #define GAIN2_TARGET_MASK 0xfffff
0739 #define GAIN2_TARGET_MASK_SFT (0xfffff << 0)
0740
0741
0742 #define AFE_GAIN1_CUR_SFT 0
0743 #define AFE_GAIN1_CUR_MASK 0xfffff
0744 #define AFE_GAIN1_CUR_MASK_SFT (0xfffff << 0)
0745
0746
0747 #define AFE_GAIN2_CUR_SFT 0
0748 #define AFE_GAIN2_CUR_MASK 0xfffff
0749 #define AFE_GAIN2_CUR_MASK_SFT (0xfffff << 0)
0750
0751
0752 #define AWB2_HD_SFT 28
0753 #define AWB2_HD_MASK 0x3
0754 #define AWB2_HD_MASK_SFT (0x3 << 28)
0755 #define HDMI_HD_SFT 20
0756 #define HDMI_HD_MASK 0x3
0757 #define HDMI_HD_MASK_SFT (0x3 << 20)
0758 #define MOD_DAI_HD_SFT 18
0759 #define MOD_DAI_HD_MASK 0x3
0760 #define MOD_DAI_HD_MASK_SFT (0x3 << 18)
0761 #define DAI_HD_SFT 16
0762 #define DAI_HD_MASK 0x3
0763 #define DAI_HD_MASK_SFT (0x3 << 16)
0764 #define VUL2_HD_SFT 14
0765 #define VUL2_HD_MASK 0x3
0766 #define VUL2_HD_MASK_SFT (0x3 << 14)
0767 #define VUL12_HD_SFT 12
0768 #define VUL12_HD_MASK 0x3
0769 #define VUL12_HD_MASK_SFT (0x3 << 12)
0770 #define VUL_HD_SFT 10
0771 #define VUL_HD_MASK 0x3
0772 #define VUL_HD_MASK_SFT (0x3 << 10)
0773 #define AWB_HD_SFT 8
0774 #define AWB_HD_MASK 0x3
0775 #define AWB_HD_MASK_SFT (0x3 << 8)
0776 #define DL3_HD_SFT 6
0777 #define DL3_HD_MASK 0x3
0778 #define DL3_HD_MASK_SFT (0x3 << 6)
0779 #define DL2_HD_SFT 4
0780 #define DL2_HD_MASK 0x3
0781 #define DL2_HD_MASK_SFT (0x3 << 4)
0782 #define DL1_HD_SFT 0
0783 #define DL1_HD_MASK 0x3
0784 #define DL1_HD_MASK_SFT (0x3 << 0)
0785
0786
0787 #define AWB2_NORMAL_MODE_SFT 30
0788 #define AWB2_NORMAL_MODE_MASK 0x1
0789 #define AWB2_NORMAL_MODE_MASK_SFT (0x1 << 30)
0790 #define HDMI_NORMAL_MODE_SFT 26
0791 #define HDMI_NORMAL_MODE_MASK 0x1
0792 #define HDMI_NORMAL_MODE_MASK_SFT (0x1 << 26)
0793 #define MOD_DAI_NORMAL_MODE_SFT 25
0794 #define MOD_DAI_NORMAL_MODE_MASK 0x1
0795 #define MOD_DAI_NORMAL_MODE_MASK_SFT (0x1 << 25)
0796 #define DAI_NORMAL_MODE_SFT 24
0797 #define DAI_NORMAL_MODE_MASK 0x1
0798 #define DAI_NORMAL_MODE_MASK_SFT (0x1 << 24)
0799 #define VUL2_NORMAL_MODE_SFT 23
0800 #define VUL2_NORMAL_MODE_MASK 0x1
0801 #define VUL2_NORMAL_MODE_MASK_SFT (0x1 << 23)
0802 #define VUL12_NORMAL_MODE_SFT 22
0803 #define VUL12_NORMAL_MODE_MASK 0x1
0804 #define VUL12_NORMAL_MODE_MASK_SFT (0x1 << 22)
0805 #define VUL_NORMAL_MODE_SFT 21
0806 #define VUL_NORMAL_MODE_MASK 0x1
0807 #define VUL_NORMAL_MODE_MASK_SFT (0x1 << 21)
0808 #define AWB_NORMAL_MODE_SFT 20
0809 #define AWB_NORMAL_MODE_MASK 0x1
0810 #define AWB_NORMAL_MODE_MASK_SFT (0x1 << 20)
0811 #define DL3_NORMAL_MODE_SFT 19
0812 #define DL3_NORMAL_MODE_MASK 0x1
0813 #define DL3_NORMAL_MODE_MASK_SFT (0x1 << 19)
0814 #define DL2_NORMAL_MODE_SFT 18
0815 #define DL2_NORMAL_MODE_MASK 0x1
0816 #define DL2_NORMAL_MODE_MASK_SFT (0x1 << 18)
0817 #define DL1_NORMAL_MODE_SFT 16
0818 #define DL1_NORMAL_MODE_MASK 0x1
0819 #define DL1_NORMAL_MODE_MASK_SFT (0x1 << 16)
0820 #define RESERVED1_SFT 15
0821 #define RESERVED1_MASK 0x1
0822 #define RESERVED1_MASK_SFT (0x1 << 15)
0823 #define AWB2_ALIGN_SFT 14
0824 #define AWB2_ALIGN_MASK 0x1
0825 #define AWB2_ALIGN_MASK_SFT (0x1 << 14)
0826 #define HDMI_HD_ALIGN_SFT 10
0827 #define HDMI_HD_ALIGN_MASK 0x1
0828 #define HDMI_HD_ALIGN_MASK_SFT (0x1 << 10)
0829 #define MOD_DAI_HD_ALIGN_SFT 9
0830 #define MOD_DAI_HD_ALIGN_MASK 0x1
0831 #define MOD_DAI_HD_ALIGN_MASK_SFT (0x1 << 9)
0832 #define VUL2_HD_ALIGN_SFT 7
0833 #define VUL2_HD_ALIGN_MASK 0x1
0834 #define VUL2_HD_ALIGN_MASK_SFT (0x1 << 7)
0835 #define VUL12_HD_ALIGN_SFT 6
0836 #define VUL12_HD_ALIGN_MASK 0x1
0837 #define VUL12_HD_ALIGN_MASK_SFT (0x1 << 6)
0838 #define VUL_HD_ALIGN_SFT 5
0839 #define VUL_HD_ALIGN_MASK 0x1
0840 #define VUL_HD_ALIGN_MASK_SFT (0x1 << 5)
0841 #define AWB_HD_ALIGN_SFT 4
0842 #define AWB_HD_ALIGN_MASK 0x1
0843 #define AWB_HD_ALIGN_MASK_SFT (0x1 << 4)
0844 #define DL3_HD_ALIGN_SFT 3
0845 #define DL3_HD_ALIGN_MASK 0x1
0846 #define DL3_HD_ALIGN_MASK_SFT (0x1 << 3)
0847 #define DL2_HD_ALIGN_SFT 2
0848 #define DL2_HD_ALIGN_MASK 0x1
0849 #define DL2_HD_ALIGN_MASK_SFT (0x1 << 2)
0850 #define DL1_HD_ALIGN_SFT 0
0851 #define DL1_HD_ALIGN_MASK 0x1
0852 #define DL1_HD_ALIGN_MASK_SFT (0x1 << 0)
0853
0854
0855 #define PCM_FIX_VALUE_SEL_SFT 31
0856 #define PCM_FIX_VALUE_SEL_MASK 0x1
0857 #define PCM_FIX_VALUE_SEL_MASK_SFT (0x1 << 31)
0858 #define PCM_BUFFER_LOOPBACK_SFT 30
0859 #define PCM_BUFFER_LOOPBACK_MASK 0x1
0860 #define PCM_BUFFER_LOOPBACK_MASK_SFT (0x1 << 30)
0861 #define PCM_PARALLEL_LOOPBACK_SFT 29
0862 #define PCM_PARALLEL_LOOPBACK_MASK 0x1
0863 #define PCM_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 29)
0864 #define PCM_SERIAL_LOOPBACK_SFT 28
0865 #define PCM_SERIAL_LOOPBACK_MASK 0x1
0866 #define PCM_SERIAL_LOOPBACK_MASK_SFT (0x1 << 28)
0867 #define PCM_DAI_PCM_LOOPBACK_SFT 27
0868 #define PCM_DAI_PCM_LOOPBACK_MASK 0x1
0869 #define PCM_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 27)
0870 #define PCM_I2S_PCM_LOOPBACK_SFT 26
0871 #define PCM_I2S_PCM_LOOPBACK_MASK 0x1
0872 #define PCM_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 26)
0873 #define PCM_SYNC_DELSEL_SFT 25
0874 #define PCM_SYNC_DELSEL_MASK 0x1
0875 #define PCM_SYNC_DELSEL_MASK_SFT (0x1 << 25)
0876 #define PCM_TX_LR_SWAP_SFT 24
0877 #define PCM_TX_LR_SWAP_MASK 0x1
0878 #define PCM_TX_LR_SWAP_MASK_SFT (0x1 << 24)
0879 #define PCM_SYNC_OUT_INV_SFT 23
0880 #define PCM_SYNC_OUT_INV_MASK 0x1
0881 #define PCM_SYNC_OUT_INV_MASK_SFT (0x1 << 23)
0882 #define PCM_BCLK_OUT_INV_SFT 22
0883 #define PCM_BCLK_OUT_INV_MASK 0x1
0884 #define PCM_BCLK_OUT_INV_MASK_SFT (0x1 << 22)
0885 #define PCM_SYNC_IN_INV_SFT 21
0886 #define PCM_SYNC_IN_INV_MASK 0x1
0887 #define PCM_SYNC_IN_INV_MASK_SFT (0x1 << 21)
0888 #define PCM_BCLK_IN_INV_SFT 20
0889 #define PCM_BCLK_IN_INV_MASK 0x1
0890 #define PCM_BCLK_IN_INV_MASK_SFT (0x1 << 20)
0891 #define PCM_TX_LCH_RPT_SFT 19
0892 #define PCM_TX_LCH_RPT_MASK 0x1
0893 #define PCM_TX_LCH_RPT_MASK_SFT (0x1 << 19)
0894 #define PCM_VBT_16K_MODE_SFT 18
0895 #define PCM_VBT_16K_MODE_MASK 0x1
0896 #define PCM_VBT_16K_MODE_MASK_SFT (0x1 << 18)
0897 #define PCM_EXT_MODEM_SFT 17
0898 #define PCM_EXT_MODEM_MASK 0x1
0899 #define PCM_EXT_MODEM_MASK_SFT (0x1 << 17)
0900 #define PCM_24BIT_SFT 16
0901 #define PCM_24BIT_MASK 0x1
0902 #define PCM_24BIT_MASK_SFT (0x1 << 16)
0903 #define PCM_WLEN_SFT 14
0904 #define PCM_WLEN_MASK 0x3
0905 #define PCM_WLEN_MASK_SFT (0x3 << 14)
0906 #define PCM_SYNC_LENGTH_SFT 9
0907 #define PCM_SYNC_LENGTH_MASK 0x1f
0908 #define PCM_SYNC_LENGTH_MASK_SFT (0x1f << 9)
0909 #define PCM_SYNC_TYPE_SFT 8
0910 #define PCM_SYNC_TYPE_MASK 0x1
0911 #define PCM_SYNC_TYPE_MASK_SFT (0x1 << 8)
0912 #define PCM_BT_MODE_SFT 7
0913 #define PCM_BT_MODE_MASK 0x1
0914 #define PCM_BT_MODE_MASK_SFT (0x1 << 7)
0915 #define PCM_BYP_ASRC_SFT 6
0916 #define PCM_BYP_ASRC_MASK 0x1
0917 #define PCM_BYP_ASRC_MASK_SFT (0x1 << 6)
0918 #define PCM_SLAVE_SFT 5
0919 #define PCM_SLAVE_MASK 0x1
0920 #define PCM_SLAVE_MASK_SFT (0x1 << 5)
0921 #define PCM_MODE_SFT 3
0922 #define PCM_MODE_MASK 0x3
0923 #define PCM_MODE_MASK_SFT (0x3 << 3)
0924 #define PCM_FMT_SFT 1
0925 #define PCM_FMT_MASK 0x3
0926 #define PCM_FMT_MASK_SFT (0x3 << 1)
0927 #define PCM_EN_SFT 0
0928 #define PCM_EN_MASK 0x1
0929 #define PCM_EN_MASK_SFT (0x1 << 0)
0930
0931
0932 #define PCM1_TX_FIFO_OV_SFT 31
0933 #define PCM1_TX_FIFO_OV_MASK 0x1
0934 #define PCM1_TX_FIFO_OV_MASK_SFT (0x1 << 31)
0935 #define PCM1_RX_FIFO_OV_SFT 30
0936 #define PCM1_RX_FIFO_OV_MASK 0x1
0937 #define PCM1_RX_FIFO_OV_MASK_SFT (0x1 << 30)
0938 #define PCM2_TX_FIFO_OV_SFT 29
0939 #define PCM2_TX_FIFO_OV_MASK 0x1
0940 #define PCM2_TX_FIFO_OV_MASK_SFT (0x1 << 29)
0941 #define PCM2_RX_FIFO_OV_SFT 28
0942 #define PCM2_RX_FIFO_OV_MASK 0x1
0943 #define PCM2_RX_FIFO_OV_MASK_SFT (0x1 << 28)
0944 #define PCM1_SYNC_GLITCH_SFT 27
0945 #define PCM1_SYNC_GLITCH_MASK 0x1
0946 #define PCM1_SYNC_GLITCH_MASK_SFT (0x1 << 27)
0947 #define PCM2_SYNC_GLITCH_SFT 26
0948 #define PCM2_SYNC_GLITCH_MASK 0x1
0949 #define PCM2_SYNC_GLITCH_MASK_SFT (0x1 << 26)
0950 #define TX3_RCH_DBG_MODE_SFT 17
0951 #define TX3_RCH_DBG_MODE_MASK 0x1
0952 #define TX3_RCH_DBG_MODE_MASK_SFT (0x1 << 17)
0953 #define PCM1_PCM2_LOOPBACK_SFT 16
0954 #define PCM1_PCM2_LOOPBACK_MASK 0x1
0955 #define PCM1_PCM2_LOOPBACK_MASK_SFT (0x1 << 16)
0956 #define DAI_PCM_LOOPBACK_CH_SFT 14
0957 #define DAI_PCM_LOOPBACK_CH_MASK 0x3
0958 #define DAI_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 14)
0959 #define I2S_PCM_LOOPBACK_CH_SFT 12
0960 #define I2S_PCM_LOOPBACK_CH_MASK 0x3
0961 #define I2S_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 12)
0962 #define TX_FIX_VALUE_SFT 0
0963 #define TX_FIX_VALUE_MASK 0xff
0964 #define TX_FIX_VALUE_MASK_SFT (0xff << 0)
0965
0966
0967 #define PCM2_TX_FIX_VALUE_SFT 24
0968 #define PCM2_TX_FIX_VALUE_MASK 0xff
0969 #define PCM2_TX_FIX_VALUE_MASK_SFT (0xff << 24)
0970 #define PCM2_FIX_VALUE_SEL_SFT 23
0971 #define PCM2_FIX_VALUE_SEL_MASK 0x1
0972 #define PCM2_FIX_VALUE_SEL_MASK_SFT (0x1 << 23)
0973 #define PCM2_BUFFER_LOOPBACK_SFT 22
0974 #define PCM2_BUFFER_LOOPBACK_MASK 0x1
0975 #define PCM2_BUFFER_LOOPBACK_MASK_SFT (0x1 << 22)
0976 #define PCM2_PARALLEL_LOOPBACK_SFT 21
0977 #define PCM2_PARALLEL_LOOPBACK_MASK 0x1
0978 #define PCM2_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 21)
0979 #define PCM2_SERIAL_LOOPBACK_SFT 20
0980 #define PCM2_SERIAL_LOOPBACK_MASK 0x1
0981 #define PCM2_SERIAL_LOOPBACK_MASK_SFT (0x1 << 20)
0982 #define PCM2_DAI_PCM_LOOPBACK_SFT 19
0983 #define PCM2_DAI_PCM_LOOPBACK_MASK 0x1
0984 #define PCM2_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 19)
0985 #define PCM2_I2S_PCM_LOOPBACK_SFT 18
0986 #define PCM2_I2S_PCM_LOOPBACK_MASK 0x1
0987 #define PCM2_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 18)
0988 #define PCM2_SYNC_DELSEL_SFT 17
0989 #define PCM2_SYNC_DELSEL_MASK 0x1
0990 #define PCM2_SYNC_DELSEL_MASK_SFT (0x1 << 17)
0991 #define PCM2_TX_LR_SWAP_SFT 16
0992 #define PCM2_TX_LR_SWAP_MASK 0x1
0993 #define PCM2_TX_LR_SWAP_MASK_SFT (0x1 << 16)
0994 #define PCM2_SYNC_IN_INV_SFT 15
0995 #define PCM2_SYNC_IN_INV_MASK 0x1
0996 #define PCM2_SYNC_IN_INV_MASK_SFT (0x1 << 15)
0997 #define PCM2_BCLK_IN_INV_SFT 14
0998 #define PCM2_BCLK_IN_INV_MASK 0x1
0999 #define PCM2_BCLK_IN_INV_MASK_SFT (0x1 << 14)
1000 #define PCM2_TX_LCH_RPT_SFT 13
1001 #define PCM2_TX_LCH_RPT_MASK 0x1
1002 #define PCM2_TX_LCH_RPT_MASK_SFT (0x1 << 13)
1003 #define PCM2_VBT_16K_MODE_SFT 12
1004 #define PCM2_VBT_16K_MODE_MASK 0x1
1005 #define PCM2_VBT_16K_MODE_MASK_SFT (0x1 << 12)
1006 #define PCM2_LOOPBACK_CH_SEL_SFT 10
1007 #define PCM2_LOOPBACK_CH_SEL_MASK 0x3
1008 #define PCM2_LOOPBACK_CH_SEL_MASK_SFT (0x3 << 10)
1009 #define PCM2_TX2_BT_MODE_SFT 8
1010 #define PCM2_TX2_BT_MODE_MASK 0x1
1011 #define PCM2_TX2_BT_MODE_MASK_SFT (0x1 << 8)
1012 #define PCM2_BT_MODE_SFT 7
1013 #define PCM2_BT_MODE_MASK 0x1
1014 #define PCM2_BT_MODE_MASK_SFT (0x1 << 7)
1015 #define PCM2_AFIFO_SFT 6
1016 #define PCM2_AFIFO_MASK 0x1
1017 #define PCM2_AFIFO_MASK_SFT (0x1 << 6)
1018 #define PCM2_WLEN_SFT 5
1019 #define PCM2_WLEN_MASK 0x1
1020 #define PCM2_WLEN_MASK_SFT (0x1 << 5)
1021 #define PCM2_MODE_SFT 3
1022 #define PCM2_MODE_MASK 0x3
1023 #define PCM2_MODE_MASK_SFT (0x3 << 3)
1024 #define PCM2_FMT_SFT 1
1025 #define PCM2_FMT_MASK 0x3
1026 #define PCM2_FMT_MASK_SFT (0x3 << 1)
1027 #define PCM2_EN_SFT 0
1028 #define PCM2_EN_MASK 0x1
1029 #define PCM2_EN_MASK_SFT (0x1 << 0)
1030
1031
1032 #define MTKAIF_RXIF_CLKINV_ADC_SFT 31
1033 #define MTKAIF_RXIF_CLKINV_ADC_MASK 0x1
1034 #define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT (0x1 << 31)
1035 #define MTKAIF_RXIF_BYPASS_SRC_SFT 17
1036 #define MTKAIF_RXIF_BYPASS_SRC_MASK 0x1
1037 #define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT (0x1 << 17)
1038 #define MTKAIF_RXIF_PROTOCOL2_SFT 16
1039 #define MTKAIF_RXIF_PROTOCOL2_MASK 0x1
1040 #define MTKAIF_RXIF_PROTOCOL2_MASK_SFT (0x1 << 16)
1041 #define MTKAIF_TXIF_BYPASS_SRC_SFT 5
1042 #define MTKAIF_TXIF_BYPASS_SRC_MASK 0x1
1043 #define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT (0x1 << 5)
1044 #define MTKAIF_TXIF_PROTOCOL2_SFT 4
1045 #define MTKAIF_TXIF_PROTOCOL2_MASK 0x1
1046 #define MTKAIF_TXIF_PROTOCOL2_MASK_SFT (0x1 << 4)
1047 #define MTKAIF_TXIF_8TO5_SFT 2
1048 #define MTKAIF_TXIF_8TO5_MASK 0x1
1049 #define MTKAIF_TXIF_8TO5_MASK_SFT (0x1 << 2)
1050 #define MTKAIF_RXIF_8TO5_SFT 1
1051 #define MTKAIF_RXIF_8TO5_MASK 0x1
1052 #define MTKAIF_RXIF_8TO5_MASK_SFT (0x1 << 1)
1053 #define MTKAIF_IF_LOOPBACK1_SFT 0
1054 #define MTKAIF_IF_LOOPBACK1_MASK 0x1
1055 #define MTKAIF_IF_LOOPBACK1_MASK_SFT (0x1 << 0)
1056
1057
1058 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT 16
1059 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK 0x1
1060 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT (0x1 << 16)
1061 #define MTKAIF_RXIF_DELAY_CYCLE_SFT 12
1062 #define MTKAIF_RXIF_DELAY_CYCLE_MASK 0xf
1063 #define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT (0xf << 12)
1064 #define MTKAIF_RXIF_DELAY_DATA_SFT 8
1065 #define MTKAIF_RXIF_DELAY_DATA_MASK 0x1
1066 #define MTKAIF_RXIF_DELAY_DATA_MASK_SFT (0x1 << 8)
1067 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT 4
1068 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK 0x7
1069 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT (0x7 << 4)
1070
1071
1072 #define DL_2_INPUT_MODE_CTL_SFT 28
1073 #define DL_2_INPUT_MODE_CTL_MASK 0xf
1074 #define DL_2_INPUT_MODE_CTL_MASK_SFT (0xf << 28)
1075 #define DL_2_CH1_SATURATION_EN_CTL_SFT 27
1076 #define DL_2_CH1_SATURATION_EN_CTL_MASK 0x1
1077 #define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT (0x1 << 27)
1078 #define DL_2_CH2_SATURATION_EN_CTL_SFT 26
1079 #define DL_2_CH2_SATURATION_EN_CTL_MASK 0x1
1080 #define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT (0x1 << 26)
1081 #define DL_2_OUTPUT_SEL_CTL_SFT 24
1082 #define DL_2_OUTPUT_SEL_CTL_MASK 0x3
1083 #define DL_2_OUTPUT_SEL_CTL_MASK_SFT (0x3 << 24)
1084 #define DL_2_FADEIN_0START_EN_SFT 16
1085 #define DL_2_FADEIN_0START_EN_MASK 0x3
1086 #define DL_2_FADEIN_0START_EN_MASK_SFT (0x3 << 16)
1087 #define DL_DISABLE_HW_CG_CTL_SFT 15
1088 #define DL_DISABLE_HW_CG_CTL_MASK 0x1
1089 #define DL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 15)
1090 #define C_DATA_EN_SEL_CTL_PRE_SFT 14
1091 #define C_DATA_EN_SEL_CTL_PRE_MASK 0x1
1092 #define C_DATA_EN_SEL_CTL_PRE_MASK_SFT (0x1 << 14)
1093 #define DL_2_SIDE_TONE_ON_CTL_PRE_SFT 13
1094 #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK 0x1
1095 #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT (0x1 << 13)
1096 #define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT 12
1097 #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK 0x1
1098 #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT (0x1 << 12)
1099 #define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT 11
1100 #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK 0x1
1101 #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT (0x1 << 11)
1102 #define DL2_ARAMPSP_CTL_PRE_SFT 9
1103 #define DL2_ARAMPSP_CTL_PRE_MASK 0x3
1104 #define DL2_ARAMPSP_CTL_PRE_MASK_SFT (0x3 << 9)
1105 #define DL_2_IIRMODE_CTL_PRE_SFT 6
1106 #define DL_2_IIRMODE_CTL_PRE_MASK 0x7
1107 #define DL_2_IIRMODE_CTL_PRE_MASK_SFT (0x7 << 6)
1108 #define DL_2_VOICE_MODE_CTL_PRE_SFT 5
1109 #define DL_2_VOICE_MODE_CTL_PRE_MASK 0x1
1110 #define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT (0x1 << 5)
1111 #define D2_2_MUTE_CH1_ON_CTL_PRE_SFT 4
1112 #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK 0x1
1113 #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT (0x1 << 4)
1114 #define D2_2_MUTE_CH2_ON_CTL_PRE_SFT 3
1115 #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK 0x1
1116 #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT (0x1 << 3)
1117 #define DL_2_IIR_ON_CTL_PRE_SFT 2
1118 #define DL_2_IIR_ON_CTL_PRE_MASK 0x1
1119 #define DL_2_IIR_ON_CTL_PRE_MASK_SFT (0x1 << 2)
1120 #define DL_2_GAIN_ON_CTL_PRE_SFT 1
1121 #define DL_2_GAIN_ON_CTL_PRE_MASK 0x1
1122 #define DL_2_GAIN_ON_CTL_PRE_MASK_SFT (0x1 << 1)
1123 #define DL_2_SRC_ON_TMP_CTL_PRE_SFT 0
1124 #define DL_2_SRC_ON_TMP_CTL_PRE_MASK 0x1
1125 #define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT (0x1 << 0)
1126
1127
1128 #define DL_2_GAIN_CTL_PRE_SFT 16
1129 #define DL_2_GAIN_CTL_PRE_MASK 0xffff
1130 #define DL_2_GAIN_CTL_PRE_MASK_SFT (0xffff << 16)
1131 #define DL_2_GAIN_MODE_CTL_SFT 0
1132 #define DL_2_GAIN_MODE_CTL_MASK 0x1
1133 #define DL_2_GAIN_MODE_CTL_MASK_SFT (0x1 << 0)
1134
1135
1136 #define ULCF_CFG_EN_CTL_SFT 31
1137 #define ULCF_CFG_EN_CTL_MASK 0x1
1138 #define ULCF_CFG_EN_CTL_MASK_SFT (0x1 << 31)
1139 #define UL_MODE_3P25M_CH2_CTL_SFT 22
1140 #define UL_MODE_3P25M_CH2_CTL_MASK 0x1
1141 #define UL_MODE_3P25M_CH2_CTL_MASK_SFT (0x1 << 22)
1142 #define UL_MODE_3P25M_CH1_CTL_SFT 21
1143 #define UL_MODE_3P25M_CH1_CTL_MASK 0x1
1144 #define UL_MODE_3P25M_CH1_CTL_MASK_SFT (0x1 << 21)
1145 #define UL_VOICE_MODE_CH1_CH2_CTL_SFT 17
1146 #define UL_VOICE_MODE_CH1_CH2_CTL_MASK 0x7
1147 #define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT (0x7 << 17)
1148 #define DMIC_LOW_POWER_MODE_CTL_SFT 14
1149 #define DMIC_LOW_POWER_MODE_CTL_MASK 0x3
1150 #define DMIC_LOW_POWER_MODE_CTL_MASK_SFT (0x3 << 14)
1151 #define UL_DISABLE_HW_CG_CTL_SFT 12
1152 #define UL_DISABLE_HW_CG_CTL_MASK 0x1
1153 #define UL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 12)
1154 #define UL_IIR_ON_TMP_CTL_SFT 10
1155 #define UL_IIR_ON_TMP_CTL_MASK 0x1
1156 #define UL_IIR_ON_TMP_CTL_MASK_SFT (0x1 << 10)
1157 #define UL_IIRMODE_CTL_SFT 7
1158 #define UL_IIRMODE_CTL_MASK 0x7
1159 #define UL_IIRMODE_CTL_MASK_SFT (0x7 << 7)
1160 #define DIGMIC_3P25M_1P625M_SEL_CTL_SFT 5
1161 #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK 0x1
1162 #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT (0x1 << 5)
1163 #define UL_LOOP_BACK_MODE_CTL_SFT 2
1164 #define UL_LOOP_BACK_MODE_CTL_MASK 0x1
1165 #define UL_LOOP_BACK_MODE_CTL_MASK_SFT (0x1 << 2)
1166 #define UL_SDM_3_LEVEL_CTL_SFT 1
1167 #define UL_SDM_3_LEVEL_CTL_MASK 0x1
1168 #define UL_SDM_3_LEVEL_CTL_MASK_SFT (0x1 << 1)
1169 #define UL_SRC_ON_TMP_CTL_SFT 0
1170 #define UL_SRC_ON_TMP_CTL_MASK 0x1
1171 #define UL_SRC_ON_TMP_CTL_MASK_SFT (0x1 << 0)
1172
1173
1174 #define C_DAC_EN_CTL_SFT 27
1175 #define C_DAC_EN_CTL_MASK 0x1
1176 #define C_DAC_EN_CTL_MASK_SFT (0x1 << 27)
1177 #define C_MUTE_SW_CTL_SFT 26
1178 #define C_MUTE_SW_CTL_MASK 0x1
1179 #define C_MUTE_SW_CTL_MASK_SFT (0x1 << 26)
1180 #define ASDM_SRC_SEL_CTL_SFT 25
1181 #define ASDM_SRC_SEL_CTL_MASK 0x1
1182 #define ASDM_SRC_SEL_CTL_MASK_SFT (0x1 << 25)
1183 #define C_AMP_DIV_CH2_CTL_SFT 21
1184 #define C_AMP_DIV_CH2_CTL_MASK 0x7
1185 #define C_AMP_DIV_CH2_CTL_MASK_SFT (0x7 << 21)
1186 #define C_FREQ_DIV_CH2_CTL_SFT 16
1187 #define C_FREQ_DIV_CH2_CTL_MASK 0x1f
1188 #define C_FREQ_DIV_CH2_CTL_MASK_SFT (0x1f << 16)
1189 #define C_SINE_MODE_CH2_CTL_SFT 12
1190 #define C_SINE_MODE_CH2_CTL_MASK 0xf
1191 #define C_SINE_MODE_CH2_CTL_MASK_SFT (0xf << 12)
1192 #define C_AMP_DIV_CH1_CTL_SFT 9
1193 #define C_AMP_DIV_CH1_CTL_MASK 0x7
1194 #define C_AMP_DIV_CH1_CTL_MASK_SFT (0x7 << 9)
1195 #define C_FREQ_DIV_CH1_CTL_SFT 4
1196 #define C_FREQ_DIV_CH1_CTL_MASK 0x1f
1197 #define C_FREQ_DIV_CH1_CTL_MASK_SFT (0x1f << 4)
1198 #define C_SINE_MODE_CH1_CTL_SFT 0
1199 #define C_SINE_MODE_CH1_CTL_MASK 0xf
1200 #define C_SINE_MODE_CH1_CTL_MASK_SFT (0xf << 0)
1201
1202
1203 #define C_LOOP_BACK_MODE_CTL_SFT 12
1204 #define C_LOOP_BACK_MODE_CTL_MASK 0xf
1205 #define C_LOOP_BACK_MODE_CTL_MASK_SFT (0xf << 12)
1206 #define C_EXT_ADC_CTL_SFT 0
1207 #define C_EXT_ADC_CTL_MASK 0x1
1208 #define C_EXT_ADC_CTL_MASK_SFT (0x1 << 0)
1209
1210
1211 #define AFE_ADDA6_UL_LR_SWAP_SFT 15
1212 #define AFE_ADDA6_UL_LR_SWAP_MASK 0x1
1213 #define AFE_ADDA6_UL_LR_SWAP_MASK_SFT (0x1 << 15)
1214 #define AFE_ADDA6_CKDIV_RST_SFT 14
1215 #define AFE_ADDA6_CKDIV_RST_MASK 0x1
1216 #define AFE_ADDA6_CKDIV_RST_MASK_SFT (0x1 << 14)
1217 #define AFE_ADDA6_FIFO_AUTO_RST_SFT 13
1218 #define AFE_ADDA6_FIFO_AUTO_RST_MASK 0x1
1219 #define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT (0x1 << 13)
1220 #define UL_FIFO_DIGMIC_TESTIN_SFT 5
1221 #define UL_FIFO_DIGMIC_TESTIN_MASK 0x3
1222 #define UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 5)
1223 #define UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 4
1224 #define UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1
1225 #define UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 4)
1226 #define ADDA_AFE_ON_SFT 0
1227 #define ADDA_AFE_ON_MASK 0x1
1228 #define ADDA_AFE_ON_MASK_SFT (0x1 << 0)
1229
1230
1231 #define R_RDY_SFT 30
1232 #define R_RDY_MASK 0x1
1233 #define R_RDY_MASK_SFT (0x1 << 30)
1234 #define W_RDY_SFT 29
1235 #define W_RDY_MASK 0x1
1236 #define W_RDY_MASK_SFT (0x1 << 29)
1237 #define R_W_EN_SFT 25
1238 #define R_W_EN_MASK 0x1
1239 #define R_W_EN_MASK_SFT (0x1 << 25)
1240 #define R_W_SEL_SFT 24
1241 #define R_W_SEL_MASK 0x1
1242 #define R_W_SEL_MASK_SFT (0x1 << 24)
1243 #define SEL_CH2_SFT 23
1244 #define SEL_CH2_MASK 0x1
1245 #define SEL_CH2_MASK_SFT (0x1 << 23)
1246 #define SIDE_TONE_COEFFICIENT_ADDR_SFT 16
1247 #define SIDE_TONE_COEFFICIENT_ADDR_MASK 0x1f
1248 #define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT (0x1f << 16)
1249 #define SIDE_TONE_COEFFICIENT_SFT 0
1250 #define SIDE_TONE_COEFFICIENT_MASK 0xffff
1251 #define SIDE_TONE_COEFFICIENT_MASK_SFT (0xffff << 0)
1252
1253
1254 #define SIDE_TONE_COEFF_SFT 0
1255 #define SIDE_TONE_COEFF_MASK 0xffff
1256 #define SIDE_TONE_COEFF_MASK_SFT (0xffff << 0)
1257
1258
1259 #define STF_BYPASS_MODE_SFT 31
1260 #define STF_BYPASS_MODE_MASK 0x1
1261 #define STF_BYPASS_MODE_MASK_SFT (0x1 << 31)
1262 #define STF_BYPASS_MODE_O28_O29_SFT 30
1263 #define STF_BYPASS_MODE_O28_O29_MASK 0x1
1264 #define STF_BYPASS_MODE_O28_O29_MASK_SFT (0x1 << 30)
1265 #define STF_BYPASS_MODE_I2S4_SFT 29
1266 #define STF_BYPASS_MODE_I2S4_MASK 0x1
1267 #define STF_BYPASS_MODE_I2S4_MASK_SFT (0x1 << 29)
1268 #define STF_BYPASS_MODE_I2S5_SFT 28
1269 #define STF_BYPASS_MODE_I2S5_MASK 0x1
1270 #define STF_BYPASS_MODE_I2S5_MASK_SFT (0x1 << 28)
1271 #define STF_INPUT_EN_SEL_SFT 13
1272 #define STF_INPUT_EN_SEL_MASK 0x1
1273 #define STF_INPUT_EN_SEL_MASK_SFT (0x1 << 13)
1274 #define STF_SOURCE_FROM_O19O20_SFT 12
1275 #define STF_SOURCE_FROM_O19O20_MASK 0x1
1276 #define STF_SOURCE_FROM_O19O20_MASK_SFT (0x1 << 12)
1277 #define SIDE_TONE_ON_SFT 8
1278 #define SIDE_TONE_ON_MASK 0x1
1279 #define SIDE_TONE_ON_MASK_SFT (0x1 << 8)
1280 #define SIDE_TONE_HALF_TAP_NUM_SFT 0
1281 #define SIDE_TONE_HALF_TAP_NUM_MASK 0x3f
1282 #define SIDE_TONE_HALF_TAP_NUM_MASK_SFT (0x3f << 0)
1283
1284
1285 #define POSITIVE_GAIN_SFT 16
1286 #define POSITIVE_GAIN_MASK 0x7
1287 #define POSITIVE_GAIN_MASK_SFT (0x7 << 16)
1288 #define SIDE_TONE_GAIN_SFT 0
1289 #define SIDE_TONE_GAIN_MASK 0xffff
1290 #define SIDE_TONE_GAIN_MASK_SFT (0xffff << 0)
1291
1292
1293 #define AUD_DC_COMP_EN_SFT 8
1294 #define AUD_DC_COMP_EN_MASK 0x1
1295 #define AUD_DC_COMP_EN_MASK_SFT (0x1 << 8)
1296 #define ATTGAIN_CTL_SFT 0
1297 #define ATTGAIN_CTL_MASK 0x3f
1298 #define ATTGAIN_CTL_MASK_SFT (0x3f << 0)
1299
1300
1301 #define DAC_EN_SFT 26
1302 #define DAC_EN_MASK 0x1
1303 #define DAC_EN_MASK_SFT (0x1 << 26)
1304 #define MUTE_SW_CH2_SFT 25
1305 #define MUTE_SW_CH2_MASK 0x1
1306 #define MUTE_SW_CH2_MASK_SFT (0x1 << 25)
1307 #define MUTE_SW_CH1_SFT 24
1308 #define MUTE_SW_CH1_MASK 0x1
1309 #define MUTE_SW_CH1_MASK_SFT (0x1 << 24)
1310 #define SINE_MODE_CH2_SFT 20
1311 #define SINE_MODE_CH2_MASK 0xf
1312 #define SINE_MODE_CH2_MASK_SFT (0xf << 20)
1313 #define AMP_DIV_CH2_SFT 17
1314 #define AMP_DIV_CH2_MASK 0x7
1315 #define AMP_DIV_CH2_MASK_SFT (0x7 << 17)
1316 #define FREQ_DIV_CH2_SFT 12
1317 #define FREQ_DIV_CH2_MASK 0x1f
1318 #define FREQ_DIV_CH2_MASK_SFT (0x1f << 12)
1319 #define SINE_MODE_CH1_SFT 8
1320 #define SINE_MODE_CH1_MASK 0xf
1321 #define SINE_MODE_CH1_MASK_SFT (0xf << 8)
1322 #define AMP_DIV_CH1_SFT 5
1323 #define AMP_DIV_CH1_MASK 0x7
1324 #define AMP_DIV_CH1_MASK_SFT (0x7 << 5)
1325 #define FREQ_DIV_CH1_SFT 0
1326 #define FREQ_DIV_CH1_MASK 0x1f
1327 #define FREQ_DIV_CH1_MASK_SFT (0x1f << 0)
1328
1329
1330 #define INNER_LOOP_BACK_MODE_SFT 0
1331 #define INNER_LOOP_BACK_MODE_MASK 0x3f
1332 #define INNER_LOOP_BACK_MODE_MASK_SFT (0x3f << 0)
1333
1334
1335 #define HDMI_MINLEN_SFT 24
1336 #define HDMI_MINLEN_MASK 0xf
1337 #define HDMI_MINLEN_MASK_SFT (0xf << 24)
1338 #define DL3_MINLEN_SFT 12
1339 #define DL3_MINLEN_MASK 0xf
1340 #define DL3_MINLEN_MASK_SFT (0xf << 12)
1341 #define DL2_MINLEN_SFT 8
1342 #define DL2_MINLEN_MASK 0xf
1343 #define DL2_MINLEN_MASK_SFT (0xf << 8)
1344 #define DL1_DATA2_MINLEN_SFT 4
1345 #define DL1_DATA2_MINLEN_MASK 0xf
1346 #define DL1_DATA2_MINLEN_MASK_SFT (0xf << 4)
1347 #define DL1_MINLEN_SFT 0
1348 #define DL1_MINLEN_MASK 0xf
1349 #define DL1_MINLEN_MASK_SFT (0xf << 0)
1350
1351
1352 #define HDMI_MAXLEN_SFT 24
1353 #define HDMI_MAXLEN_MASK 0xf
1354 #define HDMI_MAXLEN_MASK_SFT (0xf << 24)
1355 #define DL3_MAXLEN_SFT 8
1356 #define DL3_MAXLEN_MASK 0xf
1357 #define DL3_MAXLEN_MASK_SFT (0xf << 8)
1358 #define DL2_MAXLEN_SFT 4
1359 #define DL2_MAXLEN_MASK 0xf
1360 #define DL2_MAXLEN_MASK_SFT (0xf << 4)
1361 #define DL1_MAXLEN_SFT 0
1362 #define DL1_MAXLEN_MASK 0x3
1363 #define DL1_MAXLEN_MASK_SFT (0x3 << 0)
1364
1365
1366 #define VUL12_4CH_SFT 17
1367 #define VUL12_4CH_MASK 0x1
1368 #define VUL12_4CH_MASK_SFT (0x1 << 17)
1369 #define DL3_PBUF_SIZE_SFT 10
1370 #define DL3_PBUF_SIZE_MASK 0x3
1371 #define DL3_PBUF_SIZE_MASK_SFT (0x3 << 10)
1372 #define HDMI_PBUF_SIZE_SFT 4
1373 #define HDMI_PBUF_SIZE_MASK 0x3
1374 #define HDMI_PBUF_SIZE_MASK_SFT (0x3 << 4)
1375 #define DL2_PBUF_SIZE_SFT 2
1376 #define DL2_PBUF_SIZE_MASK 0x3
1377 #define DL2_PBUF_SIZE_MASK_SFT (0x3 << 2)
1378 #define DL1_PBUF_SIZE_SFT 0
1379 #define DL1_PBUF_SIZE_MASK 0x3
1380 #define DL1_PBUF_SIZE_MASK_SFT (0x3 << 0)
1381
1382
1383 #define AFE_24M_ON_SFT 1
1384 #define AFE_24M_ON_MASK 0x1
1385 #define AFE_24M_ON_MASK_SFT (0x1 << 1)
1386 #define AFE_22M_ON_SFT 0
1387 #define AFE_22M_ON_MASK 0x1
1388 #define AFE_22M_ON_MASK_SFT (0x1 << 0)
1389
1390
1391 #define IRQ12_MCU_ON_SFT 12
1392 #define IRQ12_MCU_ON_MASK 0x1
1393 #define IRQ12_MCU_ON_MASK_SFT (0x1 << 12)
1394 #define IRQ11_MCU_ON_SFT 11
1395 #define IRQ11_MCU_ON_MASK 0x1
1396 #define IRQ11_MCU_ON_MASK_SFT (0x1 << 11)
1397 #define IRQ10_MCU_ON_SFT 10
1398 #define IRQ10_MCU_ON_MASK 0x1
1399 #define IRQ10_MCU_ON_MASK_SFT (0x1 << 10)
1400 #define IRQ9_MCU_ON_SFT 9
1401 #define IRQ9_MCU_ON_MASK 0x1
1402 #define IRQ9_MCU_ON_MASK_SFT (0x1 << 9)
1403 #define IRQ8_MCU_ON_SFT 8
1404 #define IRQ8_MCU_ON_MASK 0x1
1405 #define IRQ8_MCU_ON_MASK_SFT (0x1 << 8)
1406 #define IRQ7_MCU_ON_SFT 7
1407 #define IRQ7_MCU_ON_MASK 0x1
1408 #define IRQ7_MCU_ON_MASK_SFT (0x1 << 7)
1409 #define IRQ6_MCU_ON_SFT 6
1410 #define IRQ6_MCU_ON_MASK 0x1
1411 #define IRQ6_MCU_ON_MASK_SFT (0x1 << 6)
1412 #define IRQ5_MCU_ON_SFT 5
1413 #define IRQ5_MCU_ON_MASK 0x1
1414 #define IRQ5_MCU_ON_MASK_SFT (0x1 << 5)
1415 #define IRQ4_MCU_ON_SFT 4
1416 #define IRQ4_MCU_ON_MASK 0x1
1417 #define IRQ4_MCU_ON_MASK_SFT (0x1 << 4)
1418 #define IRQ3_MCU_ON_SFT 3
1419 #define IRQ3_MCU_ON_MASK 0x1
1420 #define IRQ3_MCU_ON_MASK_SFT (0x1 << 3)
1421 #define IRQ2_MCU_ON_SFT 2
1422 #define IRQ2_MCU_ON_MASK 0x1
1423 #define IRQ2_MCU_ON_MASK_SFT (0x1 << 2)
1424 #define IRQ1_MCU_ON_SFT 1
1425 #define IRQ1_MCU_ON_MASK 0x1
1426 #define IRQ1_MCU_ON_MASK_SFT (0x1 << 1)
1427 #define IRQ0_MCU_ON_SFT 0
1428 #define IRQ0_MCU_ON_MASK 0x1
1429 #define IRQ0_MCU_ON_MASK_SFT (0x1 << 0)
1430
1431
1432 #define IRQ7_MCU_MODE_SFT 28
1433 #define IRQ7_MCU_MODE_MASK 0xf
1434 #define IRQ7_MCU_MODE_MASK_SFT (0xf << 28)
1435 #define IRQ6_MCU_MODE_SFT 24
1436 #define IRQ6_MCU_MODE_MASK 0xf
1437 #define IRQ6_MCU_MODE_MASK_SFT (0xf << 24)
1438 #define IRQ5_MCU_MODE_SFT 20
1439 #define IRQ5_MCU_MODE_MASK 0xf
1440 #define IRQ5_MCU_MODE_MASK_SFT (0xf << 20)
1441 #define IRQ4_MCU_MODE_SFT 16
1442 #define IRQ4_MCU_MODE_MASK 0xf
1443 #define IRQ4_MCU_MODE_MASK_SFT (0xf << 16)
1444 #define IRQ3_MCU_MODE_SFT 12
1445 #define IRQ3_MCU_MODE_MASK 0xf
1446 #define IRQ3_MCU_MODE_MASK_SFT (0xf << 12)
1447 #define IRQ2_MCU_MODE_SFT 8
1448 #define IRQ2_MCU_MODE_MASK 0xf
1449 #define IRQ2_MCU_MODE_MASK_SFT (0xf << 8)
1450 #define IRQ1_MCU_MODE_SFT 4
1451 #define IRQ1_MCU_MODE_MASK 0xf
1452 #define IRQ1_MCU_MODE_MASK_SFT (0xf << 4)
1453 #define IRQ0_MCU_MODE_SFT 0
1454 #define IRQ0_MCU_MODE_MASK 0xf
1455 #define IRQ0_MCU_MODE_MASK_SFT (0xf << 0)
1456
1457
1458 #define IRQ12_MCU_MODE_SFT 4
1459 #define IRQ12_MCU_MODE_MASK 0xf
1460 #define IRQ12_MCU_MODE_MASK_SFT (0xf << 4)
1461 #define IRQ11_MCU_MODE_SFT 0
1462 #define IRQ11_MCU_MODE_MASK 0xf
1463 #define IRQ11_MCU_MODE_MASK_SFT (0xf << 0)
1464
1465
1466 #define IRQ12_MCU_MISS_CNT_CLR_SFT 28
1467 #define IRQ12_MCU_MISS_CNT_CLR_MASK 0x1
1468 #define IRQ12_MCU_MISS_CNT_CLR_MASK_SFT (0x1 << 28)
1469 #define IRQ11_MCU_MISS_CNT_CLR_SFT 27
1470 #define IRQ11_MCU_MISS_CNT_CLR_MASK 0x1
1471 #define IRQ11_MCU_MISS_CNT_CLR_MASK_SFT (0x1 << 27)
1472 #define IRQ10_MCU_MISS_CLR_SFT 26
1473 #define IRQ10_MCU_MISS_CLR_MASK 0x1
1474 #define IRQ10_MCU_MISS_CLR_MASK_SFT (0x1 << 26)
1475 #define IRQ9_MCU_MISS_CLR_SFT 25
1476 #define IRQ9_MCU_MISS_CLR_MASK 0x1
1477 #define IRQ9_MCU_MISS_CLR_MASK_SFT (0x1 << 25)
1478 #define IRQ8_MCU_MISS_CLR_SFT 24
1479 #define IRQ8_MCU_MISS_CLR_MASK 0x1
1480 #define IRQ8_MCU_MISS_CLR_MASK_SFT (0x1 << 24)
1481 #define IRQ7_MCU_MISS_CLR_SFT 23
1482 #define IRQ7_MCU_MISS_CLR_MASK 0x1
1483 #define IRQ7_MCU_MISS_CLR_MASK_SFT (0x1 << 23)
1484 #define IRQ6_MCU_MISS_CLR_SFT 22
1485 #define IRQ6_MCU_MISS_CLR_MASK 0x1
1486 #define IRQ6_MCU_MISS_CLR_MASK_SFT (0x1 << 22)
1487 #define IRQ5_MCU_MISS_CLR_SFT 21
1488 #define IRQ5_MCU_MISS_CLR_MASK 0x1
1489 #define IRQ5_MCU_MISS_CLR_MASK_SFT (0x1 << 21)
1490 #define IRQ4_MCU_MISS_CLR_SFT 20
1491 #define IRQ4_MCU_MISS_CLR_MASK 0x1
1492 #define IRQ4_MCU_MISS_CLR_MASK_SFT (0x1 << 20)
1493 #define IRQ3_MCU_MISS_CLR_SFT 19
1494 #define IRQ3_MCU_MISS_CLR_MASK 0x1
1495 #define IRQ3_MCU_MISS_CLR_MASK_SFT (0x1 << 19)
1496 #define IRQ2_MCU_MISS_CLR_SFT 18
1497 #define IRQ2_MCU_MISS_CLR_MASK 0x1
1498 #define IRQ2_MCU_MISS_CLR_MASK_SFT (0x1 << 18)
1499 #define IRQ1_MCU_MISS_CLR_SFT 17
1500 #define IRQ1_MCU_MISS_CLR_MASK 0x1
1501 #define IRQ1_MCU_MISS_CLR_MASK_SFT (0x1 << 17)
1502 #define IRQ0_MCU_MISS_CLR_SFT 16
1503 #define IRQ0_MCU_MISS_CLR_MASK 0x1
1504 #define IRQ0_MCU_MISS_CLR_MASK_SFT (0x1 << 16)
1505 #define IRQ12_MCU_CLR_SFT 12
1506 #define IRQ12_MCU_CLR_MASK 0x1
1507 #define IRQ12_MCU_CLR_MASK_SFT (0x1 << 12)
1508 #define IRQ11_MCU_CLR_SFT 11
1509 #define IRQ11_MCU_CLR_MASK 0x1
1510 #define IRQ11_MCU_CLR_MASK_SFT (0x1 << 11)
1511 #define IRQ10_MCU_CLR_SFT 10
1512 #define IRQ10_MCU_CLR_MASK 0x1
1513 #define IRQ10_MCU_CLR_MASK_SFT (0x1 << 10)
1514 #define IRQ9_MCU_CLR_SFT 9
1515 #define IRQ9_MCU_CLR_MASK 0x1
1516 #define IRQ9_MCU_CLR_MASK_SFT (0x1 << 9)
1517 #define IRQ8_MCU_CLR_SFT 8
1518 #define IRQ8_MCU_CLR_MASK 0x1
1519 #define IRQ8_MCU_CLR_MASK_SFT (0x1 << 8)
1520 #define IRQ7_MCU_CLR_SFT 7
1521 #define IRQ7_MCU_CLR_MASK 0x1
1522 #define IRQ7_MCU_CLR_MASK_SFT (0x1 << 7)
1523 #define IRQ6_MCU_CLR_SFT 6
1524 #define IRQ6_MCU_CLR_MASK 0x1
1525 #define IRQ6_MCU_CLR_MASK_SFT (0x1 << 6)
1526 #define IRQ5_MCU_CLR_SFT 5
1527 #define IRQ5_MCU_CLR_MASK 0x1
1528 #define IRQ5_MCU_CLR_MASK_SFT (0x1 << 5)
1529 #define IRQ4_MCU_CLR_SFT 4
1530 #define IRQ4_MCU_CLR_MASK 0x1
1531 #define IRQ4_MCU_CLR_MASK_SFT (0x1 << 4)
1532 #define IRQ3_MCU_CLR_SFT 3
1533 #define IRQ3_MCU_CLR_MASK 0x1
1534 #define IRQ3_MCU_CLR_MASK_SFT (0x1 << 3)
1535 #define IRQ2_MCU_CLR_SFT 2
1536 #define IRQ2_MCU_CLR_MASK 0x1
1537 #define IRQ2_MCU_CLR_MASK_SFT (0x1 << 2)
1538 #define IRQ1_MCU_CLR_SFT 1
1539 #define IRQ1_MCU_CLR_MASK 0x1
1540 #define IRQ1_MCU_CLR_MASK_SFT (0x1 << 1)
1541 #define IRQ0_MCU_CLR_SFT 0
1542 #define IRQ0_MCU_CLR_MASK 0x1
1543 #define IRQ0_MCU_CLR_MASK_SFT (0x1 << 0)
1544
1545
1546 #define CPU_COMPACT_MODE_SFT 29
1547 #define CPU_COMPACT_MODE_MASK 0x1
1548 #define CPU_COMPACT_MODE_MASK_SFT (0x1 << 29)
1549 #define CPU_HD_ALIGN_SFT 28
1550 #define CPU_HD_ALIGN_MASK 0x1
1551 #define CPU_HD_ALIGN_MASK_SFT (0x1 << 28)
1552 #define AWB2_AXI_WR_SIGN_SFT 24
1553 #define AWB2_AXI_WR_SIGN_MASK 0x1
1554 #define AWB2_AXI_WR_SIGN_MASK_SFT (0x1 << 24)
1555 #define VUL2_AXI_WR_SIGN_SFT 22
1556 #define VUL2_AXI_WR_SIGN_MASK 0x1
1557 #define VUL2_AXI_WR_SIGN_MASK_SFT (0x1 << 22)
1558 #define VUL12_AXI_WR_SIGN_SFT 21
1559 #define VUL12_AXI_WR_SIGN_MASK 0x1
1560 #define VUL12_AXI_WR_SIGN_MASK_SFT (0x1 << 21)
1561 #define VUL_AXI_WR_SIGN_SFT 20
1562 #define VUL_AXI_WR_SIGN_MASK 0x1
1563 #define VUL_AXI_WR_SIGN_MASK_SFT (0x1 << 20)
1564 #define MOD_DAI_AXI_WR_SIGN_SFT 18
1565 #define MOD_DAI_AXI_WR_SIGN_MASK 0x1
1566 #define MOD_DAI_AXI_WR_SIGN_MASK_SFT (0x1 << 18)
1567 #define AWB_MSTR_SIGN_SFT 17
1568 #define AWB_MSTR_SIGN_MASK 0x1
1569 #define AWB_MSTR_SIGN_MASK_SFT (0x1 << 17)
1570 #define SYSRAM_SIGN_SFT 16
1571 #define SYSRAM_SIGN_MASK 0x1
1572 #define SYSRAM_SIGN_MASK_SFT (0x1 << 16)
1573
1574
1575 #define HDMI_O_7_SFT 21
1576 #define HDMI_O_7_MASK 0x7
1577 #define HDMI_O_7_MASK_SFT (0x7 << 21)
1578 #define HDMI_O_6_SFT 18
1579 #define HDMI_O_6_MASK 0x7
1580 #define HDMI_O_6_MASK_SFT (0x7 << 18)
1581 #define HDMI_O_5_SFT 15
1582 #define HDMI_O_5_MASK 0x7
1583 #define HDMI_O_5_MASK_SFT (0x7 << 15)
1584 #define HDMI_O_4_SFT 12
1585 #define HDMI_O_4_MASK 0x7
1586 #define HDMI_O_4_MASK_SFT (0x7 << 12)
1587 #define HDMI_O_3_SFT 9
1588 #define HDMI_O_3_MASK 0x7
1589 #define HDMI_O_3_MASK_SFT (0x7 << 9)
1590 #define HDMI_O_2_SFT 6
1591 #define HDMI_O_2_MASK 0x7
1592 #define HDMI_O_2_MASK_SFT (0x7 << 6)
1593 #define HDMI_O_1_SFT 3
1594 #define HDMI_O_1_MASK 0x7
1595 #define HDMI_O_1_MASK_SFT (0x7 << 3)
1596 #define HDMI_O_0_SFT 0
1597 #define HDMI_O_0_MASK 0x7
1598 #define HDMI_O_0_MASK_SFT (0x7 << 0)
1599
1600
1601 #define TDM_EN_SFT 0
1602 #define TDM_EN_MASK 0x1
1603 #define TDM_EN_MASK_SFT (0x1 << 0)
1604 #define LRCK_INVERSE_SFT 2
1605 #define LRCK_INVERSE_MASK 0x1
1606 #define LRCK_INVERSE_MASK_SFT (0x1 << 2)
1607 #define DELAY_DATA_SFT 3
1608 #define DELAY_DATA_MASK 0x1
1609 #define DELAY_DATA_MASK_SFT (0x1 << 3)
1610 #define LEFT_ALIGN_SFT 4
1611 #define LEFT_ALIGN_MASK 0x1
1612 #define LEFT_ALIGN_MASK_SFT (0x1 << 4)
1613 #define WLEN_SFT 8
1614 #define WLEN_MASK 0x3
1615 #define WLEN_MASK_SFT (0x3 << 8)
1616 #define CHANNEL_NUM_SFT 10
1617 #define CHANNEL_NUM_MASK 0x3
1618 #define CHANNEL_NUM_MASK_SFT (0x3 << 10)
1619 #define CHANNEL_BCK_CYCLES_SFT 12
1620 #define CHANNEL_BCK_CYCLES_MASK 0x3
1621 #define CHANNEL_BCK_CYCLES_MASK_SFT (0x3 << 12)
1622 #define DAC_BIT_NUM_SFT 16
1623 #define DAC_BIT_NUM_MASK 0x1f
1624 #define DAC_BIT_NUM_MASK_SFT (0x1f << 16)
1625 #define LRCK_TDM_WIDTH_SFT 24
1626 #define LRCK_TDM_WIDTH_MASK 0xff
1627 #define LRCK_TDM_WIDTH_MASK_SFT (0xff << 24)
1628
1629
1630 #define ST_CH_PAIR_SOUT0_SFT 0
1631 #define ST_CH_PAIR_SOUT0_MASK 0x7
1632 #define ST_CH_PAIR_SOUT0_MASK_SFT (0x7 << 0)
1633 #define ST_CH_PAIR_SOUT1_SFT 4
1634 #define ST_CH_PAIR_SOUT1_MASK 0x7
1635 #define ST_CH_PAIR_SOUT1_MASK_SFT (0x7 << 4)
1636 #define ST_CH_PAIR_SOUT2_SFT 8
1637 #define ST_CH_PAIR_SOUT2_MASK 0x7
1638 #define ST_CH_PAIR_SOUT2_MASK_SFT (0x7 << 8)
1639 #define ST_CH_PAIR_SOUT3_SFT 12
1640 #define ST_CH_PAIR_SOUT3_MASK 0x7
1641 #define ST_CH_PAIR_SOUT3_MASK_SFT (0x7 << 12)
1642 #define TDM_FIX_VALUE_SEL_SFT 16
1643 #define TDM_FIX_VALUE_SEL_MASK 0x1
1644 #define TDM_FIX_VALUE_SEL_MASK_SFT (0x1 << 16)
1645 #define TDM_I2S_LOOPBACK_SFT 20
1646 #define TDM_I2S_LOOPBACK_MASK 0x1
1647 #define TDM_I2S_LOOPBACK_MASK_SFT (0x1 << 20)
1648 #define TDM_I2S_LOOPBACK_CH_SFT 21
1649 #define TDM_I2S_LOOPBACK_CH_MASK 0x3
1650 #define TDM_I2S_LOOPBACK_CH_MASK_SFT (0x3 << 21)
1651 #define TDM_FIX_VALUE_SFT 24
1652 #define TDM_FIX_VALUE_MASK 0xff
1653 #define TDM_FIX_VALUE_MASK_SFT (0xff << 24)
1654
1655
1656 #define AFE_HDMI_OUT_ON_RETM_SFT 8
1657 #define AFE_HDMI_OUT_ON_RETM_MASK 0x1
1658 #define AFE_HDMI_OUT_ON_RETM_MASK_SFT (0x1 << 8)
1659 #define AFE_HDMI_OUT_CH_NUM_SFT 4
1660 #define AFE_HDMI_OUT_CH_NUM_MASK 0xf
1661 #define AFE_HDMI_OUT_CH_NUM_MASK_SFT (0xf << 4)
1662 #define AFE_HDMI_OUT_BIT_WIDTH_SFT 1
1663 #define AFE_HDMI_OUT_BIT_WIDTH_MASK 0x1
1664 #define AFE_HDMI_OUT_BIT_WIDTH_MASK_SFT (0x1 << 1)
1665 #define AFE_HDMI_OUT_ON_SFT 0
1666 #define AFE_HDMI_OUT_ON_MASK 0x1
1667 #define AFE_HDMI_OUT_ON_MASK_SFT (0x1 << 0)
1668 #endif