162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * mt6797-reg.h  --  Mediatek 6797 audio driver reg definition
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2018 MediaTek Inc.
662306a36Sopenharmony_ci * Author: KaiChieh Chuang <kaichieh.chuang@mediatek.com>
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _MT6797_REG_H_
1062306a36Sopenharmony_ci#define _MT6797_REG_H_
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#define AUDIO_TOP_CON0            0x0000
1362306a36Sopenharmony_ci#define AUDIO_TOP_CON1            0x0004
1462306a36Sopenharmony_ci#define AUDIO_TOP_CON3            0x000c
1562306a36Sopenharmony_ci#define AFE_DAC_CON0              0x0010
1662306a36Sopenharmony_ci#define AFE_DAC_CON1              0x0014
1762306a36Sopenharmony_ci#define AFE_I2S_CON               0x0018
1862306a36Sopenharmony_ci#define AFE_DAIBT_CON0            0x001c
1962306a36Sopenharmony_ci#define AFE_CONN0                 0x0020
2062306a36Sopenharmony_ci#define AFE_CONN1                 0x0024
2162306a36Sopenharmony_ci#define AFE_CONN2                 0x0028
2262306a36Sopenharmony_ci#define AFE_CONN3                 0x002c
2362306a36Sopenharmony_ci#define AFE_CONN4                 0x0030
2462306a36Sopenharmony_ci#define AFE_I2S_CON1              0x0034
2562306a36Sopenharmony_ci#define AFE_I2S_CON2              0x0038
2662306a36Sopenharmony_ci#define AFE_MRGIF_CON             0x003c
2762306a36Sopenharmony_ci#define AFE_DL1_BASE              0x0040
2862306a36Sopenharmony_ci#define AFE_DL1_CUR               0x0044
2962306a36Sopenharmony_ci#define AFE_DL1_END               0x0048
3062306a36Sopenharmony_ci#define AFE_I2S_CON3              0x004c
3162306a36Sopenharmony_ci#define AFE_DL2_BASE              0x0050
3262306a36Sopenharmony_ci#define AFE_DL2_CUR               0x0054
3362306a36Sopenharmony_ci#define AFE_DL2_END               0x0058
3462306a36Sopenharmony_ci#define AFE_CONN5                 0x005c
3562306a36Sopenharmony_ci#define AFE_CONN_24BIT            0x006c
3662306a36Sopenharmony_ci#define AFE_AWB_BASE              0x0070
3762306a36Sopenharmony_ci#define AFE_AWB_END               0x0078
3862306a36Sopenharmony_ci#define AFE_AWB_CUR               0x007c
3962306a36Sopenharmony_ci#define AFE_VUL_BASE              0x0080
4062306a36Sopenharmony_ci#define AFE_VUL_END               0x0088
4162306a36Sopenharmony_ci#define AFE_VUL_CUR               0x008c
4262306a36Sopenharmony_ci#define AFE_DAI_BASE              0x0090
4362306a36Sopenharmony_ci#define AFE_DAI_END               0x0098
4462306a36Sopenharmony_ci#define AFE_DAI_CUR               0x009c
4562306a36Sopenharmony_ci#define AFE_CONN6                 0x00bc
4662306a36Sopenharmony_ci#define AFE_MEMIF_MSB             0x00cc
4762306a36Sopenharmony_ci#define AFE_MEMIF_MON0            0x00d0
4862306a36Sopenharmony_ci#define AFE_MEMIF_MON1            0x00d4
4962306a36Sopenharmony_ci#define AFE_MEMIF_MON2            0x00d8
5062306a36Sopenharmony_ci#define AFE_MEMIF_MON4            0x00e0
5162306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON0     0x0108
5262306a36Sopenharmony_ci#define AFE_ADDA_DL_SRC2_CON1     0x010c
5362306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON0      0x0114
5462306a36Sopenharmony_ci#define AFE_ADDA_UL_SRC_CON1      0x0118
5562306a36Sopenharmony_ci#define AFE_ADDA_TOP_CON0         0x0120
5662306a36Sopenharmony_ci#define AFE_ADDA_UL_DL_CON0       0x0124
5762306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG        0x012c
5862306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON0   0x0130
5962306a36Sopenharmony_ci#define AFE_ADDA_SRC_DEBUG_MON1   0x0134
6062306a36Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG0       0x0138
6162306a36Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG1       0x013c
6262306a36Sopenharmony_ci#define AFE_ADDA_NEWIF_CFG2       0x0140
6362306a36Sopenharmony_ci#define AFE_DMA_CTL               0x0150
6462306a36Sopenharmony_ci#define AFE_DMA_MON0              0x0154
6562306a36Sopenharmony_ci#define AFE_DMA_MON1              0x0158
6662306a36Sopenharmony_ci#define AFE_SIDETONE_DEBUG        0x01d0
6762306a36Sopenharmony_ci#define AFE_SIDETONE_MON          0x01d4
6862306a36Sopenharmony_ci#define AFE_SIDETONE_CON0         0x01e0
6962306a36Sopenharmony_ci#define AFE_SIDETONE_COEFF        0x01e4
7062306a36Sopenharmony_ci#define AFE_SIDETONE_CON1         0x01e8
7162306a36Sopenharmony_ci#define AFE_SIDETONE_GAIN         0x01ec
7262306a36Sopenharmony_ci#define AFE_SGEN_CON0             0x01f0
7362306a36Sopenharmony_ci#define AFE_SINEGEN_CON_TDM       0x01fc
7462306a36Sopenharmony_ci#define AFE_TOP_CON0              0x0200
7562306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON0      0x0260
7662306a36Sopenharmony_ci#define AFE_ADDA_PREDIS_CON1      0x0264
7762306a36Sopenharmony_ci#define AFE_MRGIF_MON0            0x0270
7862306a36Sopenharmony_ci#define AFE_MRGIF_MON1            0x0274
7962306a36Sopenharmony_ci#define AFE_MRGIF_MON2            0x0278
8062306a36Sopenharmony_ci#define AFE_I2S_MON               0x027c
8162306a36Sopenharmony_ci#define AFE_MOD_DAI_BASE          0x0330
8262306a36Sopenharmony_ci#define AFE_MOD_DAI_END           0x0338
8362306a36Sopenharmony_ci#define AFE_MOD_DAI_CUR           0x033c
8462306a36Sopenharmony_ci#define AFE_VUL_D2_BASE           0x0350
8562306a36Sopenharmony_ci#define AFE_VUL_D2_END            0x0358
8662306a36Sopenharmony_ci#define AFE_VUL_D2_CUR            0x035c
8762306a36Sopenharmony_ci#define AFE_DL3_BASE              0x0360
8862306a36Sopenharmony_ci#define AFE_DL3_CUR               0x0364
8962306a36Sopenharmony_ci#define AFE_DL3_END               0x0368
9062306a36Sopenharmony_ci#define AFE_HDMI_OUT_CON0         0x0370
9162306a36Sopenharmony_ci#define AFE_HDMI_BASE             0x0374
9262306a36Sopenharmony_ci#define AFE_HDMI_CUR              0x0378
9362306a36Sopenharmony_ci#define AFE_HDMI_END              0x037c
9462306a36Sopenharmony_ci#define AFE_HDMI_CONN0            0x0390
9562306a36Sopenharmony_ci#define AFE_IRQ3_MCU_CNT_MON      0x0398
9662306a36Sopenharmony_ci#define AFE_IRQ4_MCU_CNT_MON      0x039c
9762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CON           0x03a0
9862306a36Sopenharmony_ci#define AFE_IRQ_MCU_STATUS        0x03a4
9962306a36Sopenharmony_ci#define AFE_IRQ_MCU_CLR           0x03a8
10062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1          0x03ac
10162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2          0x03b0
10262306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN            0x03b4
10362306a36Sopenharmony_ci#define AFE_IRQ_MCU_MON2          0x03b8
10462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5          0x03bc
10562306a36Sopenharmony_ci#define AFE_IRQ1_MCU_CNT_MON      0x03c0
10662306a36Sopenharmony_ci#define AFE_IRQ2_MCU_CNT_MON      0x03c4
10762306a36Sopenharmony_ci#define AFE_IRQ1_MCU_EN_CNT_MON   0x03c8
10862306a36Sopenharmony_ci#define AFE_IRQ5_MCU_CNT_MON      0x03cc
10962306a36Sopenharmony_ci#define AFE_MEMIF_MINLEN          0x03d0
11062306a36Sopenharmony_ci#define AFE_MEMIF_MAXLEN          0x03d4
11162306a36Sopenharmony_ci#define AFE_MEMIF_PBUF_SIZE       0x03d8
11262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7          0x03dc
11362306a36Sopenharmony_ci#define AFE_IRQ7_MCU_CNT_MON      0x03e0
11462306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3          0x03e4
11562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4          0x03e8
11662306a36Sopenharmony_ci#define AFE_APLL1_TUNER_CFG       0x03f0
11762306a36Sopenharmony_ci#define AFE_APLL2_TUNER_CFG       0x03f4
11862306a36Sopenharmony_ci#define AFE_MEMIF_HD_MODE         0x03f8
11962306a36Sopenharmony_ci#define AFE_MEMIF_HDALIGN         0x03fc
12062306a36Sopenharmony_ci#define AFE_GAIN1_CON0            0x0410
12162306a36Sopenharmony_ci#define AFE_GAIN1_CON1            0x0414
12262306a36Sopenharmony_ci#define AFE_GAIN1_CON2            0x0418
12362306a36Sopenharmony_ci#define AFE_GAIN1_CON3            0x041c
12462306a36Sopenharmony_ci#define AFE_CONN7                 0x0420
12562306a36Sopenharmony_ci#define AFE_GAIN1_CUR             0x0424
12662306a36Sopenharmony_ci#define AFE_GAIN2_CON0            0x0428
12762306a36Sopenharmony_ci#define AFE_GAIN2_CON1            0x042c
12862306a36Sopenharmony_ci#define AFE_GAIN2_CON2            0x0430
12962306a36Sopenharmony_ci#define AFE_GAIN2_CON3            0x0434
13062306a36Sopenharmony_ci#define AFE_CONN8                 0x0438
13162306a36Sopenharmony_ci#define AFE_GAIN2_CUR             0x043c
13262306a36Sopenharmony_ci#define AFE_CONN9                 0x0440
13362306a36Sopenharmony_ci#define AFE_CONN10                0x0444
13462306a36Sopenharmony_ci#define AFE_CONN11                0x0448
13562306a36Sopenharmony_ci#define AFE_CONN12                0x044c
13662306a36Sopenharmony_ci#define AFE_CONN13                0x0450
13762306a36Sopenharmony_ci#define AFE_CONN14                0x0454
13862306a36Sopenharmony_ci#define AFE_CONN15                0x0458
13962306a36Sopenharmony_ci#define AFE_CONN16                0x045c
14062306a36Sopenharmony_ci#define AFE_CONN17                0x0460
14162306a36Sopenharmony_ci#define AFE_CONN18                0x0464
14262306a36Sopenharmony_ci#define AFE_CONN19                0x0468
14362306a36Sopenharmony_ci#define AFE_CONN20                0x046c
14462306a36Sopenharmony_ci#define AFE_CONN21                0x0470
14562306a36Sopenharmony_ci#define AFE_CONN22                0x0474
14662306a36Sopenharmony_ci#define AFE_CONN23                0x0478
14762306a36Sopenharmony_ci#define AFE_CONN24                0x047c
14862306a36Sopenharmony_ci#define AFE_CONN_RS               0x0494
14962306a36Sopenharmony_ci#define AFE_CONN_DI               0x0498
15062306a36Sopenharmony_ci#define AFE_CONN25                0x04b0
15162306a36Sopenharmony_ci#define AFE_CONN26                0x04b4
15262306a36Sopenharmony_ci#define AFE_CONN27                0x04b8
15362306a36Sopenharmony_ci#define AFE_CONN28                0x04bc
15462306a36Sopenharmony_ci#define AFE_CONN29                0x04c0
15562306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON0      0x04f0
15662306a36Sopenharmony_ci#define AFE_SRAM_DELSEL_CON1      0x04f4
15762306a36Sopenharmony_ci#define AFE_ASRC_CON0             0x0500
15862306a36Sopenharmony_ci#define AFE_ASRC_CON1             0x0504
15962306a36Sopenharmony_ci#define AFE_ASRC_CON2             0x0508
16062306a36Sopenharmony_ci#define AFE_ASRC_CON3             0x050c
16162306a36Sopenharmony_ci#define AFE_ASRC_CON4             0x0510
16262306a36Sopenharmony_ci#define AFE_ASRC_CON5             0x0514
16362306a36Sopenharmony_ci#define AFE_ASRC_CON6             0x0518
16462306a36Sopenharmony_ci#define AFE_ASRC_CON7             0x051c
16562306a36Sopenharmony_ci#define AFE_ASRC_CON8             0x0520
16662306a36Sopenharmony_ci#define AFE_ASRC_CON9             0x0524
16762306a36Sopenharmony_ci#define AFE_ASRC_CON10            0x0528
16862306a36Sopenharmony_ci#define AFE_ASRC_CON11            0x052c
16962306a36Sopenharmony_ci#define PCM_INTF_CON1             0x0530
17062306a36Sopenharmony_ci#define PCM_INTF_CON2             0x0538
17162306a36Sopenharmony_ci#define PCM2_INTF_CON             0x053c
17262306a36Sopenharmony_ci#define AFE_TDM_CON1              0x0548
17362306a36Sopenharmony_ci#define AFE_TDM_CON2              0x054c
17462306a36Sopenharmony_ci#define AFE_ASRC_CON13            0x0550
17562306a36Sopenharmony_ci#define AFE_ASRC_CON14            0x0554
17662306a36Sopenharmony_ci#define AFE_ASRC_CON15            0x0558
17762306a36Sopenharmony_ci#define AFE_ASRC_CON16            0x055c
17862306a36Sopenharmony_ci#define AFE_ASRC_CON17            0x0560
17962306a36Sopenharmony_ci#define AFE_ASRC_CON18            0x0564
18062306a36Sopenharmony_ci#define AFE_ASRC_CON19            0x0568
18162306a36Sopenharmony_ci#define AFE_ASRC_CON20            0x056c
18262306a36Sopenharmony_ci#define AFE_ASRC_CON21            0x0570
18362306a36Sopenharmony_ci#define CLK_AUDDIV_0              0x05a0
18462306a36Sopenharmony_ci#define CLK_AUDDIV_1              0x05a4
18562306a36Sopenharmony_ci#define CLK_AUDDIV_2              0x05a8
18662306a36Sopenharmony_ci#define CLK_AUDDIV_3              0x05ac
18762306a36Sopenharmony_ci#define AUDIO_TOP_DBG_CON         0x05c8
18862306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON0        0x05cc
18962306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON1        0x05d0
19062306a36Sopenharmony_ci#define AUDIO_TOP_DBG_MON2        0x05d4
19162306a36Sopenharmony_ci#define AFE_ADDA2_TOP_CON0        0x0600
19262306a36Sopenharmony_ci#define AFE_ASRC4_CON0            0x06c0
19362306a36Sopenharmony_ci#define AFE_ASRC4_CON1            0x06c4
19462306a36Sopenharmony_ci#define AFE_ASRC4_CON2            0x06c8
19562306a36Sopenharmony_ci#define AFE_ASRC4_CON3            0x06cc
19662306a36Sopenharmony_ci#define AFE_ASRC4_CON4            0x06d0
19762306a36Sopenharmony_ci#define AFE_ASRC4_CON5            0x06d4
19862306a36Sopenharmony_ci#define AFE_ASRC4_CON6            0x06d8
19962306a36Sopenharmony_ci#define AFE_ASRC4_CON7            0x06dc
20062306a36Sopenharmony_ci#define AFE_ASRC4_CON8            0x06e0
20162306a36Sopenharmony_ci#define AFE_ASRC4_CON9            0x06e4
20262306a36Sopenharmony_ci#define AFE_ASRC4_CON10           0x06e8
20362306a36Sopenharmony_ci#define AFE_ASRC4_CON11           0x06ec
20462306a36Sopenharmony_ci#define AFE_ASRC4_CON12           0x06f0
20562306a36Sopenharmony_ci#define AFE_ASRC4_CON13           0x06f4
20662306a36Sopenharmony_ci#define AFE_ASRC4_CON14           0x06f8
20762306a36Sopenharmony_ci#define AFE_ASRC2_CON0            0x0700
20862306a36Sopenharmony_ci#define AFE_ASRC2_CON1            0x0704
20962306a36Sopenharmony_ci#define AFE_ASRC2_CON2            0x0708
21062306a36Sopenharmony_ci#define AFE_ASRC2_CON3            0x070c
21162306a36Sopenharmony_ci#define AFE_ASRC2_CON4            0x0710
21262306a36Sopenharmony_ci#define AFE_ASRC2_CON5            0x0714
21362306a36Sopenharmony_ci#define AFE_ASRC2_CON6            0x0718
21462306a36Sopenharmony_ci#define AFE_ASRC2_CON7            0x071c
21562306a36Sopenharmony_ci#define AFE_ASRC2_CON8            0x0720
21662306a36Sopenharmony_ci#define AFE_ASRC2_CON9            0x0724
21762306a36Sopenharmony_ci#define AFE_ASRC2_CON10           0x0728
21862306a36Sopenharmony_ci#define AFE_ASRC2_CON11           0x072c
21962306a36Sopenharmony_ci#define AFE_ASRC2_CON12           0x0730
22062306a36Sopenharmony_ci#define AFE_ASRC2_CON13           0x0734
22162306a36Sopenharmony_ci#define AFE_ASRC2_CON14           0x0738
22262306a36Sopenharmony_ci#define AFE_ASRC3_CON0            0x0740
22362306a36Sopenharmony_ci#define AFE_ASRC3_CON1            0x0744
22462306a36Sopenharmony_ci#define AFE_ASRC3_CON2            0x0748
22562306a36Sopenharmony_ci#define AFE_ASRC3_CON3            0x074c
22662306a36Sopenharmony_ci#define AFE_ASRC3_CON4            0x0750
22762306a36Sopenharmony_ci#define AFE_ASRC3_CON5            0x0754
22862306a36Sopenharmony_ci#define AFE_ASRC3_CON6            0x0758
22962306a36Sopenharmony_ci#define AFE_ASRC3_CON7            0x075c
23062306a36Sopenharmony_ci#define AFE_ASRC3_CON8            0x0760
23162306a36Sopenharmony_ci#define AFE_ASRC3_CON9            0x0764
23262306a36Sopenharmony_ci#define AFE_ASRC3_CON10           0x0768
23362306a36Sopenharmony_ci#define AFE_ASRC3_CON11           0x076c
23462306a36Sopenharmony_ci#define AFE_ASRC3_CON12           0x0770
23562306a36Sopenharmony_ci#define AFE_ASRC3_CON13           0x0774
23662306a36Sopenharmony_ci#define AFE_ASRC3_CON14           0x0778
23762306a36Sopenharmony_ci#define AFE_GENERAL_REG0          0x0800
23862306a36Sopenharmony_ci#define AFE_GENERAL_REG1          0x0804
23962306a36Sopenharmony_ci#define AFE_GENERAL_REG2          0x0808
24062306a36Sopenharmony_ci#define AFE_GENERAL_REG3          0x080c
24162306a36Sopenharmony_ci#define AFE_GENERAL_REG4          0x0810
24262306a36Sopenharmony_ci#define AFE_GENERAL_REG5          0x0814
24362306a36Sopenharmony_ci#define AFE_GENERAL_REG6          0x0818
24462306a36Sopenharmony_ci#define AFE_GENERAL_REG7          0x081c
24562306a36Sopenharmony_ci#define AFE_GENERAL_REG8          0x0820
24662306a36Sopenharmony_ci#define AFE_GENERAL_REG9          0x0824
24762306a36Sopenharmony_ci#define AFE_GENERAL_REG10         0x0828
24862306a36Sopenharmony_ci#define AFE_GENERAL_REG11         0x082c
24962306a36Sopenharmony_ci#define AFE_GENERAL_REG12         0x0830
25062306a36Sopenharmony_ci#define AFE_GENERAL_REG13         0x0834
25162306a36Sopenharmony_ci#define AFE_GENERAL_REG14         0x0838
25262306a36Sopenharmony_ci#define AFE_GENERAL_REG15         0x083c
25362306a36Sopenharmony_ci#define AFE_CBIP_CFG0             0x0840
25462306a36Sopenharmony_ci#define AFE_CBIP_MON0             0x0844
25562306a36Sopenharmony_ci#define AFE_CBIP_SLV_MUX_MON0     0x0848
25662306a36Sopenharmony_ci#define AFE_CBIP_SLV_DECODER_MON0 0x084c
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci#define AFE_MAX_REGISTER AFE_CBIP_SLV_DECODER_MON0
25962306a36Sopenharmony_ci#define AFE_IRQ_STATUS_BITS 0x5f
26062306a36Sopenharmony_ci
26162306a36Sopenharmony_ci/* AUDIO_TOP_CON0 */
26262306a36Sopenharmony_ci#define AHB_IDLE_EN_INT_SFT                                 30
26362306a36Sopenharmony_ci#define AHB_IDLE_EN_INT_MASK                                0x1
26462306a36Sopenharmony_ci#define AHB_IDLE_EN_INT_MASK_SFT                            (0x1 << 30)
26562306a36Sopenharmony_ci#define AHB_IDLE_EN_EXT_SFT                                 29
26662306a36Sopenharmony_ci#define AHB_IDLE_EN_EXT_MASK                                0x1
26762306a36Sopenharmony_ci#define AHB_IDLE_EN_EXT_MASK_SFT                            (0x1 << 29)
26862306a36Sopenharmony_ci#define PDN_TML_SFT                                         27
26962306a36Sopenharmony_ci#define PDN_TML_MASK                                        0x1
27062306a36Sopenharmony_ci#define PDN_TML_MASK_SFT                                    (0x1 << 27)
27162306a36Sopenharmony_ci#define PDN_DAC_PREDIS_SFT                                  26
27262306a36Sopenharmony_ci#define PDN_DAC_PREDIS_MASK                                 0x1
27362306a36Sopenharmony_ci#define PDN_DAC_PREDIS_MASK_SFT                             (0x1 << 26)
27462306a36Sopenharmony_ci#define PDN_DAC_SFT                                         25
27562306a36Sopenharmony_ci#define PDN_DAC_MASK                                        0x1
27662306a36Sopenharmony_ci#define PDN_DAC_MASK_SFT                                    (0x1 << 25)
27762306a36Sopenharmony_ci#define PDN_ADC_SFT                                         24
27862306a36Sopenharmony_ci#define PDN_ADC_MASK                                        0x1
27962306a36Sopenharmony_ci#define PDN_ADC_MASK_SFT                                    (0x1 << 24)
28062306a36Sopenharmony_ci#define PDN_TDM_CK_SFT                                      20
28162306a36Sopenharmony_ci#define PDN_TDM_CK_MASK                                     0x1
28262306a36Sopenharmony_ci#define PDN_TDM_CK_MASK_SFT                                 (0x1 << 20)
28362306a36Sopenharmony_ci#define PDN_APLL_TUNER_SFT                                  19
28462306a36Sopenharmony_ci#define PDN_APLL_TUNER_MASK                                 0x1
28562306a36Sopenharmony_ci#define PDN_APLL_TUNER_MASK_SFT                             (0x1 << 19)
28662306a36Sopenharmony_ci#define PDN_APLL2_TUNER_SFT                                 18
28762306a36Sopenharmony_ci#define PDN_APLL2_TUNER_MASK                                0x1
28862306a36Sopenharmony_ci#define PDN_APLL2_TUNER_MASK_SFT                            (0x1 << 18)
28962306a36Sopenharmony_ci#define APB3_SEL_SFT                                        14
29062306a36Sopenharmony_ci#define APB3_SEL_MASK                                       0x1
29162306a36Sopenharmony_ci#define APB3_SEL_MASK_SFT                                   (0x1 << 14)
29262306a36Sopenharmony_ci#define APB_R2T_SFT                                         13
29362306a36Sopenharmony_ci#define APB_R2T_MASK                                        0x1
29462306a36Sopenharmony_ci#define APB_R2T_MASK_SFT                                    (0x1 << 13)
29562306a36Sopenharmony_ci#define APB_W2T_SFT                                         12
29662306a36Sopenharmony_ci#define APB_W2T_MASK                                        0x1
29762306a36Sopenharmony_ci#define APB_W2T_MASK_SFT                                    (0x1 << 12)
29862306a36Sopenharmony_ci#define PDN_24M_SFT                                         9
29962306a36Sopenharmony_ci#define PDN_24M_MASK                                        0x1
30062306a36Sopenharmony_ci#define PDN_24M_MASK_SFT                                    (0x1 << 9)
30162306a36Sopenharmony_ci#define PDN_22M_SFT                                         8
30262306a36Sopenharmony_ci#define PDN_22M_MASK                                        0x1
30362306a36Sopenharmony_ci#define PDN_22M_MASK_SFT                                    (0x1 << 8)
30462306a36Sopenharmony_ci#define PDN_ADDA4_ADC_SFT                                   7
30562306a36Sopenharmony_ci#define PDN_ADDA4_ADC_MASK                                  0x1
30662306a36Sopenharmony_ci#define PDN_ADDA4_ADC_MASK_SFT                              (0x1 << 7)
30762306a36Sopenharmony_ci#define PDN_I2S_SFT                                         6
30862306a36Sopenharmony_ci#define PDN_I2S_MASK                                        0x1
30962306a36Sopenharmony_ci#define PDN_I2S_MASK_SFT                                    (0x1 << 6)
31062306a36Sopenharmony_ci#define PDN_AFE_SFT                                         2
31162306a36Sopenharmony_ci#define PDN_AFE_MASK                                        0x1
31262306a36Sopenharmony_ci#define PDN_AFE_MASK_SFT                                    (0x1 << 2)
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_ci/* AUDIO_TOP_CON1 */
31562306a36Sopenharmony_ci#define PDN_ADC_HIRES_TML_SFT                               17
31662306a36Sopenharmony_ci#define PDN_ADC_HIRES_TML_MASK                              0x1
31762306a36Sopenharmony_ci#define PDN_ADC_HIRES_TML_MASK_SFT                          (0x1 << 17)
31862306a36Sopenharmony_ci#define PDN_ADC_HIRES_SFT                                   16
31962306a36Sopenharmony_ci#define PDN_ADC_HIRES_MASK                                  0x1
32062306a36Sopenharmony_ci#define PDN_ADC_HIRES_MASK_SFT                              (0x1 << 16)
32162306a36Sopenharmony_ci#define I2S4_BCLK_SW_CG_SFT                                 7
32262306a36Sopenharmony_ci#define I2S4_BCLK_SW_CG_MASK                                0x1
32362306a36Sopenharmony_ci#define I2S4_BCLK_SW_CG_MASK_SFT                            (0x1 << 7)
32462306a36Sopenharmony_ci#define I2S3_BCLK_SW_CG_SFT                                 6
32562306a36Sopenharmony_ci#define I2S3_BCLK_SW_CG_MASK                                0x1
32662306a36Sopenharmony_ci#define I2S3_BCLK_SW_CG_MASK_SFT                            (0x1 << 6)
32762306a36Sopenharmony_ci#define I2S2_BCLK_SW_CG_SFT                                 5
32862306a36Sopenharmony_ci#define I2S2_BCLK_SW_CG_MASK                                0x1
32962306a36Sopenharmony_ci#define I2S2_BCLK_SW_CG_MASK_SFT                            (0x1 << 5)
33062306a36Sopenharmony_ci#define I2S1_BCLK_SW_CG_SFT                                 4
33162306a36Sopenharmony_ci#define I2S1_BCLK_SW_CG_MASK                                0x1
33262306a36Sopenharmony_ci#define I2S1_BCLK_SW_CG_MASK_SFT                            (0x1 << 4)
33362306a36Sopenharmony_ci#define I2S_SOFT_RST2_SFT                                   2
33462306a36Sopenharmony_ci#define I2S_SOFT_RST2_MASK                                  0x1
33562306a36Sopenharmony_ci#define I2S_SOFT_RST2_MASK_SFT                              (0x1 << 2)
33662306a36Sopenharmony_ci#define I2S_SOFT_RST_SFT                                    1
33762306a36Sopenharmony_ci#define I2S_SOFT_RST_MASK                                   0x1
33862306a36Sopenharmony_ci#define I2S_SOFT_RST_MASK_SFT                               (0x1 << 1)
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ci/* AFE_DAC_CON0 */
34162306a36Sopenharmony_ci#define AFE_AWB_RETM_SFT                                    31
34262306a36Sopenharmony_ci#define AFE_AWB_RETM_MASK                                   0x1
34362306a36Sopenharmony_ci#define AFE_AWB_RETM_MASK_SFT                               (0x1 << 31)
34462306a36Sopenharmony_ci#define AFE_DL1_DATA2_RETM_SFT                              30
34562306a36Sopenharmony_ci#define AFE_DL1_DATA2_RETM_MASK                             0x1
34662306a36Sopenharmony_ci#define AFE_DL1_DATA2_RETM_MASK_SFT                         (0x1 << 30)
34762306a36Sopenharmony_ci#define AFE_DL2_RETM_SFT                                    29
34862306a36Sopenharmony_ci#define AFE_DL2_RETM_MASK                                   0x1
34962306a36Sopenharmony_ci#define AFE_DL2_RETM_MASK_SFT                               (0x1 << 29)
35062306a36Sopenharmony_ci#define AFE_DL1_RETM_SFT                                    28
35162306a36Sopenharmony_ci#define AFE_DL1_RETM_MASK                                   0x1
35262306a36Sopenharmony_ci#define AFE_DL1_RETM_MASK_SFT                               (0x1 << 28)
35362306a36Sopenharmony_ci#define AFE_ON_RETM_SFT                                     27
35462306a36Sopenharmony_ci#define AFE_ON_RETM_MASK                                    0x1
35562306a36Sopenharmony_ci#define AFE_ON_RETM_MASK_SFT                                (0x1 << 27)
35662306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_SFT                                  26
35762306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK                                 0x1
35862306a36Sopenharmony_ci#define MOD_DAI_DUP_WR_MASK_SFT                             (0x1 << 26)
35962306a36Sopenharmony_ci#define DAI_MODE_SFT                                        24
36062306a36Sopenharmony_ci#define DAI_MODE_MASK                                       0x3
36162306a36Sopenharmony_ci#define DAI_MODE_MASK_SFT                                   (0x3 << 24)
36262306a36Sopenharmony_ci#define VUL_DATA2_MODE_SFT                                  20
36362306a36Sopenharmony_ci#define VUL_DATA2_MODE_MASK                                 0xf
36462306a36Sopenharmony_ci#define VUL_DATA2_MODE_MASK_SFT                             (0xf << 20)
36562306a36Sopenharmony_ci#define DL1_DATA2_MODE_SFT                                  16
36662306a36Sopenharmony_ci#define DL1_DATA2_MODE_MASK                                 0xf
36762306a36Sopenharmony_ci#define DL1_DATA2_MODE_MASK_SFT                             (0xf << 16)
36862306a36Sopenharmony_ci#define DL3_MODE_SFT                                        12
36962306a36Sopenharmony_ci#define DL3_MODE_MASK                                       0xf
37062306a36Sopenharmony_ci#define DL3_MODE_MASK_SFT                                   (0xf << 12)
37162306a36Sopenharmony_ci#define VUL_DATA2_R_MONO_SFT                                11
37262306a36Sopenharmony_ci#define VUL_DATA2_R_MONO_MASK                               0x1
37362306a36Sopenharmony_ci#define VUL_DATA2_R_MONO_MASK_SFT                           (0x1 << 11)
37462306a36Sopenharmony_ci#define VUL_DATA2_DATA_SFT                                  10
37562306a36Sopenharmony_ci#define VUL_DATA2_DATA_MASK                                 0x1
37662306a36Sopenharmony_ci#define VUL_DATA2_DATA_MASK_SFT                             (0x1 << 10)
37762306a36Sopenharmony_ci#define VUL_DATA2_ON_SFT                                    9
37862306a36Sopenharmony_ci#define VUL_DATA2_ON_MASK                                   0x1
37962306a36Sopenharmony_ci#define VUL_DATA2_ON_MASK_SFT                               (0x1 << 9)
38062306a36Sopenharmony_ci#define DL1_DATA2_ON_SFT                                    8
38162306a36Sopenharmony_ci#define DL1_DATA2_ON_MASK                                   0x1
38262306a36Sopenharmony_ci#define DL1_DATA2_ON_MASK_SFT                               (0x1 << 8)
38362306a36Sopenharmony_ci#define MOD_DAI_ON_SFT                                      7
38462306a36Sopenharmony_ci#define MOD_DAI_ON_MASK                                     0x1
38562306a36Sopenharmony_ci#define MOD_DAI_ON_MASK_SFT                                 (0x1 << 7)
38662306a36Sopenharmony_ci#define AWB_ON_SFT                                          6
38762306a36Sopenharmony_ci#define AWB_ON_MASK                                         0x1
38862306a36Sopenharmony_ci#define AWB_ON_MASK_SFT                                     (0x1 << 6)
38962306a36Sopenharmony_ci#define DL3_ON_SFT                                          5
39062306a36Sopenharmony_ci#define DL3_ON_MASK                                         0x1
39162306a36Sopenharmony_ci#define DL3_ON_MASK_SFT                                     (0x1 << 5)
39262306a36Sopenharmony_ci#define DAI_ON_SFT                                          4
39362306a36Sopenharmony_ci#define DAI_ON_MASK                                         0x1
39462306a36Sopenharmony_ci#define DAI_ON_MASK_SFT                                     (0x1 << 4)
39562306a36Sopenharmony_ci#define VUL_ON_SFT                                          3
39662306a36Sopenharmony_ci#define VUL_ON_MASK                                         0x1
39762306a36Sopenharmony_ci#define VUL_ON_MASK_SFT                                     (0x1 << 3)
39862306a36Sopenharmony_ci#define DL2_ON_SFT                                          2
39962306a36Sopenharmony_ci#define DL2_ON_MASK                                         0x1
40062306a36Sopenharmony_ci#define DL2_ON_MASK_SFT                                     (0x1 << 2)
40162306a36Sopenharmony_ci#define DL1_ON_SFT                                          1
40262306a36Sopenharmony_ci#define DL1_ON_MASK                                         0x1
40362306a36Sopenharmony_ci#define DL1_ON_MASK_SFT                                     (0x1 << 1)
40462306a36Sopenharmony_ci#define AFE_ON_SFT                                          0
40562306a36Sopenharmony_ci#define AFE_ON_MASK                                         0x1
40662306a36Sopenharmony_ci#define AFE_ON_MASK_SFT                                     (0x1 << 0)
40762306a36Sopenharmony_ci
40862306a36Sopenharmony_ci/* AFE_DAC_CON1 */
40962306a36Sopenharmony_ci#define MOD_DAI_MODE_SFT                                    30
41062306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK                                   0x3
41162306a36Sopenharmony_ci#define MOD_DAI_MODE_MASK_SFT                               (0x3 << 30)
41262306a36Sopenharmony_ci#define DAI_DUP_WR_SFT                                      29
41362306a36Sopenharmony_ci#define DAI_DUP_WR_MASK                                     0x1
41462306a36Sopenharmony_ci#define DAI_DUP_WR_MASK_SFT                                 (0x1 << 29)
41562306a36Sopenharmony_ci#define VUL_R_MONO_SFT                                      28
41662306a36Sopenharmony_ci#define VUL_R_MONO_MASK                                     0x1
41762306a36Sopenharmony_ci#define VUL_R_MONO_MASK_SFT                                 (0x1 << 28)
41862306a36Sopenharmony_ci#define VUL_DATA_SFT                                        27
41962306a36Sopenharmony_ci#define VUL_DATA_MASK                                       0x1
42062306a36Sopenharmony_ci#define VUL_DATA_MASK_SFT                                   (0x1 << 27)
42162306a36Sopenharmony_ci#define AXI_2X1_CG_DISABLE_SFT                              26
42262306a36Sopenharmony_ci#define AXI_2X1_CG_DISABLE_MASK                             0x1
42362306a36Sopenharmony_ci#define AXI_2X1_CG_DISABLE_MASK_SFT                         (0x1 << 26)
42462306a36Sopenharmony_ci#define AWB_R_MONO_SFT                                      25
42562306a36Sopenharmony_ci#define AWB_R_MONO_MASK                                     0x1
42662306a36Sopenharmony_ci#define AWB_R_MONO_MASK_SFT                                 (0x1 << 25)
42762306a36Sopenharmony_ci#define AWB_DATA_SFT                                        24
42862306a36Sopenharmony_ci#define AWB_DATA_MASK                                       0x1
42962306a36Sopenharmony_ci#define AWB_DATA_MASK_SFT                                   (0x1 << 24)
43062306a36Sopenharmony_ci#define DL3_DATA_SFT                                        23
43162306a36Sopenharmony_ci#define DL3_DATA_MASK                                       0x1
43262306a36Sopenharmony_ci#define DL3_DATA_MASK_SFT                                   (0x1 << 23)
43362306a36Sopenharmony_ci#define DL2_DATA_SFT                                        22
43462306a36Sopenharmony_ci#define DL2_DATA_MASK                                       0x1
43562306a36Sopenharmony_ci#define DL2_DATA_MASK_SFT                                   (0x1 << 22)
43662306a36Sopenharmony_ci#define DL1_DATA_SFT                                        21
43762306a36Sopenharmony_ci#define DL1_DATA_MASK                                       0x1
43862306a36Sopenharmony_ci#define DL1_DATA_MASK_SFT                                   (0x1 << 21)
43962306a36Sopenharmony_ci#define DL1_DATA2_DATA_SFT                                  20
44062306a36Sopenharmony_ci#define DL1_DATA2_DATA_MASK                                 0x1
44162306a36Sopenharmony_ci#define DL1_DATA2_DATA_MASK_SFT                             (0x1 << 20)
44262306a36Sopenharmony_ci#define VUL_MODE_SFT                                        16
44362306a36Sopenharmony_ci#define VUL_MODE_MASK                                       0xf
44462306a36Sopenharmony_ci#define VUL_MODE_MASK_SFT                                   (0xf << 16)
44562306a36Sopenharmony_ci#define AWB_MODE_SFT                                        12
44662306a36Sopenharmony_ci#define AWB_MODE_MASK                                       0xf
44762306a36Sopenharmony_ci#define AWB_MODE_MASK_SFT                                   (0xf << 12)
44862306a36Sopenharmony_ci#define I2S_MODE_SFT                                        8
44962306a36Sopenharmony_ci#define I2S_MODE_MASK                                       0xf
45062306a36Sopenharmony_ci#define I2S_MODE_MASK_SFT                                   (0xf << 8)
45162306a36Sopenharmony_ci#define DL2_MODE_SFT                                        4
45262306a36Sopenharmony_ci#define DL2_MODE_MASK                                       0xf
45362306a36Sopenharmony_ci#define DL2_MODE_MASK_SFT                                   (0xf << 4)
45462306a36Sopenharmony_ci#define DL1_MODE_SFT                                        0
45562306a36Sopenharmony_ci#define DL1_MODE_MASK                                       0xf
45662306a36Sopenharmony_ci#define DL1_MODE_MASK_SFT                                   (0xf << 0)
45762306a36Sopenharmony_ci
45862306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON0 */
45962306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_SFT                             28
46062306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK                            0xf
46162306a36Sopenharmony_ci#define DL_2_INPUT_MODE_CTL_MASK_SFT                        (0xf << 28)
46262306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_SFT                      27
46362306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK                     0x1
46462306a36Sopenharmony_ci#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT                 (0x1 << 27)
46562306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_SFT                      26
46662306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK                     0x1
46762306a36Sopenharmony_ci#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT                 (0x1 << 26)
46862306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_SFT                             24
46962306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK                            0x3
47062306a36Sopenharmony_ci#define DL_2_OUTPUT_SEL_CTL_MASK_SFT                        (0x3 << 24)
47162306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_SFT                           16
47262306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK                          0x3
47362306a36Sopenharmony_ci#define DL_2_FADEIN_0START_EN_MASK_SFT                      (0x3 << 16)
47462306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_SFT                            15
47562306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK                           0x1
47662306a36Sopenharmony_ci#define DL_DISABLE_HW_CG_CTL_MASK_SFT                       (0x1 << 15)
47762306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_SFT                           14
47862306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK                          0x1
47962306a36Sopenharmony_ci#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT                      (0x1 << 14)
48062306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT                       13
48162306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK                      0x1
48262306a36Sopenharmony_ci#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT                  (0x1 << 13)
48362306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT                       12
48462306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK                      0x1
48562306a36Sopenharmony_ci#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT                  (0x1 << 12)
48662306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT                       11
48762306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK                      0x1
48862306a36Sopenharmony_ci#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT                  (0x1 << 11)
48962306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_SFT                             9
49062306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK                            0x3
49162306a36Sopenharmony_ci#define DL2_ARAMPSP_CTL_PRE_MASK_SFT                        (0x3 << 9)
49262306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_SFT                            6
49362306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK                           0x7
49462306a36Sopenharmony_ci#define DL_2_IIRMODE_CTL_PRE_MASK_SFT                       (0x7 << 6)
49562306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_SFT                         5
49662306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK                        0x1
49762306a36Sopenharmony_ci#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT                    (0x1 << 5)
49862306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT                        4
49962306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK                       0x1
50062306a36Sopenharmony_ci#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT                   (0x1 << 4)
50162306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT                        3
50262306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK                       0x1
50362306a36Sopenharmony_ci#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT                   (0x1 << 3)
50462306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_SFT                             2
50562306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK                            0x1
50662306a36Sopenharmony_ci#define DL_2_IIR_ON_CTL_PRE_MASK_SFT                        (0x1 << 2)
50762306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_SFT                            1
50862306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK                           0x1
50962306a36Sopenharmony_ci#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT                       (0x1 << 1)
51062306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_SFT                         0
51162306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK                        0x1
51262306a36Sopenharmony_ci#define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT                    (0x1 << 0)
51362306a36Sopenharmony_ci
51462306a36Sopenharmony_ci/* AFE_ADDA_DL_SRC2_CON1 */
51562306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_SFT                               16
51662306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK                              0xffff
51762306a36Sopenharmony_ci#define DL_2_GAIN_CTL_PRE_MASK_SFT                          (0xffff << 16)
51862306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_SFT                              0
51962306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK                             0x1
52062306a36Sopenharmony_ci#define DL_2_GAIN_MODE_CTL_MASK_SFT                         (0x1 << 0)
52162306a36Sopenharmony_ci
52262306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON0 */
52362306a36Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_SFT                          31
52462306a36Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_MASK                         0x1
52562306a36Sopenharmony_ci#define C_COMB_OUT_SIN_GEN_CTL_MASK_SFT                     (0x1 << 31)
52662306a36Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_SFT                          30
52762306a36Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_MASK                         0x1
52862306a36Sopenharmony_ci#define C_BASEBAND_SIN_GEN_CTL_MASK_SFT                     (0x1 << 30)
52962306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_SFT                      27
53062306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK                     0x7
53162306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK_SFT                 (0x7 << 27)
53262306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_SFT                      24
53362306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK                     0x7
53462306a36Sopenharmony_ci#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK_SFT                 (0x7 << 24)
53562306a36Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_SFT                           23
53662306a36Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_MASK                          0x1
53762306a36Sopenharmony_ci#define C_TWO_DIGITAL_MIC_CTL_MASK_SFT                      (0x1 << 23)
53862306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_SFT                           22
53962306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK                          0x1
54062306a36Sopenharmony_ci#define UL_MODE_3P25M_CH2_CTL_MASK_SFT                      (0x1 << 22)
54162306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_SFT                           21
54262306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK                          0x1
54362306a36Sopenharmony_ci#define UL_MODE_3P25M_CH1_CTL_MASK_SFT                      (0x1 << 21)
54462306a36Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_SFT                          20
54562306a36Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_MASK                         0x1
54662306a36Sopenharmony_ci#define UL_SRC_USE_CIC_OUT_CTL_MASK_SFT                     (0x1 << 20)
54762306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_SFT                       17
54862306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK                      0x7
54962306a36Sopenharmony_ci#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT                  (0x7 << 17)
55062306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_SFT                         14
55162306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK                        0x3
55262306a36Sopenharmony_ci#define DMIC_LOW_POWER_MODE_CTL_MASK_SFT                    (0x3 << 14)
55362306a36Sopenharmony_ci#define DMIC_48K_SEL_CTL_SFT                                13
55462306a36Sopenharmony_ci#define DMIC_48K_SEL_CTL_MASK                               0x1
55562306a36Sopenharmony_ci#define DMIC_48K_SEL_CTL_MASK_SFT                           (0x1 << 13)
55662306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_SFT                            12
55762306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK                           0x1
55862306a36Sopenharmony_ci#define UL_DISABLE_HW_CG_CTL_MASK_SFT                       (0x1 << 12)
55962306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_SFT                               10
56062306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK                              0x1
56162306a36Sopenharmony_ci#define UL_IIR_ON_TMP_CTL_MASK_SFT                          (0x1 << 10)
56262306a36Sopenharmony_ci#define UL_IIRMODE_CTL_SFT                                  7
56362306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK                                 0x7
56462306a36Sopenharmony_ci#define UL_IIRMODE_CTL_MASK_SFT                             (0x7 << 7)
56562306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_SFT                     5
56662306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK                    0x1
56762306a36Sopenharmony_ci#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT                (0x1 << 5)
56862306a36Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_SFT                            4
56962306a36Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_MASK                           0x1
57062306a36Sopenharmony_ci#define AGC_260K_SEL_CH2_CTL_MASK_SFT                       (0x1 << 4)
57162306a36Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_SFT                            3
57262306a36Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_MASK                           0x1
57362306a36Sopenharmony_ci#define AGC_260K_SEL_CH1_CTL_MASK_SFT                       (0x1 << 3)
57462306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_SFT                           2
57562306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK                          0x1
57662306a36Sopenharmony_ci#define UL_LOOP_BACK_MODE_CTL_MASK_SFT                      (0x1 << 2)
57762306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_SFT                              1
57862306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK                             0x1
57962306a36Sopenharmony_ci#define UL_SDM_3_LEVEL_CTL_MASK_SFT                         (0x1 << 1)
58062306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_SFT                               0
58162306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK                              0x1
58262306a36Sopenharmony_ci#define UL_SRC_ON_TMP_CTL_MASK_SFT                          (0x1 << 0)
58362306a36Sopenharmony_ci
58462306a36Sopenharmony_ci/* AFE_ADDA_UL_SRC_CON1 */
58562306a36Sopenharmony_ci#define C_SDM_RESET_CTL_SFT                                 31
58662306a36Sopenharmony_ci#define C_SDM_RESET_CTL_MASK                                0x1
58762306a36Sopenharmony_ci#define C_SDM_RESET_CTL_MASK_SFT                            (0x1 << 31)
58862306a36Sopenharmony_ci#define ADITHON_CTL_SFT                                     30
58962306a36Sopenharmony_ci#define ADITHON_CTL_MASK                                    0x1
59062306a36Sopenharmony_ci#define ADITHON_CTL_MASK_SFT                                (0x1 << 30)
59162306a36Sopenharmony_ci#define ADITHVAL_CTL_SFT                                    28
59262306a36Sopenharmony_ci#define ADITHVAL_CTL_MASK                                   0x3
59362306a36Sopenharmony_ci#define ADITHVAL_CTL_MASK_SFT                               (0x3 << 28)
59462306a36Sopenharmony_ci#define C_DAC_EN_CTL_SFT                                    27
59562306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK                                   0x1
59662306a36Sopenharmony_ci#define C_DAC_EN_CTL_MASK_SFT                               (0x1 << 27)
59762306a36Sopenharmony_ci#define C_MUTE_SW_CTL_SFT                                   26
59862306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK                                  0x1
59962306a36Sopenharmony_ci#define C_MUTE_SW_CTL_MASK_SFT                              (0x1 << 26)
60062306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_SFT                                25
60162306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK                               0x1
60262306a36Sopenharmony_ci#define ASDM_SRC_SEL_CTL_MASK_SFT                           (0x1 << 25)
60362306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_SFT                               21
60462306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK                              0x7
60562306a36Sopenharmony_ci#define C_AMP_DIV_CH2_CTL_MASK_SFT                          (0x7 << 21)
60662306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_SFT                              16
60762306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK                             0x1f
60862306a36Sopenharmony_ci#define C_FREQ_DIV_CH2_CTL_MASK_SFT                         (0x1f << 16)
60962306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_SFT                             12
61062306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK                            0xf
61162306a36Sopenharmony_ci#define C_SINE_MODE_CH2_CTL_MASK_SFT                        (0xf << 12)
61262306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_SFT                               9
61362306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK                              0x7
61462306a36Sopenharmony_ci#define C_AMP_DIV_CH1_CTL_MASK_SFT                          (0x7 << 9)
61562306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_SFT                              4
61662306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK                             0x1f
61762306a36Sopenharmony_ci#define C_FREQ_DIV_CH1_CTL_MASK_SFT                         (0x1f << 4)
61862306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_SFT                             0
61962306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK                            0xf
62062306a36Sopenharmony_ci#define C_SINE_MODE_CH1_CTL_MASK_SFT                        (0xf << 0)
62162306a36Sopenharmony_ci
62262306a36Sopenharmony_ci/* AFE_ADDA_TOP_CON0 */
62362306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_SFT                            12
62462306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK                           0xf
62562306a36Sopenharmony_ci#define C_LOOP_BACK_MODE_CTL_MASK_SFT                       (0xf << 12)
62662306a36Sopenharmony_ci#define C_EXT_ADC_CTL_SFT                                   0
62762306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK                                  0x1
62862306a36Sopenharmony_ci#define C_EXT_ADC_CTL_MASK_SFT                              (0x1 << 0)
62962306a36Sopenharmony_ci
63062306a36Sopenharmony_ci/* AFE_ADDA_UL_DL_CON0 */
63162306a36Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_SFT                         1
63262306a36Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_MASK                        0x3fff
63362306a36Sopenharmony_ci#define AFE_UL_DL_CON0_RESERVED_MASK_SFT                    (0x3fff << 1)
63462306a36Sopenharmony_ci#define ADDA_AFE_ON_SFT                                     0
63562306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK                                    0x1
63662306a36Sopenharmony_ci#define ADDA_AFE_ON_MASK_SFT                                (0x1 << 0)
63762306a36Sopenharmony_ci
63862306a36Sopenharmony_ci/* AFE_IRQ_MCU_CON */
63962306a36Sopenharmony_ci#define IRQ7_MCU_MODE_SFT                                   24
64062306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK                                  0xf
64162306a36Sopenharmony_ci#define IRQ7_MCU_MODE_MASK_SFT                              (0xf << 24)
64262306a36Sopenharmony_ci#define IRQ4_MCU_MODE_SFT                                   20
64362306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK                                  0xf
64462306a36Sopenharmony_ci#define IRQ4_MCU_MODE_MASK_SFT                              (0xf << 20)
64562306a36Sopenharmony_ci#define IRQ3_MCU_MODE_SFT                                   16
64662306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK                                  0xf
64762306a36Sopenharmony_ci#define IRQ3_MCU_MODE_MASK_SFT                              (0xf << 16)
64862306a36Sopenharmony_ci#define IRQ7_MCU_ON_SFT                                     14
64962306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK                                    0x1
65062306a36Sopenharmony_ci#define IRQ7_MCU_ON_MASK_SFT                                (0x1 << 14)
65162306a36Sopenharmony_ci#define IRQ5_MCU_ON_SFT                                     12
65262306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK                                    0x1
65362306a36Sopenharmony_ci#define IRQ5_MCU_ON_MASK_SFT                                (0x1 << 12)
65462306a36Sopenharmony_ci#define IRQ2_MCU_MODE_SFT                                   8
65562306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK                                  0xf
65662306a36Sopenharmony_ci#define IRQ2_MCU_MODE_MASK_SFT                              (0xf << 8)
65762306a36Sopenharmony_ci#define IRQ1_MCU_MODE_SFT                                   4
65862306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK                                  0xf
65962306a36Sopenharmony_ci#define IRQ1_MCU_MODE_MASK_SFT                              (0xf << 4)
66062306a36Sopenharmony_ci#define IRQ4_MCU_ON_SFT                                     3
66162306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK                                    0x1
66262306a36Sopenharmony_ci#define IRQ4_MCU_ON_MASK_SFT                                (0x1 << 3)
66362306a36Sopenharmony_ci#define IRQ3_MCU_ON_SFT                                     2
66462306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK                                    0x1
66562306a36Sopenharmony_ci#define IRQ3_MCU_ON_MASK_SFT                                (0x1 << 2)
66662306a36Sopenharmony_ci#define IRQ2_MCU_ON_SFT                                     1
66762306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK                                    0x1
66862306a36Sopenharmony_ci#define IRQ2_MCU_ON_MASK_SFT                                (0x1 << 1)
66962306a36Sopenharmony_ci#define IRQ1_MCU_ON_SFT                                     0
67062306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK                                    0x1
67162306a36Sopenharmony_ci#define IRQ1_MCU_ON_MASK_SFT                                (0x1 << 0)
67262306a36Sopenharmony_ci
67362306a36Sopenharmony_ci/* AFE_IRQ_MCU_EN */
67462306a36Sopenharmony_ci#define AFE_IRQ_CM4_EN_SFT                                  16
67562306a36Sopenharmony_ci#define AFE_IRQ_CM4_EN_MASK                                 0x7f
67662306a36Sopenharmony_ci#define AFE_IRQ_CM4_EN_MASK_SFT                             (0x7f << 16)
67762306a36Sopenharmony_ci#define AFE_IRQ_MD32_EN_SFT                                 8
67862306a36Sopenharmony_ci#define AFE_IRQ_MD32_EN_MASK                                0x7f
67962306a36Sopenharmony_ci#define AFE_IRQ_MD32_EN_MASK_SFT                            (0x7f << 8)
68062306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN_SFT                                  0
68162306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN_MASK                                 0x7f
68262306a36Sopenharmony_ci#define AFE_IRQ_MCU_EN_MASK_SFT                             (0x7f << 0)
68362306a36Sopenharmony_ci
68462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CLR */
68562306a36Sopenharmony_ci#define IRQ7_MCU_CLR_SFT                                    6
68662306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK                                   0x1
68762306a36Sopenharmony_ci#define IRQ7_MCU_CLR_MASK_SFT                               (0x1 << 6)
68862306a36Sopenharmony_ci#define IRQ5_MCU_CLR_SFT                                    4
68962306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK                                   0x1
69062306a36Sopenharmony_ci#define IRQ5_MCU_CLR_MASK_SFT                               (0x1 << 4)
69162306a36Sopenharmony_ci#define IRQ4_MCU_CLR_SFT                                    3
69262306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK                                   0x1
69362306a36Sopenharmony_ci#define IRQ4_MCU_CLR_MASK_SFT                               (0x1 << 3)
69462306a36Sopenharmony_ci#define IRQ3_MCU_CLR_SFT                                    2
69562306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK                                   0x1
69662306a36Sopenharmony_ci#define IRQ3_MCU_CLR_MASK_SFT                               (0x1 << 2)
69762306a36Sopenharmony_ci#define IRQ2_MCU_CLR_SFT                                    1
69862306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK                                   0x1
69962306a36Sopenharmony_ci#define IRQ2_MCU_CLR_MASK_SFT                               (0x1 << 1)
70062306a36Sopenharmony_ci#define IRQ1_MCU_CLR_SFT                                    0
70162306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK                                   0x1
70262306a36Sopenharmony_ci#define IRQ1_MCU_CLR_MASK_SFT                               (0x1 << 0)
70362306a36Sopenharmony_ci
70462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT1 */
70562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_SFT                                0
70662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_MASK                               0x3ffff
70762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT1_MASK_SFT                           (0x3ffff << 0)
70862306a36Sopenharmony_ci
70962306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT2 */
71062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_SFT                                0
71162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_MASK                               0x3ffff
71262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT2_MASK_SFT                           (0x3ffff << 0)
71362306a36Sopenharmony_ci
71462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT3 */
71562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_SFT                                0
71662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_MASK                               0x3ffff
71762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT3_MASK_SFT                           (0x3ffff << 0)
71862306a36Sopenharmony_ci
71962306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT4 */
72062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_SFT                                0
72162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_MASK                               0x3ffff
72262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT4_MASK_SFT                           (0x3ffff << 0)
72362306a36Sopenharmony_ci
72462306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT5 */
72562306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_SFT                                0
72662306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_MASK                               0x3ffff
72762306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT5_MASK_SFT                           (0x3ffff << 0)
72862306a36Sopenharmony_ci
72962306a36Sopenharmony_ci/* AFE_IRQ_MCU_CNT7 */
73062306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_SFT                                0
73162306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_MASK                               0x3ffff
73262306a36Sopenharmony_ci#define AFE_IRQ_MCU_CNT7_MASK_SFT                           (0x3ffff << 0)
73362306a36Sopenharmony_ci
73462306a36Sopenharmony_ci/* AFE_MEMIF_MSB */
73562306a36Sopenharmony_ci#define CPU_COMPACT_MODE_SFT                                23
73662306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK                               0x1
73762306a36Sopenharmony_ci#define CPU_COMPACT_MODE_MASK_SFT                           (0x1 << 23)
73862306a36Sopenharmony_ci#define CPU_HD_ALIGN_SFT                                    22
73962306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK                                   0x1
74062306a36Sopenharmony_ci#define CPU_HD_ALIGN_MASK_SFT                               (0x1 << 22)
74162306a36Sopenharmony_ci
74262306a36Sopenharmony_ci/* AFE_MEMIF_HD_MODE */
74362306a36Sopenharmony_ci#define HDMI_HD_SFT                                         20
74462306a36Sopenharmony_ci#define HDMI_HD_MASK                                        0x3
74562306a36Sopenharmony_ci#define HDMI_HD_MASK_SFT                                    (0x3 << 20)
74662306a36Sopenharmony_ci#define MOD_DAI_HD_SFT                                      18
74762306a36Sopenharmony_ci#define MOD_DAI_HD_MASK                                     0x3
74862306a36Sopenharmony_ci#define MOD_DAI_HD_MASK_SFT                                 (0x3 << 18)
74962306a36Sopenharmony_ci#define DAI_HD_SFT                                          16
75062306a36Sopenharmony_ci#define DAI_HD_MASK                                         0x3
75162306a36Sopenharmony_ci#define DAI_HD_MASK_SFT                                     (0x3 << 16)
75262306a36Sopenharmony_ci#define VUL_DATA2_HD_SFT                                    12
75362306a36Sopenharmony_ci#define VUL_DATA2_HD_MASK                                   0x3
75462306a36Sopenharmony_ci#define VUL_DATA2_HD_MASK_SFT                               (0x3 << 12)
75562306a36Sopenharmony_ci#define VUL_HD_SFT                                          10
75662306a36Sopenharmony_ci#define VUL_HD_MASK                                         0x3
75762306a36Sopenharmony_ci#define VUL_HD_MASK_SFT                                     (0x3 << 10)
75862306a36Sopenharmony_ci#define AWB_HD_SFT                                          8
75962306a36Sopenharmony_ci#define AWB_HD_MASK                                         0x3
76062306a36Sopenharmony_ci#define AWB_HD_MASK_SFT                                     (0x3 << 8)
76162306a36Sopenharmony_ci#define DL3_HD_SFT                                          6
76262306a36Sopenharmony_ci#define DL3_HD_MASK                                         0x3
76362306a36Sopenharmony_ci#define DL3_HD_MASK_SFT                                     (0x3 << 6)
76462306a36Sopenharmony_ci#define DL2_HD_SFT                                          4
76562306a36Sopenharmony_ci#define DL2_HD_MASK                                         0x3
76662306a36Sopenharmony_ci#define DL2_HD_MASK_SFT                                     (0x3 << 4)
76762306a36Sopenharmony_ci#define DL1_DATA2_HD_SFT                                    2
76862306a36Sopenharmony_ci#define DL1_DATA2_HD_MASK                                   0x3
76962306a36Sopenharmony_ci#define DL1_DATA2_HD_MASK_SFT                               (0x3 << 2)
77062306a36Sopenharmony_ci#define DL1_HD_SFT                                          0
77162306a36Sopenharmony_ci#define DL1_HD_MASK                                         0x3
77262306a36Sopenharmony_ci#define DL1_HD_MASK_SFT                                     (0x3 << 0)
77362306a36Sopenharmony_ci
77462306a36Sopenharmony_ci/* AFE_MEMIF_HDALIGN */
77562306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_SFT                                26
77662306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK                               0x1
77762306a36Sopenharmony_ci#define HDMI_NORMAL_MODE_MASK_SFT                           (0x1 << 26)
77862306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_SFT                             25
77962306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK                            0x1
78062306a36Sopenharmony_ci#define MOD_DAI_NORMAL_MODE_MASK_SFT                        (0x1 << 25)
78162306a36Sopenharmony_ci#define DAI_NORMAL_MODE_SFT                                 24
78262306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK                                0x1
78362306a36Sopenharmony_ci#define DAI_NORMAL_MODE_MASK_SFT                            (0x1 << 24)
78462306a36Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_SFT                           22
78562306a36Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_MASK                          0x1
78662306a36Sopenharmony_ci#define VUL_DATA2_NORMAL_MODE_MASK_SFT                      (0x1 << 22)
78762306a36Sopenharmony_ci#define VUL_NORMAL_MODE_SFT                                 21
78862306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK                                0x1
78962306a36Sopenharmony_ci#define VUL_NORMAL_MODE_MASK_SFT                            (0x1 << 21)
79062306a36Sopenharmony_ci#define AWB_NORMAL_MODE_SFT                                 20
79162306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK                                0x1
79262306a36Sopenharmony_ci#define AWB_NORMAL_MODE_MASK_SFT                            (0x1 << 20)
79362306a36Sopenharmony_ci#define DL3_NORMAL_MODE_SFT                                 19
79462306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK                                0x1
79562306a36Sopenharmony_ci#define DL3_NORMAL_MODE_MASK_SFT                            (0x1 << 19)
79662306a36Sopenharmony_ci#define DL2_NORMAL_MODE_SFT                                 18
79762306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK                                0x1
79862306a36Sopenharmony_ci#define DL2_NORMAL_MODE_MASK_SFT                            (0x1 << 18)
79962306a36Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_SFT                           17
80062306a36Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_MASK                          0x1
80162306a36Sopenharmony_ci#define DL1_DATA2_NORMAL_MODE_MASK_SFT                      (0x1 << 17)
80262306a36Sopenharmony_ci#define DL1_NORMAL_MODE_SFT                                 16
80362306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK                                0x1
80462306a36Sopenharmony_ci#define DL1_NORMAL_MODE_MASK_SFT                            (0x1 << 16)
80562306a36Sopenharmony_ci#define HDMI_HD_ALIGN_SFT                                   10
80662306a36Sopenharmony_ci#define HDMI_HD_ALIGN_MASK                                  0x1
80762306a36Sopenharmony_ci#define HDMI_HD_ALIGN_MASK_SFT                              (0x1 << 10)
80862306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_SFT                                9
80962306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK                               0x1
81062306a36Sopenharmony_ci#define MOD_DAI_HD_ALIGN_MASK_SFT                           (0x1 << 9)
81162306a36Sopenharmony_ci#define DAI_ALIGN_SFT                                       8
81262306a36Sopenharmony_ci#define DAI_ALIGN_MASK                                      0x1
81362306a36Sopenharmony_ci#define DAI_ALIGN_MASK_SFT                                  (0x1 << 8)
81462306a36Sopenharmony_ci#define VUL2_HD_ALIGN_SFT                                   7
81562306a36Sopenharmony_ci#define VUL2_HD_ALIGN_MASK                                  0x1
81662306a36Sopenharmony_ci#define VUL2_HD_ALIGN_MASK_SFT                              (0x1 << 7)
81762306a36Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_SFT                              6
81862306a36Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_MASK                             0x1
81962306a36Sopenharmony_ci#define VUL_DATA2_HD_ALIGN_MASK_SFT                         (0x1 << 6)
82062306a36Sopenharmony_ci#define VUL_HD_ALIGN_SFT                                    5
82162306a36Sopenharmony_ci#define VUL_HD_ALIGN_MASK                                   0x1
82262306a36Sopenharmony_ci#define VUL_HD_ALIGN_MASK_SFT                               (0x1 << 5)
82362306a36Sopenharmony_ci#define AWB_HD_ALIGN_SFT                                    4
82462306a36Sopenharmony_ci#define AWB_HD_ALIGN_MASK                                   0x1
82562306a36Sopenharmony_ci#define AWB_HD_ALIGN_MASK_SFT                               (0x1 << 4)
82662306a36Sopenharmony_ci#define DL3_HD_ALIGN_SFT                                    3
82762306a36Sopenharmony_ci#define DL3_HD_ALIGN_MASK                                   0x1
82862306a36Sopenharmony_ci#define DL3_HD_ALIGN_MASK_SFT                               (0x1 << 3)
82962306a36Sopenharmony_ci#define DL2_HD_ALIGN_SFT                                    2
83062306a36Sopenharmony_ci#define DL2_HD_ALIGN_MASK                                   0x1
83162306a36Sopenharmony_ci#define DL2_HD_ALIGN_MASK_SFT                               (0x1 << 2)
83262306a36Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_SFT                              1
83362306a36Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_MASK                             0x1
83462306a36Sopenharmony_ci#define DL1_DATA2_HD_ALIGN_MASK_SFT                         (0x1 << 1)
83562306a36Sopenharmony_ci#define DL1_HD_ALIGN_SFT                                    0
83662306a36Sopenharmony_ci#define DL1_HD_ALIGN_MASK                                   0x1
83762306a36Sopenharmony_ci#define DL1_HD_ALIGN_MASK_SFT                               (0x1 << 0)
83862306a36Sopenharmony_ci
83962306a36Sopenharmony_ci/* PCM_INTF_CON1 */
84062306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_SFT                               31
84162306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK                              0x1
84262306a36Sopenharmony_ci#define PCM_FIX_VALUE_SEL_MASK_SFT                          (0x1 << 31)
84362306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_SFT                             30
84462306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK                            0x1
84562306a36Sopenharmony_ci#define PCM_BUFFER_LOOPBACK_MASK_SFT                        (0x1 << 30)
84662306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_SFT                           29
84762306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK                          0x1
84862306a36Sopenharmony_ci#define PCM_PARALLEL_LOOPBACK_MASK_SFT                      (0x1 << 29)
84962306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_SFT                             28
85062306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK                            0x1
85162306a36Sopenharmony_ci#define PCM_SERIAL_LOOPBACK_MASK_SFT                        (0x1 << 28)
85262306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_SFT                            27
85362306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK                           0x1
85462306a36Sopenharmony_ci#define PCM_DAI_PCM_LOOPBACK_MASK_SFT                       (0x1 << 27)
85562306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_SFT                            26
85662306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK                           0x1
85762306a36Sopenharmony_ci#define PCM_I2S_PCM_LOOPBACK_MASK_SFT                       (0x1 << 26)
85862306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_SFT                                 25
85962306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK                                0x1
86062306a36Sopenharmony_ci#define PCM_SYNC_DELSEL_MASK_SFT                            (0x1 << 25)
86162306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_SFT                                  24
86262306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK                                 0x1
86362306a36Sopenharmony_ci#define PCM_TX_LR_SWAP_MASK_SFT                             (0x1 << 24)
86462306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_SFT                                23
86562306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK                               0x1
86662306a36Sopenharmony_ci#define PCM_SYNC_OUT_INV_MASK_SFT                           (0x1 << 23)
86762306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_SFT                                22
86862306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK                               0x1
86962306a36Sopenharmony_ci#define PCM_BCLK_OUT_INV_MASK_SFT                           (0x1 << 22)
87062306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_SFT                                 21
87162306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK                                0x1
87262306a36Sopenharmony_ci#define PCM_SYNC_IN_INV_MASK_SFT                            (0x1 << 21)
87362306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_SFT                                 20
87462306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK                                0x1
87562306a36Sopenharmony_ci#define PCM_BCLK_IN_INV_MASK_SFT                            (0x1 << 20)
87662306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_SFT                                  19
87762306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK                                 0x1
87862306a36Sopenharmony_ci#define PCM_TX_LCH_RPT_MASK_SFT                             (0x1 << 19)
87962306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_SFT                                18
88062306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK                               0x1
88162306a36Sopenharmony_ci#define PCM_VBT_16K_MODE_MASK_SFT                           (0x1 << 18)
88262306a36Sopenharmony_ci#define PCM_EXT_MODEM_SFT                                   17
88362306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK                                  0x1
88462306a36Sopenharmony_ci#define PCM_EXT_MODEM_MASK_SFT                              (0x1 << 17)
88562306a36Sopenharmony_ci#define PCM_24BIT_SFT                                       16
88662306a36Sopenharmony_ci#define PCM_24BIT_MASK                                      0x1
88762306a36Sopenharmony_ci#define PCM_24BIT_MASK_SFT                                  (0x1 << 16)
88862306a36Sopenharmony_ci#define PCM_WLEN_SFT                                        14
88962306a36Sopenharmony_ci#define PCM_WLEN_MASK                                       0x3
89062306a36Sopenharmony_ci#define PCM_WLEN_MASK_SFT                                   (0x3 << 14)
89162306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_SFT                                 9
89262306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK                                0x1f
89362306a36Sopenharmony_ci#define PCM_SYNC_LENGTH_MASK_SFT                            (0x1f << 9)
89462306a36Sopenharmony_ci#define PCM_SYNC_TYPE_SFT                                   8
89562306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK                                  0x1
89662306a36Sopenharmony_ci#define PCM_SYNC_TYPE_MASK_SFT                              (0x1 << 8)
89762306a36Sopenharmony_ci#define PCM_BT_MODE_SFT                                     7
89862306a36Sopenharmony_ci#define PCM_BT_MODE_MASK                                    0x1
89962306a36Sopenharmony_ci#define PCM_BT_MODE_MASK_SFT                                (0x1 << 7)
90062306a36Sopenharmony_ci#define PCM_BYP_ASRC_SFT                                    6
90162306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK                                   0x1
90262306a36Sopenharmony_ci#define PCM_BYP_ASRC_MASK_SFT                               (0x1 << 6)
90362306a36Sopenharmony_ci#define PCM_SLAVE_SFT                                       5
90462306a36Sopenharmony_ci#define PCM_SLAVE_MASK                                      0x1
90562306a36Sopenharmony_ci#define PCM_SLAVE_MASK_SFT                                  (0x1 << 5)
90662306a36Sopenharmony_ci#define PCM_MODE_SFT                                        3
90762306a36Sopenharmony_ci#define PCM_MODE_MASK                                       0x3
90862306a36Sopenharmony_ci#define PCM_MODE_MASK_SFT                                   (0x3 << 3)
90962306a36Sopenharmony_ci#define PCM_FMT_SFT                                         1
91062306a36Sopenharmony_ci#define PCM_FMT_MASK                                        0x3
91162306a36Sopenharmony_ci#define PCM_FMT_MASK_SFT                                    (0x3 << 1)
91262306a36Sopenharmony_ci#define PCM_EN_SFT                                          0
91362306a36Sopenharmony_ci#define PCM_EN_MASK                                         0x1
91462306a36Sopenharmony_ci#define PCM_EN_MASK_SFT                                     (0x1 << 0)
91562306a36Sopenharmony_ci
91662306a36Sopenharmony_ci/* PCM_INTF_CON2 */
91762306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_SFT                                 31
91862306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK                                0x1
91962306a36Sopenharmony_ci#define PCM1_TX_FIFO_OV_MASK_SFT                            (0x1 << 31)
92062306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_SFT                                 30
92162306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK                                0x1
92262306a36Sopenharmony_ci#define PCM1_RX_FIFO_OV_MASK_SFT                            (0x1 << 30)
92362306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_SFT                                 29
92462306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK                                0x1
92562306a36Sopenharmony_ci#define PCM2_TX_FIFO_OV_MASK_SFT                            (0x1 << 29)
92662306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_SFT                                 28
92762306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK                                0x1
92862306a36Sopenharmony_ci#define PCM2_RX_FIFO_OV_MASK_SFT                            (0x1 << 28)
92962306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_SFT                                27
93062306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK                               0x1
93162306a36Sopenharmony_ci#define PCM1_SYNC_GLITCH_MASK_SFT                           (0x1 << 27)
93262306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_SFT                                26
93362306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK                               0x1
93462306a36Sopenharmony_ci#define PCM2_SYNC_GLITCH_MASK_SFT                           (0x1 << 26)
93562306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_SFT                              15
93662306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK                             0x1
93762306a36Sopenharmony_ci#define PCM1_PCM2_LOOPBACK_MASK_SFT                         (0x1 << 15)
93862306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_SFT                             13
93962306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK                            0x1
94062306a36Sopenharmony_ci#define DAI_PCM_LOOPBACK_CH_MASK_SFT                        (0x1 << 13)
94162306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_SFT                             12
94262306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK                            0x1
94362306a36Sopenharmony_ci#define I2S_PCM_LOOPBACK_CH_MASK_SFT                        (0x1 << 12)
94462306a36Sopenharmony_ci#define PCM_USE_MD3_SFT                                     8
94562306a36Sopenharmony_ci#define PCM_USE_MD3_MASK                                    0x1
94662306a36Sopenharmony_ci#define PCM_USE_MD3_MASK_SFT                                (0x1 << 8)
94762306a36Sopenharmony_ci#define TX_FIX_VALUE_SFT                                    0
94862306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK                                   0xff
94962306a36Sopenharmony_ci#define TX_FIX_VALUE_MASK_SFT                               (0xff << 0)
95062306a36Sopenharmony_ci
95162306a36Sopenharmony_ci/* PCM2_INTF_CON */
95262306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_SFT                                24
95362306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK                               0xff
95462306a36Sopenharmony_ci#define PCM2_TX_FIX_VALUE_MASK_SFT                           (0xff << 24)
95562306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_SFT                               23
95662306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK                              0x1
95762306a36Sopenharmony_ci#define PCM2_FIX_VALUE_SEL_MASK_SFT                          (0x1 << 23)
95862306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_SFT                             22
95962306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK                            0x1
96062306a36Sopenharmony_ci#define PCM2_BUFFER_LOOPBACK_MASK_SFT                        (0x1 << 22)
96162306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_SFT                           21
96262306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK                          0x1
96362306a36Sopenharmony_ci#define PCM2_PARALLEL_LOOPBACK_MASK_SFT                      (0x1 << 21)
96462306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_SFT                             20
96562306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK                            0x1
96662306a36Sopenharmony_ci#define PCM2_SERIAL_LOOPBACK_MASK_SFT                        (0x1 << 20)
96762306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_SFT                            19
96862306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK                           0x1
96962306a36Sopenharmony_ci#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT                       (0x1 << 19)
97062306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_SFT                            18
97162306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK                           0x1
97262306a36Sopenharmony_ci#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT                       (0x1 << 18)
97362306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_SFT                                 17
97462306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK                                0x1
97562306a36Sopenharmony_ci#define PCM2_SYNC_DELSEL_MASK_SFT                            (0x1 << 17)
97662306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_SFT                                  16
97762306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK                                 0x1
97862306a36Sopenharmony_ci#define PCM2_TX_LR_SWAP_MASK_SFT                             (0x1 << 16)
97962306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_SFT                                 15
98062306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK                                0x1
98162306a36Sopenharmony_ci#define PCM2_SYNC_IN_INV_MASK_SFT                            (0x1 << 15)
98262306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_SFT                                 14
98362306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK                                0x1
98462306a36Sopenharmony_ci#define PCM2_BCLK_IN_INV_MASK_SFT                            (0x1 << 14)
98562306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_SFT                                  13
98662306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK                                 0x1
98762306a36Sopenharmony_ci#define PCM2_TX_LCH_RPT_MASK_SFT                             (0x1 << 13)
98862306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_SFT                                12
98962306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK                               0x1
99062306a36Sopenharmony_ci#define PCM2_VBT_16K_MODE_MASK_SFT                           (0x1 << 12)
99162306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_SFT                             10
99262306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK                            0x3
99362306a36Sopenharmony_ci#define PCM2_LOOPBACK_CH_SEL_MASK_SFT                        (0x3 << 10)
99462306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_SFT                                 8
99562306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK                                0x1
99662306a36Sopenharmony_ci#define PCM2_TX2_BT_MODE_MASK_SFT                            (0x1 << 8)
99762306a36Sopenharmony_ci#define PCM2_BT_MODE_SFT                                     7
99862306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK                                    0x1
99962306a36Sopenharmony_ci#define PCM2_BT_MODE_MASK_SFT                                (0x1 << 7)
100062306a36Sopenharmony_ci#define PCM2_AFIFO_SFT                                       6
100162306a36Sopenharmony_ci#define PCM2_AFIFO_MASK                                      0x1
100262306a36Sopenharmony_ci#define PCM2_AFIFO_MASK_SFT                                  (0x1 << 6)
100362306a36Sopenharmony_ci#define PCM2_WLEN_SFT                                        5
100462306a36Sopenharmony_ci#define PCM2_WLEN_MASK                                       0x1
100562306a36Sopenharmony_ci#define PCM2_WLEN_MASK_SFT                                   (0x1 << 5)
100662306a36Sopenharmony_ci#define PCM2_MODE_SFT                                        3
100762306a36Sopenharmony_ci#define PCM2_MODE_MASK                                       0x3
100862306a36Sopenharmony_ci#define PCM2_MODE_MASK_SFT                                   (0x3 << 3)
100962306a36Sopenharmony_ci#define PCM2_FMT_SFT                                         1
101062306a36Sopenharmony_ci#define PCM2_FMT_MASK                                        0x3
101162306a36Sopenharmony_ci#define PCM2_FMT_MASK_SFT                                    (0x3 << 1)
101262306a36Sopenharmony_ci#define PCM2_EN_SFT                                          0
101362306a36Sopenharmony_ci#define PCM2_EN_MASK                                         0x1
101462306a36Sopenharmony_ci#define PCM2_EN_MASK_SFT                                     (0x1 << 0)
101562306a36Sopenharmony_ci#endif
1016