18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * mt6797-reg.h  --  Mediatek 6797 audio driver reg definition
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2018 MediaTek Inc.
68c2ecf20Sopenharmony_ci * Author: KaiChieh Chuang <kaichieh.chuang@mediatek.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _MT6797_REG_H_
108c2ecf20Sopenharmony_ci#define _MT6797_REG_H_
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define AUDIO_TOP_CON0            0x0000
138c2ecf20Sopenharmony_ci#define AUDIO_TOP_CON1            0x0004
148c2ecf20Sopenharmony_ci#define AUDIO_TOP_CON3            0x000c
158c2ecf20Sopenharmony_ci#define AFE_DAC_CON0              0x0010
168c2ecf20Sopenharmony_ci#define AFE_DAC_CON1              0x0014
178c2ecf20Sopenharmony_ci#define AFE_I2S_CON               0x0018
188c2ecf20Sopenharmony_ci#define AFE_DAIBT_CON0            0x001c
198c2ecf20Sopenharmony_ci#define AFE_CONN0                 0x0020
208c2ecf20Sopenharmony_ci#define AFE_CONN1                 0x0024
218c2ecf20Sopenharmony_ci#define AFE_CONN2                 0x0028
228c2ecf20Sopenharmony_ci#define AFE_CONN3                 0x002c
238c2ecf20Sopenharmony_ci#define AFE_CONN4                 0x0030
248c2ecf20Sopenharmony_ci#define AFE_I2S_CON1              0x0034
258c2ecf20Sopenharmony_ci#define AFE_I2S_CON2              0x0038
268c2ecf20Sopenharmony_ci#define AFE_MRGIF_CON             0x003c
278c2ecf20Sopenharmony_ci#define AFE_DL1_BASE              0x0040
288c2ecf20Sopenharmony_ci#define AFE_DL1_CUR               0x0044
298c2ecf20Sopenharmony_ci#define AFE_DL1_END               0x0048
308c2ecf20Sopenharmony_ci#define AFE_I2S_CON3              0x004c
318c2ecf20Sopenharmony_ci#define AFE_DL2_BASE              0x0050
328c2ecf20Sopenharmony_ci#define AFE_DL2_CUR               0x0054
338c2ecf20Sopenharmony_ci#define AFE_DL2_END               0x0058
348c2ecf20Sopenharmony_ci#define AFE_CONN5                 0x005c
358c2ecf20Sopenharmony_ci#define AFE_CONN_24BIT            0x006c
368c2ecf20Sopenharmony_ci#define AFE_AWB_BASE              0x0070
378c2ecf20Sopenharmony_ci#define AFE_AWB_END               0x0078
388c2ecf20Sopenharmony_ci#define AFE_AWB_CUR               0x007c
398c2ecf20Sopenharmony_ci#define AFE_VUL_BASE              0x0080
408c2ecf20Sopenharmony_ci#define AFE_VUL_END               0x0088
418c2ecf20Sopenharmony_ci#define AFE_VUL_CUR               0x008c
428c2ecf20Sopenharmony_ci#define AFE_DAI_BASE              0x0090
438c2ecf20Sopenharmony_ci#define AFE_DAI_END               0x0098
448c2ecf20Sopenharmony_ci#define AFE_DAI_CUR               0x009c
458c2ecf20Sopenharmony_ci#define AFE_CONN6                 0x00bc
468c2ecf20Sopenharmony_ci#define AFE_MEMIF_MSB             0x00cc
478c2ecf20Sopenharmony_ci#define AFE_MEMIF_MON0            0x00d0
488c2ecf20Sopenharmony_ci#define AFE_MEMIF_MON1            0x00d4
498c2ecf20Sopenharmony_ci#define AFE_MEMIF_MON2            0x00d8
508c2ecf20Sopenharmony_ci#define AFE_MEMIF_MON4            0x00e0
518c2ecf20Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON0     0x0108
528c2ecf20Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON1     0x010c
538c2ecf20Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON0      0x0114
548c2ecf20Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON1      0x0118
558c2ecf20Sopenharmony_ci#define AFE_ADDA_TOP_CON0         0x0120
568c2ecf20Sopenharmony_ci#define AFE_ADDA_UL_DL_CON0       0x0124
578c2ecf20Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG        0x012c
588c2ecf20Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON0   0x0130
598c2ecf20Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON1   0x0134
608c2ecf20Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG0       0x0138
618c2ecf20Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG1       0x013c
628c2ecf20Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG2       0x0140
638c2ecf20Sopenharmony_ci#define AFE_DMA_CTL               0x0150
648c2ecf20Sopenharmony_ci#define AFE_DMA_MON0              0x0154
658c2ecf20Sopenharmony_ci#define AFE_DMA_MON1              0x0158
668c2ecf20Sopenharmony_ci#define AFE_SIDETONE_DEBUG        0x01d0
678c2ecf20Sopenharmony_ci#define AFE_SIDETONE_MON          0x01d4
688c2ecf20Sopenharmony_ci#define AFE_SIDETONE_CON0         0x01e0
698c2ecf20Sopenharmony_ci#define AFE_SIDETONE_COEFF        0x01e4
708c2ecf20Sopenharmony_ci#define AFE_SIDETONE_CON1         0x01e8
718c2ecf20Sopenharmony_ci#define AFE_SIDETONE_GAIN         0x01ec
728c2ecf20Sopenharmony_ci#define AFE_SGEN_CON0             0x01f0
738c2ecf20Sopenharmony_ci#define AFE_SINEGEN_CON_TDM       0x01fc
748c2ecf20Sopenharmony_ci#define AFE_TOP_CON0              0x0200
758c2ecf20Sopenharmony_ci#define AFE_ADDA_PREDIS_CON0      0x0260
768c2ecf20Sopenharmony_ci#define AFE_ADDA_PREDIS_CON1      0x0264
778c2ecf20Sopenharmony_ci#define AFE_MRGIF_MON0            0x0270
788c2ecf20Sopenharmony_ci#define AFE_MRGIF_MON1            0x0274
798c2ecf20Sopenharmony_ci#define AFE_MRGIF_MON2            0x0278
808c2ecf20Sopenharmony_ci#define AFE_I2S_MON               0x027c
818c2ecf20Sopenharmony_ci#define AFE_MOD_DAI_BASE          0x0330
828c2ecf20Sopenharmony_ci#define AFE_MOD_DAI_END           0x0338
838c2ecf20Sopenharmony_ci#define AFE_MOD_DAI_CUR           0x033c
848c2ecf20Sopenharmony_ci#define AFE_VUL_D2_BASE           0x0350
858c2ecf20Sopenharmony_ci#define AFE_VUL_D2_END            0x0358
868c2ecf20Sopenharmony_ci#define AFE_VUL_D2_CUR            0x035c
878c2ecf20Sopenharmony_ci#define AFE_DL3_BASE              0x0360
888c2ecf20Sopenharmony_ci#define AFE_DL3_CUR               0x0364
898c2ecf20Sopenharmony_ci#define AFE_DL3_END               0x0368
908c2ecf20Sopenharmony_ci#define AFE_HDMI_OUT_CON0         0x0370
918c2ecf20Sopenharmony_ci#define AFE_HDMI_BASE             0x0374
928c2ecf20Sopenharmony_ci#define AFE_HDMI_CUR              0x0378
938c2ecf20Sopenharmony_ci#define AFE_HDMI_END              0x037c
948c2ecf20Sopenharmony_ci#define AFE_HDMI_CONN0            0x0390
958c2ecf20Sopenharmony_ci#define AFE_IRQ3_MCU_CNT_MON      0x0398
968c2ecf20Sopenharmony_ci#define AFE_IRQ4_MCU_CNT_MON      0x039c
978c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CON           0x03a0
988c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_STATUS        0x03a4
998c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CLR           0x03a8
1008c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT1          0x03ac
1018c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT2          0x03b0
1028c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_EN            0x03b4
1038c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_MON2          0x03b8
1048c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT5          0x03bc
1058c2ecf20Sopenharmony_ci#define AFE_IRQ1_MCU_CNT_MON      0x03c0
1068c2ecf20Sopenharmony_ci#define AFE_IRQ2_MCU_CNT_MON      0x03c4
1078c2ecf20Sopenharmony_ci#define AFE_IRQ1_MCU_EN_CNT_MON   0x03c8
1088c2ecf20Sopenharmony_ci#define AFE_IRQ5_MCU_CNT_MON      0x03cc
1098c2ecf20Sopenharmony_ci#define AFE_MEMIF_MINLEN          0x03d0
1108c2ecf20Sopenharmony_ci#define AFE_MEMIF_MAXLEN          0x03d4
1118c2ecf20Sopenharmony_ci#define AFE_MEMIF_PBUF_SIZE       0x03d8
1128c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT7          0x03dc
1138c2ecf20Sopenharmony_ci#define AFE_IRQ7_MCU_CNT_MON      0x03e0
1148c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT3          0x03e4
1158c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT4          0x03e8
1168c2ecf20Sopenharmony_ci#define AFE_APLL1_TUNER_CFG       0x03f0
1178c2ecf20Sopenharmony_ci#define AFE_APLL2_TUNER_CFG       0x03f4
1188c2ecf20Sopenharmony_ci#define AFE_MEMIF_HD_MODE         0x03f8
1198c2ecf20Sopenharmony_ci#define AFE_MEMIF_HDALIGN         0x03fc
1208c2ecf20Sopenharmony_ci#define AFE_GAIN1_CON0            0x0410
1218c2ecf20Sopenharmony_ci#define AFE_GAIN1_CON1            0x0414
1228c2ecf20Sopenharmony_ci#define AFE_GAIN1_CON2            0x0418
1238c2ecf20Sopenharmony_ci#define AFE_GAIN1_CON3            0x041c
1248c2ecf20Sopenharmony_ci#define AFE_CONN7                 0x0420
1258c2ecf20Sopenharmony_ci#define AFE_GAIN1_CUR             0x0424
1268c2ecf20Sopenharmony_ci#define AFE_GAIN2_CON0            0x0428
1278c2ecf20Sopenharmony_ci#define AFE_GAIN2_CON1            0x042c
1288c2ecf20Sopenharmony_ci#define AFE_GAIN2_CON2            0x0430
1298c2ecf20Sopenharmony_ci#define AFE_GAIN2_CON3            0x0434
1308c2ecf20Sopenharmony_ci#define AFE_CONN8                 0x0438
1318c2ecf20Sopenharmony_ci#define AFE_GAIN2_CUR             0x043c
1328c2ecf20Sopenharmony_ci#define AFE_CONN9                 0x0440
1338c2ecf20Sopenharmony_ci#define AFE_CONN10                0x0444
1348c2ecf20Sopenharmony_ci#define AFE_CONN11                0x0448
1358c2ecf20Sopenharmony_ci#define AFE_CONN12                0x044c
1368c2ecf20Sopenharmony_ci#define AFE_CONN13                0x0450
1378c2ecf20Sopenharmony_ci#define AFE_CONN14                0x0454
1388c2ecf20Sopenharmony_ci#define AFE_CONN15                0x0458
1398c2ecf20Sopenharmony_ci#define AFE_CONN16                0x045c
1408c2ecf20Sopenharmony_ci#define AFE_CONN17                0x0460
1418c2ecf20Sopenharmony_ci#define AFE_CONN18                0x0464
1428c2ecf20Sopenharmony_ci#define AFE_CONN19                0x0468
1438c2ecf20Sopenharmony_ci#define AFE_CONN20                0x046c
1448c2ecf20Sopenharmony_ci#define AFE_CONN21                0x0470
1458c2ecf20Sopenharmony_ci#define AFE_CONN22                0x0474
1468c2ecf20Sopenharmony_ci#define AFE_CONN23                0x0478
1478c2ecf20Sopenharmony_ci#define AFE_CONN24                0x047c
1488c2ecf20Sopenharmony_ci#define AFE_CONN_RS               0x0494
1498c2ecf20Sopenharmony_ci#define AFE_CONN_DI               0x0498
1508c2ecf20Sopenharmony_ci#define AFE_CONN25                0x04b0
1518c2ecf20Sopenharmony_ci#define AFE_CONN26                0x04b4
1528c2ecf20Sopenharmony_ci#define AFE_CONN27                0x04b8
1538c2ecf20Sopenharmony_ci#define AFE_CONN28                0x04bc
1548c2ecf20Sopenharmony_ci#define AFE_CONN29                0x04c0
1558c2ecf20Sopenharmony_ci#define AFE_SRAM_DELSEL_CON0      0x04f0
1568c2ecf20Sopenharmony_ci#define AFE_SRAM_DELSEL_CON1      0x04f4
1578c2ecf20Sopenharmony_ci#define AFE_ASRC_CON0             0x0500
1588c2ecf20Sopenharmony_ci#define AFE_ASRC_CON1             0x0504
1598c2ecf20Sopenharmony_ci#define AFE_ASRC_CON2             0x0508
1608c2ecf20Sopenharmony_ci#define AFE_ASRC_CON3             0x050c
1618c2ecf20Sopenharmony_ci#define AFE_ASRC_CON4             0x0510
1628c2ecf20Sopenharmony_ci#define AFE_ASRC_CON5             0x0514
1638c2ecf20Sopenharmony_ci#define AFE_ASRC_CON6             0x0518
1648c2ecf20Sopenharmony_ci#define AFE_ASRC_CON7             0x051c
1658c2ecf20Sopenharmony_ci#define AFE_ASRC_CON8             0x0520
1668c2ecf20Sopenharmony_ci#define AFE_ASRC_CON9             0x0524
1678c2ecf20Sopenharmony_ci#define AFE_ASRC_CON10            0x0528
1688c2ecf20Sopenharmony_ci#define AFE_ASRC_CON11            0x052c
1698c2ecf20Sopenharmony_ci#define PCM_INTF_CON1             0x0530
1708c2ecf20Sopenharmony_ci#define PCM_INTF_CON2             0x0538
1718c2ecf20Sopenharmony_ci#define PCM2_INTF_CON             0x053c
1728c2ecf20Sopenharmony_ci#define AFE_TDM_CON1              0x0548
1738c2ecf20Sopenharmony_ci#define AFE_TDM_CON2              0x054c
1748c2ecf20Sopenharmony_ci#define AFE_ASRC_CON13            0x0550
1758c2ecf20Sopenharmony_ci#define AFE_ASRC_CON14            0x0554
1768c2ecf20Sopenharmony_ci#define AFE_ASRC_CON15            0x0558
1778c2ecf20Sopenharmony_ci#define AFE_ASRC_CON16            0x055c
1788c2ecf20Sopenharmony_ci#define AFE_ASRC_CON17            0x0560
1798c2ecf20Sopenharmony_ci#define AFE_ASRC_CON18            0x0564
1808c2ecf20Sopenharmony_ci#define AFE_ASRC_CON19            0x0568
1818c2ecf20Sopenharmony_ci#define AFE_ASRC_CON20            0x056c
1828c2ecf20Sopenharmony_ci#define AFE_ASRC_CON21            0x0570
1838c2ecf20Sopenharmony_ci#define CLK_AUDDIV_0              0x05a0
1848c2ecf20Sopenharmony_ci#define CLK_AUDDIV_1              0x05a4
1858c2ecf20Sopenharmony_ci#define CLK_AUDDIV_2              0x05a8
1868c2ecf20Sopenharmony_ci#define CLK_AUDDIV_3              0x05ac
1878c2ecf20Sopenharmony_ci#define AUDIO_TOP_DBG_CON         0x05c8
1888c2ecf20Sopenharmony_ci#define AUDIO_TOP_DBG_MON0        0x05cc
1898c2ecf20Sopenharmony_ci#define AUDIO_TOP_DBG_MON1        0x05d0
1908c2ecf20Sopenharmony_ci#define AUDIO_TOP_DBG_MON2        0x05d4
1918c2ecf20Sopenharmony_ci#define AFE_ADDA2_TOP_CON0        0x0600
1928c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON0            0x06c0
1938c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON1            0x06c4
1948c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON2            0x06c8
1958c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON3            0x06cc
1968c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON4            0x06d0
1978c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON5            0x06d4
1988c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON6            0x06d8
1998c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON7            0x06dc
2008c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON8            0x06e0
2018c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON9            0x06e4
2028c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON10           0x06e8
2038c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON11           0x06ec
2048c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON12           0x06f0
2058c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON13           0x06f4
2068c2ecf20Sopenharmony_ci#define AFE_ASRC4_CON14           0x06f8
2078c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON0            0x0700
2088c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON1            0x0704
2098c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON2            0x0708
2108c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON3            0x070c
2118c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON4            0x0710
2128c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON5            0x0714
2138c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON6            0x0718
2148c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON7            0x071c
2158c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON8            0x0720
2168c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON9            0x0724
2178c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON10           0x0728
2188c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON11           0x072c
2198c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON12           0x0730
2208c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON13           0x0734
2218c2ecf20Sopenharmony_ci#define AFE_ASRC2_CON14           0x0738
2228c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON0            0x0740
2238c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON1            0x0744
2248c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON2            0x0748
2258c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON3            0x074c
2268c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON4            0x0750
2278c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON5            0x0754
2288c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON6            0x0758
2298c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON7            0x075c
2308c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON8            0x0760
2318c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON9            0x0764
2328c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON10           0x0768
2338c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON11           0x076c
2348c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON12           0x0770
2358c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON13           0x0774
2368c2ecf20Sopenharmony_ci#define AFE_ASRC3_CON14           0x0778
2378c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG0          0x0800
2388c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG1          0x0804
2398c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG2          0x0808
2408c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG3          0x080c
2418c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG4          0x0810
2428c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG5          0x0814
2438c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG6          0x0818
2448c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG7          0x081c
2458c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG8          0x0820
2468c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG9          0x0824
2478c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG10         0x0828
2488c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG11         0x082c
2498c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG12         0x0830
2508c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG13         0x0834
2518c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG14         0x0838
2528c2ecf20Sopenharmony_ci#define AFE_GENERAL_REG15         0x083c
2538c2ecf20Sopenharmony_ci#define AFE_CBIP_CFG0             0x0840
2548c2ecf20Sopenharmony_ci#define AFE_CBIP_MON0             0x0844
2558c2ecf20Sopenharmony_ci#define AFE_CBIP_SLV_MUX_MON0     0x0848
2568c2ecf20Sopenharmony_ci#define AFE_CBIP_SLV_DECODER_MON0 0x084c
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci#define AFE_MAX_REGISTER AFE_CBIP_SLV_DECODER_MON0
2598c2ecf20Sopenharmony_ci#define AFE_IRQ_STATUS_BITS 0x5f
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci/* AUDIO_TOP_CON0 */
2628c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_INT_SFT                                 30
2638c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_INT_MASK                                0x1
2648c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_INT_MASK_SFT                            (0x1 << 30)
2658c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_EXT_SFT                                 29
2668c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_EXT_MASK                                0x1
2678c2ecf20Sopenharmony_ci#define AHB_IDLE_EN_EXT_MASK_SFT                            (0x1 << 29)
2688c2ecf20Sopenharmony_ci#define PDN_TML_SFT                                         27
2698c2ecf20Sopenharmony_ci#define PDN_TML_MASK                                        0x1
2708c2ecf20Sopenharmony_ci#define PDN_TML_MASK_SFT                                    (0x1 << 27)
2718c2ecf20Sopenharmony_ci#define PDN_DAC_PREDIS_SFT                                  26
2728c2ecf20Sopenharmony_ci#define PDN_DAC_PREDIS_MASK                                 0x1
2738c2ecf20Sopenharmony_ci#define PDN_DAC_PREDIS_MASK_SFT                             (0x1 << 26)
2748c2ecf20Sopenharmony_ci#define PDN_DAC_SFT                                         25
2758c2ecf20Sopenharmony_ci#define PDN_DAC_MASK                                        0x1
2768c2ecf20Sopenharmony_ci#define PDN_DAC_MASK_SFT                                    (0x1 << 25)
2778c2ecf20Sopenharmony_ci#define PDN_ADC_SFT                                         24
2788c2ecf20Sopenharmony_ci#define PDN_ADC_MASK                                        0x1
2798c2ecf20Sopenharmony_ci#define PDN_ADC_MASK_SFT                                    (0x1 << 24)
2808c2ecf20Sopenharmony_ci#define PDN_TDM_CK_SFT                                      20
2818c2ecf20Sopenharmony_ci#define PDN_TDM_CK_MASK                                     0x1
2828c2ecf20Sopenharmony_ci#define PDN_TDM_CK_MASK_SFT                                 (0x1 << 20)
2838c2ecf20Sopenharmony_ci#define PDN_APLL_TUNER_SFT                                  19
2848c2ecf20Sopenharmony_ci#define PDN_APLL_TUNER_MASK                                 0x1
2858c2ecf20Sopenharmony_ci#define PDN_APLL_TUNER_MASK_SFT                             (0x1 << 19)
2868c2ecf20Sopenharmony_ci#define PDN_APLL2_TUNER_SFT                                 18
2878c2ecf20Sopenharmony_ci#define PDN_APLL2_TUNER_MASK                                0x1
2888c2ecf20Sopenharmony_ci#define PDN_APLL2_TUNER_MASK_SFT                            (0x1 << 18)
2898c2ecf20Sopenharmony_ci#define APB3_SEL_SFT                                        14
2908c2ecf20Sopenharmony_ci#define APB3_SEL_MASK                                       0x1
2918c2ecf20Sopenharmony_ci#define APB3_SEL_MASK_SFT                                   (0x1 << 14)
2928c2ecf20Sopenharmony_ci#define APB_R2T_SFT                                         13
2938c2ecf20Sopenharmony_ci#define APB_R2T_MASK                                        0x1
2948c2ecf20Sopenharmony_ci#define APB_R2T_MASK_SFT                                    (0x1 << 13)
2958c2ecf20Sopenharmony_ci#define APB_W2T_SFT                                         12
2968c2ecf20Sopenharmony_ci#define APB_W2T_MASK                                        0x1
2978c2ecf20Sopenharmony_ci#define APB_W2T_MASK_SFT                                    (0x1 << 12)
2988c2ecf20Sopenharmony_ci#define PDN_24M_SFT                                         9
2998c2ecf20Sopenharmony_ci#define PDN_24M_MASK                                        0x1
3008c2ecf20Sopenharmony_ci#define PDN_24M_MASK_SFT                                    (0x1 << 9)
3018c2ecf20Sopenharmony_ci#define PDN_22M_SFT                                         8
3028c2ecf20Sopenharmony_ci#define PDN_22M_MASK                                        0x1
3038c2ecf20Sopenharmony_ci#define PDN_22M_MASK_SFT                                    (0x1 << 8)
3048c2ecf20Sopenharmony_ci#define PDN_ADDA4_ADC_SFT                                   7
3058c2ecf20Sopenharmony_ci#define PDN_ADDA4_ADC_MASK                                  0x1
3068c2ecf20Sopenharmony_ci#define PDN_ADDA4_ADC_MASK_SFT                              (0x1 << 7)
3078c2ecf20Sopenharmony_ci#define PDN_I2S_SFT                                         6
3088c2ecf20Sopenharmony_ci#define PDN_I2S_MASK                                        0x1
3098c2ecf20Sopenharmony_ci#define PDN_I2S_MASK_SFT                                    (0x1 << 6)
3108c2ecf20Sopenharmony_ci#define PDN_AFE_SFT                                         2
3118c2ecf20Sopenharmony_ci#define PDN_AFE_MASK                                        0x1
3128c2ecf20Sopenharmony_ci#define PDN_AFE_MASK_SFT                                    (0x1 << 2)
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci/* AUDIO_TOP_CON1 */
3158c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_TML_SFT                               17
3168c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_TML_MASK                              0x1
3178c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_TML_MASK_SFT                          (0x1 << 17)
3188c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_SFT                                   16
3198c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_MASK                                  0x1
3208c2ecf20Sopenharmony_ci#define PDN_ADC_HIRES_MASK_SFT                              (0x1 << 16)
3218c2ecf20Sopenharmony_ci#define I2S4_BCLK_SW_CG_SFT                                 7
3228c2ecf20Sopenharmony_ci#define I2S4_BCLK_SW_CG_MASK                                0x1
3238c2ecf20Sopenharmony_ci#define I2S4_BCLK_SW_CG_MASK_SFT                            (0x1 << 7)
3248c2ecf20Sopenharmony_ci#define I2S3_BCLK_SW_CG_SFT                                 6
3258c2ecf20Sopenharmony_ci#define I2S3_BCLK_SW_CG_MASK                                0x1
3268c2ecf20Sopenharmony_ci#define I2S3_BCLK_SW_CG_MASK_SFT                            (0x1 << 6)
3278c2ecf20Sopenharmony_ci#define I2S2_BCLK_SW_CG_SFT                                 5
3288c2ecf20Sopenharmony_ci#define I2S2_BCLK_SW_CG_MASK                                0x1
3298c2ecf20Sopenharmony_ci#define I2S2_BCLK_SW_CG_MASK_SFT                            (0x1 << 5)
3308c2ecf20Sopenharmony_ci#define I2S1_BCLK_SW_CG_SFT                                 4
3318c2ecf20Sopenharmony_ci#define I2S1_BCLK_SW_CG_MASK                                0x1
3328c2ecf20Sopenharmony_ci#define I2S1_BCLK_SW_CG_MASK_SFT                            (0x1 << 4)
3338c2ecf20Sopenharmony_ci#define I2S_SOFT_RST2_SFT                                   2
3348c2ecf20Sopenharmony_ci#define I2S_SOFT_RST2_MASK                                  0x1
3358c2ecf20Sopenharmony_ci#define I2S_SOFT_RST2_MASK_SFT                              (0x1 << 2)
3368c2ecf20Sopenharmony_ci#define I2S_SOFT_RST_SFT                                    1
3378c2ecf20Sopenharmony_ci#define I2S_SOFT_RST_MASK                                   0x1
3388c2ecf20Sopenharmony_ci#define I2S_SOFT_RST_MASK_SFT                               (0x1 << 1)
3398c2ecf20Sopenharmony_ci
3408c2ecf20Sopenharmony_ci/* AFE_DAC_CON0 */
3418c2ecf20Sopenharmony_ci#define AFE_AWB_RETM_SFT                                    31
3428c2ecf20Sopenharmony_ci#define AFE_AWB_RETM_MASK                                   0x1
3438c2ecf20Sopenharmony_ci#define AFE_AWB_RETM_MASK_SFT                               (0x1 << 31)
3448c2ecf20Sopenharmony_ci#define AFE_DL1_DATA2_RETM_SFT                              30
3458c2ecf20Sopenharmony_ci#define AFE_DL1_DATA2_RETM_MASK                             0x1
3468c2ecf20Sopenharmony_ci#define AFE_DL1_DATA2_RETM_MASK_SFT                         (0x1 << 30)
3478c2ecf20Sopenharmony_ci#define AFE_DL2_RETM_SFT                                    29
3488c2ecf20Sopenharmony_ci#define AFE_DL2_RETM_MASK                                   0x1
3498c2ecf20Sopenharmony_ci#define AFE_DL2_RETM_MASK_SFT                               (0x1 << 29)
3508c2ecf20Sopenharmony_ci#define AFE_DL1_RETM_SFT                                    28
3518c2ecf20Sopenharmony_ci#define AFE_DL1_RETM_MASK                                   0x1
3528c2ecf20Sopenharmony_ci#define AFE_DL1_RETM_MASK_SFT                               (0x1 << 28)
3538c2ecf20Sopenharmony_ci#define AFE_ON_RETM_SFT                                     27
3548c2ecf20Sopenharmony_ci#define AFE_ON_RETM_MASK                                    0x1
3558c2ecf20Sopenharmony_ci#define AFE_ON_RETM_MASK_SFT                                (0x1 << 27)
3568c2ecf20Sopenharmony_ci#define MOD_DAI_DUP_WR_SFT                                  26
3578c2ecf20Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK                                 0x1
3588c2ecf20Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK_SFT                             (0x1 << 26)
3598c2ecf20Sopenharmony_ci#define DAI_MODE_SFT                                        24
3608c2ecf20Sopenharmony_ci#define DAI_MODE_MASK                                       0x3
3618c2ecf20Sopenharmony_ci#define DAI_MODE_MASK_SFT                                   (0x3 << 24)
3628c2ecf20Sopenharmony_ci#define VUL_DATA2_MODE_SFT                                  20
3638c2ecf20Sopenharmony_ci#define VUL_DATA2_MODE_MASK                                 0xf
3648c2ecf20Sopenharmony_ci#define VUL_DATA2_MODE_MASK_SFT                             (0xf << 20)
3658c2ecf20Sopenharmony_ci#define DL1_DATA2_MODE_SFT                                  16
3668c2ecf20Sopenharmony_ci#define DL1_DATA2_MODE_MASK                                 0xf
3678c2ecf20Sopenharmony_ci#define DL1_DATA2_MODE_MASK_SFT                             (0xf << 16)
3688c2ecf20Sopenharmony_ci#define DL3_MODE_SFT                                        12
3698c2ecf20Sopenharmony_ci#define DL3_MODE_MASK                                       0xf
3708c2ecf20Sopenharmony_ci#define DL3_MODE_MASK_SFT                                   (0xf << 12)
3718c2ecf20Sopenharmony_ci#define VUL_DATA2_R_MONO_SFT                                11
3728c2ecf20Sopenharmony_ci#define VUL_DATA2_R_MONO_MASK                               0x1
3738c2ecf20Sopenharmony_ci#define VUL_DATA2_R_MONO_MASK_SFT                           (0x1 << 11)
3748c2ecf20Sopenharmony_ci#define VUL_DATA2_DATA_SFT                                  10
3758c2ecf20Sopenharmony_ci#define VUL_DATA2_DATA_MASK                                 0x1
3768c2ecf20Sopenharmony_ci#define VUL_DATA2_DATA_MASK_SFT                             (0x1 << 10)
3778c2ecf20Sopenharmony_ci#define VUL_DATA2_ON_SFT                                    9
3788c2ecf20Sopenharmony_ci#define VUL_DATA2_ON_MASK                                   0x1
3798c2ecf20Sopenharmony_ci#define VUL_DATA2_ON_MASK_SFT                               (0x1 << 9)
3808c2ecf20Sopenharmony_ci#define DL1_DATA2_ON_SFT                                    8
3818c2ecf20Sopenharmony_ci#define DL1_DATA2_ON_MASK                                   0x1
3828c2ecf20Sopenharmony_ci#define DL1_DATA2_ON_MASK_SFT                               (0x1 << 8)
3838c2ecf20Sopenharmony_ci#define MOD_DAI_ON_SFT                                      7
3848c2ecf20Sopenharmony_ci#define MOD_DAI_ON_MASK                                     0x1
3858c2ecf20Sopenharmony_ci#define MOD_DAI_ON_MASK_SFT                                 (0x1 << 7)
3868c2ecf20Sopenharmony_ci#define AWB_ON_SFT                                          6
3878c2ecf20Sopenharmony_ci#define AWB_ON_MASK                                         0x1
3888c2ecf20Sopenharmony_ci#define AWB_ON_MASK_SFT                                     (0x1 << 6)
3898c2ecf20Sopenharmony_ci#define DL3_ON_SFT                                          5
3908c2ecf20Sopenharmony_ci#define DL3_ON_MASK                                         0x1
3918c2ecf20Sopenharmony_ci#define DL3_ON_MASK_SFT                                     (0x1 << 5)
3928c2ecf20Sopenharmony_ci#define DAI_ON_SFT                                          4
3938c2ecf20Sopenharmony_ci#define DAI_ON_MASK                                         0x1
3948c2ecf20Sopenharmony_ci#define DAI_ON_MASK_SFT                                     (0x1 << 4)
3958c2ecf20Sopenharmony_ci#define VUL_ON_SFT                                          3
3968c2ecf20Sopenharmony_ci#define VUL_ON_MASK                                         0x1
3978c2ecf20Sopenharmony_ci#define VUL_ON_MASK_SFT                                     (0x1 << 3)
3988c2ecf20Sopenharmony_ci#define DL2_ON_SFT                                          2
3998c2ecf20Sopenharmony_ci#define DL2_ON_MASK                                         0x1
4008c2ecf20Sopenharmony_ci#define DL2_ON_MASK_SFT                                     (0x1 << 2)
4018c2ecf20Sopenharmony_ci#define DL1_ON_SFT                                          1
4028c2ecf20Sopenharmony_ci#define DL1_ON_MASK                                         0x1
4038c2ecf20Sopenharmony_ci#define DL1_ON_MASK_SFT                                     (0x1 << 1)
4048c2ecf20Sopenharmony_ci#define AFE_ON_SFT                                          0
4058c2ecf20Sopenharmony_ci#define AFE_ON_MASK                                         0x1
4068c2ecf20Sopenharmony_ci#define AFE_ON_MASK_SFT                                     (0x1 << 0)
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_ci/* AFE_DAC_CON1 */
4098c2ecf20Sopenharmony_ci#define MOD_DAI_MODE_SFT                                    30
4108c2ecf20Sopenharmony_ci#define MOD_DAI_MODE_MASK                                   0x3
4118c2ecf20Sopenharmony_ci#define MOD_DAI_MODE_MASK_SFT                               (0x3 << 30)
4128c2ecf20Sopenharmony_ci#define DAI_DUP_WR_SFT                                      29
4138c2ecf20Sopenharmony_ci#define DAI_DUP_WR_MASK                                     0x1
4148c2ecf20Sopenharmony_ci#define DAI_DUP_WR_MASK_SFT                                 (0x1 << 29)
4158c2ecf20Sopenharmony_ci#define VUL_R_MONO_SFT                                      28
4168c2ecf20Sopenharmony_ci#define VUL_R_MONO_MASK                                     0x1
4178c2ecf20Sopenharmony_ci#define VUL_R_MONO_MASK_SFT                                 (0x1 << 28)
4188c2ecf20Sopenharmony_ci#define VUL_DATA_SFT                                        27
4198c2ecf20Sopenharmony_ci#define VUL_DATA_MASK                                       0x1
4208c2ecf20Sopenharmony_ci#define VUL_DATA_MASK_SFT                                   (0x1 << 27)
4218c2ecf20Sopenharmony_ci#define AXI_2X1_CG_DISABLE_SFT                              26
4228c2ecf20Sopenharmony_ci#define AXI_2X1_CG_DISABLE_MASK                             0x1
4238c2ecf20Sopenharmony_ci#define AXI_2X1_CG_DISABLE_MASK_SFT                         (0x1 << 26)
4248c2ecf20Sopenharmony_ci#define AWB_R_MONO_SFT                                      25
4258c2ecf20Sopenharmony_ci#define AWB_R_MONO_MASK                                     0x1
4268c2ecf20Sopenharmony_ci#define AWB_R_MONO_MASK_SFT                                 (0x1 << 25)
4278c2ecf20Sopenharmony_ci#define AWB_DATA_SFT                                        24
4288c2ecf20Sopenharmony_ci#define AWB_DATA_MASK                                       0x1
4298c2ecf20Sopenharmony_ci#define AWB_DATA_MASK_SFT                                   (0x1 << 24)
4308c2ecf20Sopenharmony_ci#define DL3_DATA_SFT                                        23
4318c2ecf20Sopenharmony_ci#define DL3_DATA_MASK                                       0x1
4328c2ecf20Sopenharmony_ci#define DL3_DATA_MASK_SFT                                   (0x1 << 23)
4338c2ecf20Sopenharmony_ci#define DL2_DATA_SFT                                        22
4348c2ecf20Sopenharmony_ci#define DL2_DATA_MASK                                       0x1
4358c2ecf20Sopenharmony_ci#define DL2_DATA_MASK_SFT                                   (0x1 << 22)
4368c2ecf20Sopenharmony_ci#define DL1_DATA_SFT                                        21
4378c2ecf20Sopenharmony_ci#define DL1_DATA_MASK                                       0x1
4388c2ecf20Sopenharmony_ci#define DL1_DATA_MASK_SFT                                   (0x1 << 21)
4398c2ecf20Sopenharmony_ci#define DL1_DATA2_DATA_SFT                                  20
4408c2ecf20Sopenharmony_ci#define DL1_DATA2_DATA_MASK                                 0x1
4418c2ecf20Sopenharmony_ci#define DL1_DATA2_DATA_MASK_SFT                             (0x1 << 20)
4428c2ecf20Sopenharmony_ci#define VUL_MODE_SFT                                        16
4438c2ecf20Sopenharmony_ci#define VUL_MODE_MASK                                       0xf
4448c2ecf20Sopenharmony_ci#define VUL_MODE_MASK_SFT                                   (0xf << 16)
4458c2ecf20Sopenharmony_ci#define AWB_MODE_SFT                                        12
4468c2ecf20Sopenharmony_ci#define AWB_MODE_MASK                                       0xf
4478c2ecf20Sopenharmony_ci#define AWB_MODE_MASK_SFT                                   (0xf << 12)
4488c2ecf20Sopenharmony_ci#define I2S_MODE_SFT                                        8
4498c2ecf20Sopenharmony_ci#define I2S_MODE_MASK                                       0xf
4508c2ecf20Sopenharmony_ci#define I2S_MODE_MASK_SFT                                   (0xf << 8)
4518c2ecf20Sopenharmony_ci#define DL2_MODE_SFT                                        4
4528c2ecf20Sopenharmony_ci#define DL2_MODE_MASK                                       0xf
4538c2ecf20Sopenharmony_ci#define DL2_MODE_MASK_SFT                                   (0xf << 4)
4548c2ecf20Sopenharmony_ci#define DL1_MODE_SFT                                        0
4558c2ecf20Sopenharmony_ci#define DL1_MODE_MASK                                       0xf
4568c2ecf20Sopenharmony_ci#define DL1_MODE_MASK_SFT                                   (0xf << 0)
4578c2ecf20Sopenharmony_ci
4588c2ecf20Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON0 */
4598c2ecf20Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_SFT                             28
4608c2ecf20Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK                            0xf
4618c2ecf20Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK_SFT                        (0xf << 28)
4628c2ecf20Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_SFT                      27
4638c2ecf20Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK                     0x1
4648c2ecf20Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT                 (0x1 << 27)
4658c2ecf20Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_SFT                      26
4668c2ecf20Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK                     0x1
4678c2ecf20Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT                 (0x1 << 26)
4688c2ecf20Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_SFT                             24
4698c2ecf20Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK                            0x3
4708c2ecf20Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK_SFT                        (0x3 << 24)
4718c2ecf20Sopenharmony_ci#define DL_2_FADEIN_0START_EN_SFT                           16
4728c2ecf20Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK                          0x3
4738c2ecf20Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK_SFT                      (0x3 << 16)
4748c2ecf20Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_SFT                            15
4758c2ecf20Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK                           0x1
4768c2ecf20Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK_SFT                       (0x1 << 15)
4778c2ecf20Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_SFT                           14
4788c2ecf20Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK                          0x1
4798c2ecf20Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT                      (0x1 << 14)
4808c2ecf20Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT                       13
4818c2ecf20Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK                      0x1
4828c2ecf20Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT                  (0x1 << 13)
4838c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT                       12
4848c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK                      0x1
4858c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT                  (0x1 << 12)
4868c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT                       11
4878c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK                      0x1
4888c2ecf20Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT                  (0x1 << 11)
4898c2ecf20Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_SFT                             9
4908c2ecf20Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK                            0x3
4918c2ecf20Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK_SFT                        (0x3 << 9)
4928c2ecf20Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_SFT                            6
4938c2ecf20Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK                           0x7
4948c2ecf20Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK_SFT                       (0x7 << 6)
4958c2ecf20Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_SFT                         5
4968c2ecf20Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK                        0x1
4978c2ecf20Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT                    (0x1 << 5)
4988c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT                        4
4998c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK                       0x1
5008c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT                   (0x1 << 4)
5018c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT                        3
5028c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK                       0x1
5038c2ecf20Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT                   (0x1 << 3)
5048c2ecf20Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_SFT                             2
5058c2ecf20Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK                            0x1
5068c2ecf20Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK_SFT                        (0x1 << 2)
5078c2ecf20Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_SFT                            1
5088c2ecf20Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK                           0x1
5098c2ecf20Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT                       (0x1 << 1)
5108c2ecf20Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_SFT                         0
5118c2ecf20Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK                        0x1
5128c2ecf20Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT                    (0x1 << 0)
5138c2ecf20Sopenharmony_ci
5148c2ecf20Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON1 */
5158c2ecf20Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_SFT                               16
5168c2ecf20Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK                              0xffff
5178c2ecf20Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK_SFT                          (0xffff << 16)
5188c2ecf20Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_SFT                              0
5198c2ecf20Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK                             0x1
5208c2ecf20Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK_SFT                         (0x1 << 0)
5218c2ecf20Sopenharmony_ci
5228c2ecf20Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON0 */
5238c2ecf20Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_SFT                          31
5248c2ecf20Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_MASK                         0x1
5258c2ecf20Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_MASK_SFT                     (0x1 << 31)
5268c2ecf20Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_SFT                          30
5278c2ecf20Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_MASK                         0x1
5288c2ecf20Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_MASK_SFT                     (0x1 << 30)
5298c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_SFT                      27
5308c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK                     0x7
5318c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK_SFT                 (0x7 << 27)
5328c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_SFT                      24
5338c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK                     0x7
5348c2ecf20Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK_SFT                 (0x7 << 24)
5358c2ecf20Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_SFT                           23
5368c2ecf20Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_MASK                          0x1
5378c2ecf20Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_MASK_SFT                      (0x1 << 23)
5388c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_SFT                           22
5398c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK                          0x1
5408c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK_SFT                      (0x1 << 22)
5418c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_SFT                           21
5428c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK                          0x1
5438c2ecf20Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK_SFT                      (0x1 << 21)
5448c2ecf20Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_SFT                          20
5458c2ecf20Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_MASK                         0x1
5468c2ecf20Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_MASK_SFT                     (0x1 << 20)
5478c2ecf20Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_SFT                       17
5488c2ecf20Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK                      0x7
5498c2ecf20Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT                  (0x7 << 17)
5508c2ecf20Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_SFT                         14
5518c2ecf20Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK                        0x3
5528c2ecf20Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK_SFT                    (0x3 << 14)
5538c2ecf20Sopenharmony_ci#define DMIC_48K_SEL_CTL_SFT                                13
5548c2ecf20Sopenharmony_ci#define DMIC_48K_SEL_CTL_MASK                               0x1
5558c2ecf20Sopenharmony_ci#define DMIC_48K_SEL_CTL_MASK_SFT                           (0x1 << 13)
5568c2ecf20Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_SFT                            12
5578c2ecf20Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK                           0x1
5588c2ecf20Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK_SFT                       (0x1 << 12)
5598c2ecf20Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_SFT                               10
5608c2ecf20Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK                              0x1
5618c2ecf20Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK_SFT                          (0x1 << 10)
5628c2ecf20Sopenharmony_ci#define UL_IIRMODE_CTL_SFT                                  7
5638c2ecf20Sopenharmony_ci#define UL_IIRMODE_CTL_MASK                                 0x7
5648c2ecf20Sopenharmony_ci#define UL_IIRMODE_CTL_MASK_SFT                             (0x7 << 7)
5658c2ecf20Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_SFT                     5
5668c2ecf20Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK                    0x1
5678c2ecf20Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT                (0x1 << 5)
5688c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_SFT                            4
5698c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_MASK                           0x1
5708c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_MASK_SFT                       (0x1 << 4)
5718c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_SFT                            3
5728c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_MASK                           0x1
5738c2ecf20Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_MASK_SFT                       (0x1 << 3)
5748c2ecf20Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_SFT                           2
5758c2ecf20Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK                          0x1
5768c2ecf20Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK_SFT                      (0x1 << 2)
5778c2ecf20Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_SFT                              1
5788c2ecf20Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK                             0x1
5798c2ecf20Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK_SFT                         (0x1 << 1)
5808c2ecf20Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_SFT                               0
5818c2ecf20Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK                              0x1
5828c2ecf20Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK_SFT                          (0x1 << 0)
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON1 */
5858c2ecf20Sopenharmony_ci#define C_SDM_RESET_CTL_SFT                                 31
5868c2ecf20Sopenharmony_ci#define C_SDM_RESET_CTL_MASK                                0x1
5878c2ecf20Sopenharmony_ci#define C_SDM_RESET_CTL_MASK_SFT                            (0x1 << 31)
5888c2ecf20Sopenharmony_ci#define ADITHON_CTL_SFT                                     30
5898c2ecf20Sopenharmony_ci#define ADITHON_CTL_MASK                                    0x1
5908c2ecf20Sopenharmony_ci#define ADITHON_CTL_MASK_SFT                                (0x1 << 30)
5918c2ecf20Sopenharmony_ci#define ADITHVAL_CTL_SFT                                    28
5928c2ecf20Sopenharmony_ci#define ADITHVAL_CTL_MASK                                   0x3
5938c2ecf20Sopenharmony_ci#define ADITHVAL_CTL_MASK_SFT                               (0x3 << 28)
5948c2ecf20Sopenharmony_ci#define C_DAC_EN_CTL_SFT                                    27
5958c2ecf20Sopenharmony_ci#define C_DAC_EN_CTL_MASK                                   0x1
5968c2ecf20Sopenharmony_ci#define C_DAC_EN_CTL_MASK_SFT                               (0x1 << 27)
5978c2ecf20Sopenharmony_ci#define C_MUTE_SW_CTL_SFT                                   26
5988c2ecf20Sopenharmony_ci#define C_MUTE_SW_CTL_MASK                                  0x1
5998c2ecf20Sopenharmony_ci#define C_MUTE_SW_CTL_MASK_SFT                              (0x1 << 26)
6008c2ecf20Sopenharmony_ci#define ASDM_SRC_SEL_CTL_SFT                                25
6018c2ecf20Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK                               0x1
6028c2ecf20Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK_SFT                           (0x1 << 25)
6038c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_SFT                               21
6048c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK                              0x7
6058c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK_SFT                          (0x7 << 21)
6068c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_SFT                              16
6078c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK                             0x1f
6088c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK_SFT                         (0x1f << 16)
6098c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_SFT                             12
6108c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK                            0xf
6118c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK_SFT                        (0xf << 12)
6128c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_SFT                               9
6138c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK                              0x7
6148c2ecf20Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK_SFT                          (0x7 << 9)
6158c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_SFT                              4
6168c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK                             0x1f
6178c2ecf20Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK_SFT                         (0x1f << 4)
6188c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_SFT                             0
6198c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK                            0xf
6208c2ecf20Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK_SFT                        (0xf << 0)
6218c2ecf20Sopenharmony_ci
6228c2ecf20Sopenharmony_ci/* AFE_ADDA_TOP_CON0 */
6238c2ecf20Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_SFT                            12
6248c2ecf20Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK                           0xf
6258c2ecf20Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK_SFT                       (0xf << 12)
6268c2ecf20Sopenharmony_ci#define C_EXT_ADC_CTL_SFT                                   0
6278c2ecf20Sopenharmony_ci#define C_EXT_ADC_CTL_MASK                                  0x1
6288c2ecf20Sopenharmony_ci#define C_EXT_ADC_CTL_MASK_SFT                              (0x1 << 0)
6298c2ecf20Sopenharmony_ci
6308c2ecf20Sopenharmony_ci/* AFE_ADDA_UL_DL_CON0 */
6318c2ecf20Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_SFT                         1
6328c2ecf20Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_MASK                        0x3fff
6338c2ecf20Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_MASK_SFT                    (0x3fff << 1)
6348c2ecf20Sopenharmony_ci#define ADDA_AFE_ON_SFT                                     0
6358c2ecf20Sopenharmony_ci#define ADDA_AFE_ON_MASK                                    0x1
6368c2ecf20Sopenharmony_ci#define ADDA_AFE_ON_MASK_SFT                                (0x1 << 0)
6378c2ecf20Sopenharmony_ci
6388c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CON */
6398c2ecf20Sopenharmony_ci#define IRQ7_MCU_MODE_SFT                                   24
6408c2ecf20Sopenharmony_ci#define IRQ7_MCU_MODE_MASK                                  0xf
6418c2ecf20Sopenharmony_ci#define IRQ7_MCU_MODE_MASK_SFT                              (0xf << 24)
6428c2ecf20Sopenharmony_ci#define IRQ4_MCU_MODE_SFT                                   20
6438c2ecf20Sopenharmony_ci#define IRQ4_MCU_MODE_MASK                                  0xf
6448c2ecf20Sopenharmony_ci#define IRQ4_MCU_MODE_MASK_SFT                              (0xf << 20)
6458c2ecf20Sopenharmony_ci#define IRQ3_MCU_MODE_SFT                                   16
6468c2ecf20Sopenharmony_ci#define IRQ3_MCU_MODE_MASK                                  0xf
6478c2ecf20Sopenharmony_ci#define IRQ3_MCU_MODE_MASK_SFT                              (0xf << 16)
6488c2ecf20Sopenharmony_ci#define IRQ7_MCU_ON_SFT                                     14
6498c2ecf20Sopenharmony_ci#define IRQ7_MCU_ON_MASK                                    0x1
6508c2ecf20Sopenharmony_ci#define IRQ7_MCU_ON_MASK_SFT                                (0x1 << 14)
6518c2ecf20Sopenharmony_ci#define IRQ5_MCU_ON_SFT                                     12
6528c2ecf20Sopenharmony_ci#define IRQ5_MCU_ON_MASK                                    0x1
6538c2ecf20Sopenharmony_ci#define IRQ5_MCU_ON_MASK_SFT                                (0x1 << 12)
6548c2ecf20Sopenharmony_ci#define IRQ2_MCU_MODE_SFT                                   8
6558c2ecf20Sopenharmony_ci#define IRQ2_MCU_MODE_MASK                                  0xf
6568c2ecf20Sopenharmony_ci#define IRQ2_MCU_MODE_MASK_SFT                              (0xf << 8)
6578c2ecf20Sopenharmony_ci#define IRQ1_MCU_MODE_SFT                                   4
6588c2ecf20Sopenharmony_ci#define IRQ1_MCU_MODE_MASK                                  0xf
6598c2ecf20Sopenharmony_ci#define IRQ1_MCU_MODE_MASK_SFT                              (0xf << 4)
6608c2ecf20Sopenharmony_ci#define IRQ4_MCU_ON_SFT                                     3
6618c2ecf20Sopenharmony_ci#define IRQ4_MCU_ON_MASK                                    0x1
6628c2ecf20Sopenharmony_ci#define IRQ4_MCU_ON_MASK_SFT                                (0x1 << 3)
6638c2ecf20Sopenharmony_ci#define IRQ3_MCU_ON_SFT                                     2
6648c2ecf20Sopenharmony_ci#define IRQ3_MCU_ON_MASK                                    0x1
6658c2ecf20Sopenharmony_ci#define IRQ3_MCU_ON_MASK_SFT                                (0x1 << 2)
6668c2ecf20Sopenharmony_ci#define IRQ2_MCU_ON_SFT                                     1
6678c2ecf20Sopenharmony_ci#define IRQ2_MCU_ON_MASK                                    0x1
6688c2ecf20Sopenharmony_ci#define IRQ2_MCU_ON_MASK_SFT                                (0x1 << 1)
6698c2ecf20Sopenharmony_ci#define IRQ1_MCU_ON_SFT                                     0
6708c2ecf20Sopenharmony_ci#define IRQ1_MCU_ON_MASK                                    0x1
6718c2ecf20Sopenharmony_ci#define IRQ1_MCU_ON_MASK_SFT                                (0x1 << 0)
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_EN */
6748c2ecf20Sopenharmony_ci#define AFE_IRQ_CM4_EN_SFT                                  16
6758c2ecf20Sopenharmony_ci#define AFE_IRQ_CM4_EN_MASK                                 0x7f
6768c2ecf20Sopenharmony_ci#define AFE_IRQ_CM4_EN_MASK_SFT                             (0x7f << 16)
6778c2ecf20Sopenharmony_ci#define AFE_IRQ_MD32_EN_SFT                                 8
6788c2ecf20Sopenharmony_ci#define AFE_IRQ_MD32_EN_MASK                                0x7f
6798c2ecf20Sopenharmony_ci#define AFE_IRQ_MD32_EN_MASK_SFT                            (0x7f << 8)
6808c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_EN_SFT                                  0
6818c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_EN_MASK                                 0x7f
6828c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_EN_MASK_SFT                             (0x7f << 0)
6838c2ecf20Sopenharmony_ci
6848c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CLR */
6858c2ecf20Sopenharmony_ci#define IRQ7_MCU_CLR_SFT                                    6
6868c2ecf20Sopenharmony_ci#define IRQ7_MCU_CLR_MASK                                   0x1
6878c2ecf20Sopenharmony_ci#define IRQ7_MCU_CLR_MASK_SFT                               (0x1 << 6)
6888c2ecf20Sopenharmony_ci#define IRQ5_MCU_CLR_SFT                                    4
6898c2ecf20Sopenharmony_ci#define IRQ5_MCU_CLR_MASK                                   0x1
6908c2ecf20Sopenharmony_ci#define IRQ5_MCU_CLR_MASK_SFT                               (0x1 << 4)
6918c2ecf20Sopenharmony_ci#define IRQ4_MCU_CLR_SFT                                    3
6928c2ecf20Sopenharmony_ci#define IRQ4_MCU_CLR_MASK                                   0x1
6938c2ecf20Sopenharmony_ci#define IRQ4_MCU_CLR_MASK_SFT                               (0x1 << 3)
6948c2ecf20Sopenharmony_ci#define IRQ3_MCU_CLR_SFT                                    2
6958c2ecf20Sopenharmony_ci#define IRQ3_MCU_CLR_MASK                                   0x1
6968c2ecf20Sopenharmony_ci#define IRQ3_MCU_CLR_MASK_SFT                               (0x1 << 2)
6978c2ecf20Sopenharmony_ci#define IRQ2_MCU_CLR_SFT                                    1
6988c2ecf20Sopenharmony_ci#define IRQ2_MCU_CLR_MASK                                   0x1
6998c2ecf20Sopenharmony_ci#define IRQ2_MCU_CLR_MASK_SFT                               (0x1 << 1)
7008c2ecf20Sopenharmony_ci#define IRQ1_MCU_CLR_SFT                                    0
7018c2ecf20Sopenharmony_ci#define IRQ1_MCU_CLR_MASK                                   0x1
7028c2ecf20Sopenharmony_ci#define IRQ1_MCU_CLR_MASK_SFT                               (0x1 << 0)
7038c2ecf20Sopenharmony_ci
7048c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT1 */
7058c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_SFT                                0
7068c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_MASK                               0x3ffff
7078c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_MASK_SFT                           (0x3ffff << 0)
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT2 */
7108c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_SFT                                0
7118c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_MASK                               0x3ffff
7128c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_MASK_SFT                           (0x3ffff << 0)
7138c2ecf20Sopenharmony_ci
7148c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT3 */
7158c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_SFT                                0
7168c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_MASK                               0x3ffff
7178c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_MASK_SFT                           (0x3ffff << 0)
7188c2ecf20Sopenharmony_ci
7198c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT4 */
7208c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_SFT                                0
7218c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_MASK                               0x3ffff
7228c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_MASK_SFT                           (0x3ffff << 0)
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT5 */
7258c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_SFT                                0
7268c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_MASK                               0x3ffff
7278c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_MASK_SFT                           (0x3ffff << 0)
7288c2ecf20Sopenharmony_ci
7298c2ecf20Sopenharmony_ci/* AFE_IRQ_MCU_CNT7 */
7308c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_SFT                                0
7318c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_MASK                               0x3ffff
7328c2ecf20Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_MASK_SFT                           (0x3ffff << 0)
7338c2ecf20Sopenharmony_ci
7348c2ecf20Sopenharmony_ci/* AFE_MEMIF_MSB */
7358c2ecf20Sopenharmony_ci#define CPU_COMPACT_MODE_SFT                                23
7368c2ecf20Sopenharmony_ci#define CPU_COMPACT_MODE_MASK                               0x1
7378c2ecf20Sopenharmony_ci#define CPU_COMPACT_MODE_MASK_SFT                           (0x1 << 23)
7388c2ecf20Sopenharmony_ci#define CPU_HD_ALIGN_SFT                                    22
7398c2ecf20Sopenharmony_ci#define CPU_HD_ALIGN_MASK                                   0x1
7408c2ecf20Sopenharmony_ci#define CPU_HD_ALIGN_MASK_SFT                               (0x1 << 22)
7418c2ecf20Sopenharmony_ci
7428c2ecf20Sopenharmony_ci/* AFE_MEMIF_HD_MODE */
7438c2ecf20Sopenharmony_ci#define HDMI_HD_SFT                                         20
7448c2ecf20Sopenharmony_ci#define HDMI_HD_MASK                                        0x3
7458c2ecf20Sopenharmony_ci#define HDMI_HD_MASK_SFT                                    (0x3 << 20)
7468c2ecf20Sopenharmony_ci#define MOD_DAI_HD_SFT                                      18
7478c2ecf20Sopenharmony_ci#define MOD_DAI_HD_MASK                                     0x3
7488c2ecf20Sopenharmony_ci#define MOD_DAI_HD_MASK_SFT                                 (0x3 << 18)
7498c2ecf20Sopenharmony_ci#define DAI_HD_SFT                                          16
7508c2ecf20Sopenharmony_ci#define DAI_HD_MASK                                         0x3
7518c2ecf20Sopenharmony_ci#define DAI_HD_MASK_SFT                                     (0x3 << 16)
7528c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_SFT                                    12
7538c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_MASK                                   0x3
7548c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_MASK_SFT                               (0x3 << 12)
7558c2ecf20Sopenharmony_ci#define VUL_HD_SFT                                          10
7568c2ecf20Sopenharmony_ci#define VUL_HD_MASK                                         0x3
7578c2ecf20Sopenharmony_ci#define VUL_HD_MASK_SFT                                     (0x3 << 10)
7588c2ecf20Sopenharmony_ci#define AWB_HD_SFT                                          8
7598c2ecf20Sopenharmony_ci#define AWB_HD_MASK                                         0x3
7608c2ecf20Sopenharmony_ci#define AWB_HD_MASK_SFT                                     (0x3 << 8)
7618c2ecf20Sopenharmony_ci#define DL3_HD_SFT                                          6
7628c2ecf20Sopenharmony_ci#define DL3_HD_MASK                                         0x3
7638c2ecf20Sopenharmony_ci#define DL3_HD_MASK_SFT                                     (0x3 << 6)
7648c2ecf20Sopenharmony_ci#define DL2_HD_SFT                                          4
7658c2ecf20Sopenharmony_ci#define DL2_HD_MASK                                         0x3
7668c2ecf20Sopenharmony_ci#define DL2_HD_MASK_SFT                                     (0x3 << 4)
7678c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_SFT                                    2
7688c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_MASK                                   0x3
7698c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_MASK_SFT                               (0x3 << 2)
7708c2ecf20Sopenharmony_ci#define DL1_HD_SFT                                          0
7718c2ecf20Sopenharmony_ci#define DL1_HD_MASK                                         0x3
7728c2ecf20Sopenharmony_ci#define DL1_HD_MASK_SFT                                     (0x3 << 0)
7738c2ecf20Sopenharmony_ci
7748c2ecf20Sopenharmony_ci/* AFE_MEMIF_HDALIGN */
7758c2ecf20Sopenharmony_ci#define HDMI_NORMAL_MODE_SFT                                26
7768c2ecf20Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK                               0x1
7778c2ecf20Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK_SFT                           (0x1 << 26)
7788c2ecf20Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_SFT                             25
7798c2ecf20Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK                            0x1
7808c2ecf20Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK_SFT                        (0x1 << 25)
7818c2ecf20Sopenharmony_ci#define DAI_NORMAL_MODE_SFT                                 24
7828c2ecf20Sopenharmony_ci#define DAI_NORMAL_MODE_MASK                                0x1
7838c2ecf20Sopenharmony_ci#define DAI_NORMAL_MODE_MASK_SFT                            (0x1 << 24)
7848c2ecf20Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_SFT                           22
7858c2ecf20Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_MASK                          0x1
7868c2ecf20Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_MASK_SFT                      (0x1 << 22)
7878c2ecf20Sopenharmony_ci#define VUL_NORMAL_MODE_SFT                                 21
7888c2ecf20Sopenharmony_ci#define VUL_NORMAL_MODE_MASK                                0x1
7898c2ecf20Sopenharmony_ci#define VUL_NORMAL_MODE_MASK_SFT                            (0x1 << 21)
7908c2ecf20Sopenharmony_ci#define AWB_NORMAL_MODE_SFT                                 20
7918c2ecf20Sopenharmony_ci#define AWB_NORMAL_MODE_MASK                                0x1
7928c2ecf20Sopenharmony_ci#define AWB_NORMAL_MODE_MASK_SFT                            (0x1 << 20)
7938c2ecf20Sopenharmony_ci#define DL3_NORMAL_MODE_SFT                                 19
7948c2ecf20Sopenharmony_ci#define DL3_NORMAL_MODE_MASK                                0x1
7958c2ecf20Sopenharmony_ci#define DL3_NORMAL_MODE_MASK_SFT                            (0x1 << 19)
7968c2ecf20Sopenharmony_ci#define DL2_NORMAL_MODE_SFT                                 18
7978c2ecf20Sopenharmony_ci#define DL2_NORMAL_MODE_MASK                                0x1
7988c2ecf20Sopenharmony_ci#define DL2_NORMAL_MODE_MASK_SFT                            (0x1 << 18)
7998c2ecf20Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_SFT                           17
8008c2ecf20Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_MASK                          0x1
8018c2ecf20Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_MASK_SFT                      (0x1 << 17)
8028c2ecf20Sopenharmony_ci#define DL1_NORMAL_MODE_SFT                                 16
8038c2ecf20Sopenharmony_ci#define DL1_NORMAL_MODE_MASK                                0x1
8048c2ecf20Sopenharmony_ci#define DL1_NORMAL_MODE_MASK_SFT                            (0x1 << 16)
8058c2ecf20Sopenharmony_ci#define HDMI_HD_ALIGN_SFT                                   10
8068c2ecf20Sopenharmony_ci#define HDMI_HD_ALIGN_MASK                                  0x1
8078c2ecf20Sopenharmony_ci#define HDMI_HD_ALIGN_MASK_SFT                              (0x1 << 10)
8088c2ecf20Sopenharmony_ci#define MOD_DAI_HD_ALIGN_SFT                                9
8098c2ecf20Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK                               0x1
8108c2ecf20Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK_SFT                           (0x1 << 9)
8118c2ecf20Sopenharmony_ci#define DAI_ALIGN_SFT                                       8
8128c2ecf20Sopenharmony_ci#define DAI_ALIGN_MASK                                      0x1
8138c2ecf20Sopenharmony_ci#define DAI_ALIGN_MASK_SFT                                  (0x1 << 8)
8148c2ecf20Sopenharmony_ci#define VUL2_HD_ALIGN_SFT                                   7
8158c2ecf20Sopenharmony_ci#define VUL2_HD_ALIGN_MASK                                  0x1
8168c2ecf20Sopenharmony_ci#define VUL2_HD_ALIGN_MASK_SFT                              (0x1 << 7)
8178c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_SFT                              6
8188c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_MASK                             0x1
8198c2ecf20Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_MASK_SFT                         (0x1 << 6)
8208c2ecf20Sopenharmony_ci#define VUL_HD_ALIGN_SFT                                    5
8218c2ecf20Sopenharmony_ci#define VUL_HD_ALIGN_MASK                                   0x1
8228c2ecf20Sopenharmony_ci#define VUL_HD_ALIGN_MASK_SFT                               (0x1 << 5)
8238c2ecf20Sopenharmony_ci#define AWB_HD_ALIGN_SFT                                    4
8248c2ecf20Sopenharmony_ci#define AWB_HD_ALIGN_MASK                                   0x1
8258c2ecf20Sopenharmony_ci#define AWB_HD_ALIGN_MASK_SFT                               (0x1 << 4)
8268c2ecf20Sopenharmony_ci#define DL3_HD_ALIGN_SFT                                    3
8278c2ecf20Sopenharmony_ci#define DL3_HD_ALIGN_MASK                                   0x1
8288c2ecf20Sopenharmony_ci#define DL3_HD_ALIGN_MASK_SFT                               (0x1 << 3)
8298c2ecf20Sopenharmony_ci#define DL2_HD_ALIGN_SFT                                    2
8308c2ecf20Sopenharmony_ci#define DL2_HD_ALIGN_MASK                                   0x1
8318c2ecf20Sopenharmony_ci#define DL2_HD_ALIGN_MASK_SFT                               (0x1 << 2)
8328c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_SFT                              1
8338c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_MASK                             0x1
8348c2ecf20Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_MASK_SFT                         (0x1 << 1)
8358c2ecf20Sopenharmony_ci#define DL1_HD_ALIGN_SFT                                    0
8368c2ecf20Sopenharmony_ci#define DL1_HD_ALIGN_MASK                                   0x1
8378c2ecf20Sopenharmony_ci#define DL1_HD_ALIGN_MASK_SFT                               (0x1 << 0)
8388c2ecf20Sopenharmony_ci
8398c2ecf20Sopenharmony_ci/* PCM_INTF_CON1 */
8408c2ecf20Sopenharmony_ci#define PCM_FIX_VALUE_SEL_SFT                               31
8418c2ecf20Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK                              0x1
8428c2ecf20Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK_SFT                          (0x1 << 31)
8438c2ecf20Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_SFT                             30
8448c2ecf20Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK                            0x1
8458c2ecf20Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK_SFT                        (0x1 << 30)
8468c2ecf20Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_SFT                           29
8478c2ecf20Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK                          0x1
8488c2ecf20Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK_SFT                      (0x1 << 29)
8498c2ecf20Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_SFT                             28
8508c2ecf20Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK                            0x1
8518c2ecf20Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK_SFT                        (0x1 << 28)
8528c2ecf20Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_SFT                            27
8538c2ecf20Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK                           0x1
8548c2ecf20Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK_SFT                       (0x1 << 27)
8558c2ecf20Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_SFT                            26
8568c2ecf20Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK                           0x1
8578c2ecf20Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK_SFT                       (0x1 << 26)
8588c2ecf20Sopenharmony_ci#define PCM_SYNC_DELSEL_SFT                                 25
8598c2ecf20Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK                                0x1
8608c2ecf20Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK_SFT                            (0x1 << 25)
8618c2ecf20Sopenharmony_ci#define PCM_TX_LR_SWAP_SFT                                  24
8628c2ecf20Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK                                 0x1
8638c2ecf20Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK_SFT                             (0x1 << 24)
8648c2ecf20Sopenharmony_ci#define PCM_SYNC_OUT_INV_SFT                                23
8658c2ecf20Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK                               0x1
8668c2ecf20Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK_SFT                           (0x1 << 23)
8678c2ecf20Sopenharmony_ci#define PCM_BCLK_OUT_INV_SFT                                22
8688c2ecf20Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK                               0x1
8698c2ecf20Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK_SFT                           (0x1 << 22)
8708c2ecf20Sopenharmony_ci#define PCM_SYNC_IN_INV_SFT                                 21
8718c2ecf20Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK                                0x1
8728c2ecf20Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK_SFT                            (0x1 << 21)
8738c2ecf20Sopenharmony_ci#define PCM_BCLK_IN_INV_SFT                                 20
8748c2ecf20Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK                                0x1
8758c2ecf20Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK_SFT                            (0x1 << 20)
8768c2ecf20Sopenharmony_ci#define PCM_TX_LCH_RPT_SFT                                  19
8778c2ecf20Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK                                 0x1
8788c2ecf20Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK_SFT                             (0x1 << 19)
8798c2ecf20Sopenharmony_ci#define PCM_VBT_16K_MODE_SFT                                18
8808c2ecf20Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK                               0x1
8818c2ecf20Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK_SFT                           (0x1 << 18)
8828c2ecf20Sopenharmony_ci#define PCM_EXT_MODEM_SFT                                   17
8838c2ecf20Sopenharmony_ci#define PCM_EXT_MODEM_MASK                                  0x1
8848c2ecf20Sopenharmony_ci#define PCM_EXT_MODEM_MASK_SFT                              (0x1 << 17)
8858c2ecf20Sopenharmony_ci#define PCM_24BIT_SFT                                       16
8868c2ecf20Sopenharmony_ci#define PCM_24BIT_MASK                                      0x1
8878c2ecf20Sopenharmony_ci#define PCM_24BIT_MASK_SFT                                  (0x1 << 16)
8888c2ecf20Sopenharmony_ci#define PCM_WLEN_SFT                                        14
8898c2ecf20Sopenharmony_ci#define PCM_WLEN_MASK                                       0x3
8908c2ecf20Sopenharmony_ci#define PCM_WLEN_MASK_SFT                                   (0x3 << 14)
8918c2ecf20Sopenharmony_ci#define PCM_SYNC_LENGTH_SFT                                 9
8928c2ecf20Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK                                0x1f
8938c2ecf20Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK_SFT                            (0x1f << 9)
8948c2ecf20Sopenharmony_ci#define PCM_SYNC_TYPE_SFT                                   8
8958c2ecf20Sopenharmony_ci#define PCM_SYNC_TYPE_MASK                                  0x1
8968c2ecf20Sopenharmony_ci#define PCM_SYNC_TYPE_MASK_SFT                              (0x1 << 8)
8978c2ecf20Sopenharmony_ci#define PCM_BT_MODE_SFT                                     7
8988c2ecf20Sopenharmony_ci#define PCM_BT_MODE_MASK                                    0x1
8998c2ecf20Sopenharmony_ci#define PCM_BT_MODE_MASK_SFT                                (0x1 << 7)
9008c2ecf20Sopenharmony_ci#define PCM_BYP_ASRC_SFT                                    6
9018c2ecf20Sopenharmony_ci#define PCM_BYP_ASRC_MASK                                   0x1
9028c2ecf20Sopenharmony_ci#define PCM_BYP_ASRC_MASK_SFT                               (0x1 << 6)
9038c2ecf20Sopenharmony_ci#define PCM_SLAVE_SFT                                       5
9048c2ecf20Sopenharmony_ci#define PCM_SLAVE_MASK                                      0x1
9058c2ecf20Sopenharmony_ci#define PCM_SLAVE_MASK_SFT                                  (0x1 << 5)
9068c2ecf20Sopenharmony_ci#define PCM_MODE_SFT                                        3
9078c2ecf20Sopenharmony_ci#define PCM_MODE_MASK                                       0x3
9088c2ecf20Sopenharmony_ci#define PCM_MODE_MASK_SFT                                   (0x3 << 3)
9098c2ecf20Sopenharmony_ci#define PCM_FMT_SFT                                         1
9108c2ecf20Sopenharmony_ci#define PCM_FMT_MASK                                        0x3
9118c2ecf20Sopenharmony_ci#define PCM_FMT_MASK_SFT                                    (0x3 << 1)
9128c2ecf20Sopenharmony_ci#define PCM_EN_SFT                                          0
9138c2ecf20Sopenharmony_ci#define PCM_EN_MASK                                         0x1
9148c2ecf20Sopenharmony_ci#define PCM_EN_MASK_SFT                                     (0x1 << 0)
9158c2ecf20Sopenharmony_ci
9168c2ecf20Sopenharmony_ci/* PCM_INTF_CON2 */
9178c2ecf20Sopenharmony_ci#define PCM1_TX_FIFO_OV_SFT                                 31
9188c2ecf20Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK                                0x1
9198c2ecf20Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK_SFT                            (0x1 << 31)
9208c2ecf20Sopenharmony_ci#define PCM1_RX_FIFO_OV_SFT                                 30
9218c2ecf20Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK                                0x1
9228c2ecf20Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK_SFT                            (0x1 << 30)
9238c2ecf20Sopenharmony_ci#define PCM2_TX_FIFO_OV_SFT                                 29
9248c2ecf20Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK                                0x1
9258c2ecf20Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK_SFT                            (0x1 << 29)
9268c2ecf20Sopenharmony_ci#define PCM2_RX_FIFO_OV_SFT                                 28
9278c2ecf20Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK                                0x1
9288c2ecf20Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK_SFT                            (0x1 << 28)
9298c2ecf20Sopenharmony_ci#define PCM1_SYNC_GLITCH_SFT                                27
9308c2ecf20Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK                               0x1
9318c2ecf20Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK_SFT                           (0x1 << 27)
9328c2ecf20Sopenharmony_ci#define PCM2_SYNC_GLITCH_SFT                                26
9338c2ecf20Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK                               0x1
9348c2ecf20Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK_SFT                           (0x1 << 26)
9358c2ecf20Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_SFT                              15
9368c2ecf20Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK                             0x1
9378c2ecf20Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK_SFT                         (0x1 << 15)
9388c2ecf20Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_SFT                             13
9398c2ecf20Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK                            0x1
9408c2ecf20Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK_SFT                        (0x1 << 13)
9418c2ecf20Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_SFT                             12
9428c2ecf20Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK                            0x1
9438c2ecf20Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK_SFT                        (0x1 << 12)
9448c2ecf20Sopenharmony_ci#define PCM_USE_MD3_SFT                                     8
9458c2ecf20Sopenharmony_ci#define PCM_USE_MD3_MASK                                    0x1
9468c2ecf20Sopenharmony_ci#define PCM_USE_MD3_MASK_SFT                                (0x1 << 8)
9478c2ecf20Sopenharmony_ci#define TX_FIX_VALUE_SFT                                    0
9488c2ecf20Sopenharmony_ci#define TX_FIX_VALUE_MASK                                   0xff
9498c2ecf20Sopenharmony_ci#define TX_FIX_VALUE_MASK_SFT                               (0xff << 0)
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_ci/* PCM2_INTF_CON */
9528c2ecf20Sopenharmony_ci#define PCM2_TX_FIX_VALUE_SFT                                24
9538c2ecf20Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK                               0xff
9548c2ecf20Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK_SFT                           (0xff << 24)
9558c2ecf20Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_SFT                               23
9568c2ecf20Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK                              0x1
9578c2ecf20Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK_SFT                          (0x1 << 23)
9588c2ecf20Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_SFT                             22
9598c2ecf20Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK                            0x1
9608c2ecf20Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK_SFT                        (0x1 << 22)
9618c2ecf20Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_SFT                           21
9628c2ecf20Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK                          0x1
9638c2ecf20Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK_SFT                      (0x1 << 21)
9648c2ecf20Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_SFT                             20
9658c2ecf20Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK                            0x1
9668c2ecf20Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK_SFT                        (0x1 << 20)
9678c2ecf20Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_SFT                            19
9688c2ecf20Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK                           0x1
9698c2ecf20Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT                       (0x1 << 19)
9708c2ecf20Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_SFT                            18
9718c2ecf20Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK                           0x1
9728c2ecf20Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT                       (0x1 << 18)
9738c2ecf20Sopenharmony_ci#define PCM2_SYNC_DELSEL_SFT                                 17
9748c2ecf20Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK                                0x1
9758c2ecf20Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK_SFT                            (0x1 << 17)
9768c2ecf20Sopenharmony_ci#define PCM2_TX_LR_SWAP_SFT                                  16
9778c2ecf20Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK                                 0x1
9788c2ecf20Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK_SFT                             (0x1 << 16)
9798c2ecf20Sopenharmony_ci#define PCM2_SYNC_IN_INV_SFT                                 15
9808c2ecf20Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK                                0x1
9818c2ecf20Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK_SFT                            (0x1 << 15)
9828c2ecf20Sopenharmony_ci#define PCM2_BCLK_IN_INV_SFT                                 14
9838c2ecf20Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK                                0x1
9848c2ecf20Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK_SFT                            (0x1 << 14)
9858c2ecf20Sopenharmony_ci#define PCM2_TX_LCH_RPT_SFT                                  13
9868c2ecf20Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK                                 0x1
9878c2ecf20Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK_SFT                             (0x1 << 13)
9888c2ecf20Sopenharmony_ci#define PCM2_VBT_16K_MODE_SFT                                12
9898c2ecf20Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK                               0x1
9908c2ecf20Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK_SFT                           (0x1 << 12)
9918c2ecf20Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_SFT                             10
9928c2ecf20Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK                            0x3
9938c2ecf20Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK_SFT                        (0x3 << 10)
9948c2ecf20Sopenharmony_ci#define PCM2_TX2_BT_MODE_SFT                                 8
9958c2ecf20Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK                                0x1
9968c2ecf20Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK_SFT                            (0x1 << 8)
9978c2ecf20Sopenharmony_ci#define PCM2_BT_MODE_SFT                                     7
9988c2ecf20Sopenharmony_ci#define PCM2_BT_MODE_MASK                                    0x1
9998c2ecf20Sopenharmony_ci#define PCM2_BT_MODE_MASK_SFT                                (0x1 << 7)
10008c2ecf20Sopenharmony_ci#define PCM2_AFIFO_SFT                                       6
10018c2ecf20Sopenharmony_ci#define PCM2_AFIFO_MASK                                      0x1
10028c2ecf20Sopenharmony_ci#define PCM2_AFIFO_MASK_SFT                                  (0x1 << 6)
10038c2ecf20Sopenharmony_ci#define PCM2_WLEN_SFT                                        5
10048c2ecf20Sopenharmony_ci#define PCM2_WLEN_MASK                                       0x1
10058c2ecf20Sopenharmony_ci#define PCM2_WLEN_MASK_SFT                                   (0x1 << 5)
10068c2ecf20Sopenharmony_ci#define PCM2_MODE_SFT                                        3
10078c2ecf20Sopenharmony_ci#define PCM2_MODE_MASK                                       0x3
10088c2ecf20Sopenharmony_ci#define PCM2_MODE_MASK_SFT                                   (0x3 << 3)
10098c2ecf20Sopenharmony_ci#define PCM2_FMT_SFT                                         1
10108c2ecf20Sopenharmony_ci#define PCM2_FMT_MASK                                        0x3
10118c2ecf20Sopenharmony_ci#define PCM2_FMT_MASK_SFT                                    (0x3 << 1)
10128c2ecf20Sopenharmony_ci#define PCM2_EN_SFT                                          0
10138c2ecf20Sopenharmony_ci#define PCM2_EN_MASK                                         0x1
10148c2ecf20Sopenharmony_ci#define PCM2_EN_MASK_SFT                                     (0x1 << 0)
10158c2ecf20Sopenharmony_ci#endif
1016