Path: blob/master/sound/soc/mediatek/mt6797/mt6797-reg.h
26488 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* mt6797-reg.h -- Mediatek 6797 audio driver reg definition3*4* Copyright (c) 2018 MediaTek Inc.5* Author: KaiChieh Chuang <[email protected]>6*/78#ifndef _MT6797_REG_H_9#define _MT6797_REG_H_1011#define AUDIO_TOP_CON0 0x000012#define AUDIO_TOP_CON1 0x000413#define AUDIO_TOP_CON3 0x000c14#define AFE_DAC_CON0 0x001015#define AFE_DAC_CON1 0x001416#define AFE_I2S_CON 0x001817#define AFE_DAIBT_CON0 0x001c18#define AFE_CONN0 0x002019#define AFE_CONN1 0x002420#define AFE_CONN2 0x002821#define AFE_CONN3 0x002c22#define AFE_CONN4 0x003023#define AFE_I2S_CON1 0x003424#define AFE_I2S_CON2 0x003825#define AFE_MRGIF_CON 0x003c26#define AFE_DL1_BASE 0x004027#define AFE_DL1_CUR 0x004428#define AFE_DL1_END 0x004829#define AFE_I2S_CON3 0x004c30#define AFE_DL2_BASE 0x005031#define AFE_DL2_CUR 0x005432#define AFE_DL2_END 0x005833#define AFE_CONN5 0x005c34#define AFE_CONN_24BIT 0x006c35#define AFE_AWB_BASE 0x007036#define AFE_AWB_END 0x007837#define AFE_AWB_CUR 0x007c38#define AFE_VUL_BASE 0x008039#define AFE_VUL_END 0x008840#define AFE_VUL_CUR 0x008c41#define AFE_DAI_BASE 0x009042#define AFE_DAI_END 0x009843#define AFE_DAI_CUR 0x009c44#define AFE_CONN6 0x00bc45#define AFE_MEMIF_MSB 0x00cc46#define AFE_MEMIF_MON0 0x00d047#define AFE_MEMIF_MON1 0x00d448#define AFE_MEMIF_MON2 0x00d849#define AFE_MEMIF_MON4 0x00e050#define AFE_ADDA_DL_SRC2_CON0 0x010851#define AFE_ADDA_DL_SRC2_CON1 0x010c52#define AFE_ADDA_UL_SRC_CON0 0x011453#define AFE_ADDA_UL_SRC_CON1 0x011854#define AFE_ADDA_TOP_CON0 0x012055#define AFE_ADDA_UL_DL_CON0 0x012456#define AFE_ADDA_SRC_DEBUG 0x012c57#define AFE_ADDA_SRC_DEBUG_MON0 0x013058#define AFE_ADDA_SRC_DEBUG_MON1 0x013459#define AFE_ADDA_NEWIF_CFG0 0x013860#define AFE_ADDA_NEWIF_CFG1 0x013c61#define AFE_ADDA_NEWIF_CFG2 0x014062#define AFE_DMA_CTL 0x015063#define AFE_DMA_MON0 0x015464#define AFE_DMA_MON1 0x015865#define AFE_SIDETONE_DEBUG 0x01d066#define AFE_SIDETONE_MON 0x01d467#define AFE_SIDETONE_CON0 0x01e068#define AFE_SIDETONE_COEFF 0x01e469#define AFE_SIDETONE_CON1 0x01e870#define AFE_SIDETONE_GAIN 0x01ec71#define AFE_SGEN_CON0 0x01f072#define AFE_SINEGEN_CON_TDM 0x01fc73#define AFE_TOP_CON0 0x020074#define AFE_ADDA_PREDIS_CON0 0x026075#define AFE_ADDA_PREDIS_CON1 0x026476#define AFE_MRGIF_MON0 0x027077#define AFE_MRGIF_MON1 0x027478#define AFE_MRGIF_MON2 0x027879#define AFE_I2S_MON 0x027c80#define AFE_MOD_DAI_BASE 0x033081#define AFE_MOD_DAI_END 0x033882#define AFE_MOD_DAI_CUR 0x033c83#define AFE_VUL_D2_BASE 0x035084#define AFE_VUL_D2_END 0x035885#define AFE_VUL_D2_CUR 0x035c86#define AFE_DL3_BASE 0x036087#define AFE_DL3_CUR 0x036488#define AFE_DL3_END 0x036889#define AFE_HDMI_OUT_CON0 0x037090#define AFE_HDMI_BASE 0x037491#define AFE_HDMI_CUR 0x037892#define AFE_HDMI_END 0x037c93#define AFE_HDMI_CONN0 0x039094#define AFE_IRQ3_MCU_CNT_MON 0x039895#define AFE_IRQ4_MCU_CNT_MON 0x039c96#define AFE_IRQ_MCU_CON 0x03a097#define AFE_IRQ_MCU_STATUS 0x03a498#define AFE_IRQ_MCU_CLR 0x03a899#define AFE_IRQ_MCU_CNT1 0x03ac100#define AFE_IRQ_MCU_CNT2 0x03b0101#define AFE_IRQ_MCU_EN 0x03b4102#define AFE_IRQ_MCU_MON2 0x03b8103#define AFE_IRQ_MCU_CNT5 0x03bc104#define AFE_IRQ1_MCU_CNT_MON 0x03c0105#define AFE_IRQ2_MCU_CNT_MON 0x03c4106#define AFE_IRQ1_MCU_EN_CNT_MON 0x03c8107#define AFE_IRQ5_MCU_CNT_MON 0x03cc108#define AFE_MEMIF_MINLEN 0x03d0109#define AFE_MEMIF_MAXLEN 0x03d4110#define AFE_MEMIF_PBUF_SIZE 0x03d8111#define AFE_IRQ_MCU_CNT7 0x03dc112#define AFE_IRQ7_MCU_CNT_MON 0x03e0113#define AFE_IRQ_MCU_CNT3 0x03e4114#define AFE_IRQ_MCU_CNT4 0x03e8115#define AFE_APLL1_TUNER_CFG 0x03f0116#define AFE_APLL2_TUNER_CFG 0x03f4117#define AFE_MEMIF_HD_MODE 0x03f8118#define AFE_MEMIF_HDALIGN 0x03fc119#define AFE_GAIN1_CON0 0x0410120#define AFE_GAIN1_CON1 0x0414121#define AFE_GAIN1_CON2 0x0418122#define AFE_GAIN1_CON3 0x041c123#define AFE_CONN7 0x0420124#define AFE_GAIN1_CUR 0x0424125#define AFE_GAIN2_CON0 0x0428126#define AFE_GAIN2_CON1 0x042c127#define AFE_GAIN2_CON2 0x0430128#define AFE_GAIN2_CON3 0x0434129#define AFE_CONN8 0x0438130#define AFE_GAIN2_CUR 0x043c131#define AFE_CONN9 0x0440132#define AFE_CONN10 0x0444133#define AFE_CONN11 0x0448134#define AFE_CONN12 0x044c135#define AFE_CONN13 0x0450136#define AFE_CONN14 0x0454137#define AFE_CONN15 0x0458138#define AFE_CONN16 0x045c139#define AFE_CONN17 0x0460140#define AFE_CONN18 0x0464141#define AFE_CONN19 0x0468142#define AFE_CONN20 0x046c143#define AFE_CONN21 0x0470144#define AFE_CONN22 0x0474145#define AFE_CONN23 0x0478146#define AFE_CONN24 0x047c147#define AFE_CONN_RS 0x0494148#define AFE_CONN_DI 0x0498149#define AFE_CONN25 0x04b0150#define AFE_CONN26 0x04b4151#define AFE_CONN27 0x04b8152#define AFE_CONN28 0x04bc153#define AFE_CONN29 0x04c0154#define AFE_SRAM_DELSEL_CON0 0x04f0155#define AFE_SRAM_DELSEL_CON1 0x04f4156#define AFE_ASRC_CON0 0x0500157#define AFE_ASRC_CON1 0x0504158#define AFE_ASRC_CON2 0x0508159#define AFE_ASRC_CON3 0x050c160#define AFE_ASRC_CON4 0x0510161#define AFE_ASRC_CON5 0x0514162#define AFE_ASRC_CON6 0x0518163#define AFE_ASRC_CON7 0x051c164#define AFE_ASRC_CON8 0x0520165#define AFE_ASRC_CON9 0x0524166#define AFE_ASRC_CON10 0x0528167#define AFE_ASRC_CON11 0x052c168#define PCM_INTF_CON1 0x0530169#define PCM_INTF_CON2 0x0538170#define PCM2_INTF_CON 0x053c171#define AFE_TDM_CON1 0x0548172#define AFE_TDM_CON2 0x054c173#define AFE_ASRC_CON13 0x0550174#define AFE_ASRC_CON14 0x0554175#define AFE_ASRC_CON15 0x0558176#define AFE_ASRC_CON16 0x055c177#define AFE_ASRC_CON17 0x0560178#define AFE_ASRC_CON18 0x0564179#define AFE_ASRC_CON19 0x0568180#define AFE_ASRC_CON20 0x056c181#define AFE_ASRC_CON21 0x0570182#define CLK_AUDDIV_0 0x05a0183#define CLK_AUDDIV_1 0x05a4184#define CLK_AUDDIV_2 0x05a8185#define CLK_AUDDIV_3 0x05ac186#define AUDIO_TOP_DBG_CON 0x05c8187#define AUDIO_TOP_DBG_MON0 0x05cc188#define AUDIO_TOP_DBG_MON1 0x05d0189#define AUDIO_TOP_DBG_MON2 0x05d4190#define AFE_ADDA2_TOP_CON0 0x0600191#define AFE_ASRC4_CON0 0x06c0192#define AFE_ASRC4_CON1 0x06c4193#define AFE_ASRC4_CON2 0x06c8194#define AFE_ASRC4_CON3 0x06cc195#define AFE_ASRC4_CON4 0x06d0196#define AFE_ASRC4_CON5 0x06d4197#define AFE_ASRC4_CON6 0x06d8198#define AFE_ASRC4_CON7 0x06dc199#define AFE_ASRC4_CON8 0x06e0200#define AFE_ASRC4_CON9 0x06e4201#define AFE_ASRC4_CON10 0x06e8202#define AFE_ASRC4_CON11 0x06ec203#define AFE_ASRC4_CON12 0x06f0204#define AFE_ASRC4_CON13 0x06f4205#define AFE_ASRC4_CON14 0x06f8206#define AFE_ASRC2_CON0 0x0700207#define AFE_ASRC2_CON1 0x0704208#define AFE_ASRC2_CON2 0x0708209#define AFE_ASRC2_CON3 0x070c210#define AFE_ASRC2_CON4 0x0710211#define AFE_ASRC2_CON5 0x0714212#define AFE_ASRC2_CON6 0x0718213#define AFE_ASRC2_CON7 0x071c214#define AFE_ASRC2_CON8 0x0720215#define AFE_ASRC2_CON9 0x0724216#define AFE_ASRC2_CON10 0x0728217#define AFE_ASRC2_CON11 0x072c218#define AFE_ASRC2_CON12 0x0730219#define AFE_ASRC2_CON13 0x0734220#define AFE_ASRC2_CON14 0x0738221#define AFE_ASRC3_CON0 0x0740222#define AFE_ASRC3_CON1 0x0744223#define AFE_ASRC3_CON2 0x0748224#define AFE_ASRC3_CON3 0x074c225#define AFE_ASRC3_CON4 0x0750226#define AFE_ASRC3_CON5 0x0754227#define AFE_ASRC3_CON6 0x0758228#define AFE_ASRC3_CON7 0x075c229#define AFE_ASRC3_CON8 0x0760230#define AFE_ASRC3_CON9 0x0764231#define AFE_ASRC3_CON10 0x0768232#define AFE_ASRC3_CON11 0x076c233#define AFE_ASRC3_CON12 0x0770234#define AFE_ASRC3_CON13 0x0774235#define AFE_ASRC3_CON14 0x0778236#define AFE_GENERAL_REG0 0x0800237#define AFE_GENERAL_REG1 0x0804238#define AFE_GENERAL_REG2 0x0808239#define AFE_GENERAL_REG3 0x080c240#define AFE_GENERAL_REG4 0x0810241#define AFE_GENERAL_REG5 0x0814242#define AFE_GENERAL_REG6 0x0818243#define AFE_GENERAL_REG7 0x081c244#define AFE_GENERAL_REG8 0x0820245#define AFE_GENERAL_REG9 0x0824246#define AFE_GENERAL_REG10 0x0828247#define AFE_GENERAL_REG11 0x082c248#define AFE_GENERAL_REG12 0x0830249#define AFE_GENERAL_REG13 0x0834250#define AFE_GENERAL_REG14 0x0838251#define AFE_GENERAL_REG15 0x083c252#define AFE_CBIP_CFG0 0x0840253#define AFE_CBIP_MON0 0x0844254#define AFE_CBIP_SLV_MUX_MON0 0x0848255#define AFE_CBIP_SLV_DECODER_MON0 0x084c256257#define AFE_MAX_REGISTER AFE_CBIP_SLV_DECODER_MON0258#define AFE_IRQ_STATUS_BITS 0x5f259260/* AUDIO_TOP_CON0 */261#define AHB_IDLE_EN_INT_SFT 30262#define AHB_IDLE_EN_INT_MASK 0x1263#define AHB_IDLE_EN_INT_MASK_SFT (0x1 << 30)264#define AHB_IDLE_EN_EXT_SFT 29265#define AHB_IDLE_EN_EXT_MASK 0x1266#define AHB_IDLE_EN_EXT_MASK_SFT (0x1 << 29)267#define PDN_TML_SFT 27268#define PDN_TML_MASK 0x1269#define PDN_TML_MASK_SFT (0x1 << 27)270#define PDN_DAC_PREDIS_SFT 26271#define PDN_DAC_PREDIS_MASK 0x1272#define PDN_DAC_PREDIS_MASK_SFT (0x1 << 26)273#define PDN_DAC_SFT 25274#define PDN_DAC_MASK 0x1275#define PDN_DAC_MASK_SFT (0x1 << 25)276#define PDN_ADC_SFT 24277#define PDN_ADC_MASK 0x1278#define PDN_ADC_MASK_SFT (0x1 << 24)279#define PDN_TDM_CK_SFT 20280#define PDN_TDM_CK_MASK 0x1281#define PDN_TDM_CK_MASK_SFT (0x1 << 20)282#define PDN_APLL_TUNER_SFT 19283#define PDN_APLL_TUNER_MASK 0x1284#define PDN_APLL_TUNER_MASK_SFT (0x1 << 19)285#define PDN_APLL2_TUNER_SFT 18286#define PDN_APLL2_TUNER_MASK 0x1287#define PDN_APLL2_TUNER_MASK_SFT (0x1 << 18)288#define APB3_SEL_SFT 14289#define APB3_SEL_MASK 0x1290#define APB3_SEL_MASK_SFT (0x1 << 14)291#define APB_R2T_SFT 13292#define APB_R2T_MASK 0x1293#define APB_R2T_MASK_SFT (0x1 << 13)294#define APB_W2T_SFT 12295#define APB_W2T_MASK 0x1296#define APB_W2T_MASK_SFT (0x1 << 12)297#define PDN_24M_SFT 9298#define PDN_24M_MASK 0x1299#define PDN_24M_MASK_SFT (0x1 << 9)300#define PDN_22M_SFT 8301#define PDN_22M_MASK 0x1302#define PDN_22M_MASK_SFT (0x1 << 8)303#define PDN_ADDA4_ADC_SFT 7304#define PDN_ADDA4_ADC_MASK 0x1305#define PDN_ADDA4_ADC_MASK_SFT (0x1 << 7)306#define PDN_I2S_SFT 6307#define PDN_I2S_MASK 0x1308#define PDN_I2S_MASK_SFT (0x1 << 6)309#define PDN_AFE_SFT 2310#define PDN_AFE_MASK 0x1311#define PDN_AFE_MASK_SFT (0x1 << 2)312313/* AUDIO_TOP_CON1 */314#define PDN_ADC_HIRES_TML_SFT 17315#define PDN_ADC_HIRES_TML_MASK 0x1316#define PDN_ADC_HIRES_TML_MASK_SFT (0x1 << 17)317#define PDN_ADC_HIRES_SFT 16318#define PDN_ADC_HIRES_MASK 0x1319#define PDN_ADC_HIRES_MASK_SFT (0x1 << 16)320#define I2S4_BCLK_SW_CG_SFT 7321#define I2S4_BCLK_SW_CG_MASK 0x1322#define I2S4_BCLK_SW_CG_MASK_SFT (0x1 << 7)323#define I2S3_BCLK_SW_CG_SFT 6324#define I2S3_BCLK_SW_CG_MASK 0x1325#define I2S3_BCLK_SW_CG_MASK_SFT (0x1 << 6)326#define I2S2_BCLK_SW_CG_SFT 5327#define I2S2_BCLK_SW_CG_MASK 0x1328#define I2S2_BCLK_SW_CG_MASK_SFT (0x1 << 5)329#define I2S1_BCLK_SW_CG_SFT 4330#define I2S1_BCLK_SW_CG_MASK 0x1331#define I2S1_BCLK_SW_CG_MASK_SFT (0x1 << 4)332#define I2S_SOFT_RST2_SFT 2333#define I2S_SOFT_RST2_MASK 0x1334#define I2S_SOFT_RST2_MASK_SFT (0x1 << 2)335#define I2S_SOFT_RST_SFT 1336#define I2S_SOFT_RST_MASK 0x1337#define I2S_SOFT_RST_MASK_SFT (0x1 << 1)338339/* AFE_DAC_CON0 */340#define AFE_AWB_RETM_SFT 31341#define AFE_AWB_RETM_MASK 0x1342#define AFE_AWB_RETM_MASK_SFT (0x1 << 31)343#define AFE_DL1_DATA2_RETM_SFT 30344#define AFE_DL1_DATA2_RETM_MASK 0x1345#define AFE_DL1_DATA2_RETM_MASK_SFT (0x1 << 30)346#define AFE_DL2_RETM_SFT 29347#define AFE_DL2_RETM_MASK 0x1348#define AFE_DL2_RETM_MASK_SFT (0x1 << 29)349#define AFE_DL1_RETM_SFT 28350#define AFE_DL1_RETM_MASK 0x1351#define AFE_DL1_RETM_MASK_SFT (0x1 << 28)352#define AFE_ON_RETM_SFT 27353#define AFE_ON_RETM_MASK 0x1354#define AFE_ON_RETM_MASK_SFT (0x1 << 27)355#define MOD_DAI_DUP_WR_SFT 26356#define MOD_DAI_DUP_WR_MASK 0x1357#define MOD_DAI_DUP_WR_MASK_SFT (0x1 << 26)358#define DAI_MODE_SFT 24359#define DAI_MODE_MASK 0x3360#define DAI_MODE_MASK_SFT (0x3 << 24)361#define VUL_DATA2_MODE_SFT 20362#define VUL_DATA2_MODE_MASK 0xf363#define VUL_DATA2_MODE_MASK_SFT (0xf << 20)364#define DL1_DATA2_MODE_SFT 16365#define DL1_DATA2_MODE_MASK 0xf366#define DL1_DATA2_MODE_MASK_SFT (0xf << 16)367#define DL3_MODE_SFT 12368#define DL3_MODE_MASK 0xf369#define DL3_MODE_MASK_SFT (0xf << 12)370#define VUL_DATA2_R_MONO_SFT 11371#define VUL_DATA2_R_MONO_MASK 0x1372#define VUL_DATA2_R_MONO_MASK_SFT (0x1 << 11)373#define VUL_DATA2_DATA_SFT 10374#define VUL_DATA2_DATA_MASK 0x1375#define VUL_DATA2_DATA_MASK_SFT (0x1 << 10)376#define VUL_DATA2_ON_SFT 9377#define VUL_DATA2_ON_MASK 0x1378#define VUL_DATA2_ON_MASK_SFT (0x1 << 9)379#define DL1_DATA2_ON_SFT 8380#define DL1_DATA2_ON_MASK 0x1381#define DL1_DATA2_ON_MASK_SFT (0x1 << 8)382#define MOD_DAI_ON_SFT 7383#define MOD_DAI_ON_MASK 0x1384#define MOD_DAI_ON_MASK_SFT (0x1 << 7)385#define AWB_ON_SFT 6386#define AWB_ON_MASK 0x1387#define AWB_ON_MASK_SFT (0x1 << 6)388#define DL3_ON_SFT 5389#define DL3_ON_MASK 0x1390#define DL3_ON_MASK_SFT (0x1 << 5)391#define DAI_ON_SFT 4392#define DAI_ON_MASK 0x1393#define DAI_ON_MASK_SFT (0x1 << 4)394#define VUL_ON_SFT 3395#define VUL_ON_MASK 0x1396#define VUL_ON_MASK_SFT (0x1 << 3)397#define DL2_ON_SFT 2398#define DL2_ON_MASK 0x1399#define DL2_ON_MASK_SFT (0x1 << 2)400#define DL1_ON_SFT 1401#define DL1_ON_MASK 0x1402#define DL1_ON_MASK_SFT (0x1 << 1)403#define AFE_ON_SFT 0404#define AFE_ON_MASK 0x1405#define AFE_ON_MASK_SFT (0x1 << 0)406407/* AFE_DAC_CON1 */408#define MOD_DAI_MODE_SFT 30409#define MOD_DAI_MODE_MASK 0x3410#define MOD_DAI_MODE_MASK_SFT (0x3 << 30)411#define DAI_DUP_WR_SFT 29412#define DAI_DUP_WR_MASK 0x1413#define DAI_DUP_WR_MASK_SFT (0x1 << 29)414#define VUL_R_MONO_SFT 28415#define VUL_R_MONO_MASK 0x1416#define VUL_R_MONO_MASK_SFT (0x1 << 28)417#define VUL_DATA_SFT 27418#define VUL_DATA_MASK 0x1419#define VUL_DATA_MASK_SFT (0x1 << 27)420#define AXI_2X1_CG_DISABLE_SFT 26421#define AXI_2X1_CG_DISABLE_MASK 0x1422#define AXI_2X1_CG_DISABLE_MASK_SFT (0x1 << 26)423#define AWB_R_MONO_SFT 25424#define AWB_R_MONO_MASK 0x1425#define AWB_R_MONO_MASK_SFT (0x1 << 25)426#define AWB_DATA_SFT 24427#define AWB_DATA_MASK 0x1428#define AWB_DATA_MASK_SFT (0x1 << 24)429#define DL3_DATA_SFT 23430#define DL3_DATA_MASK 0x1431#define DL3_DATA_MASK_SFT (0x1 << 23)432#define DL2_DATA_SFT 22433#define DL2_DATA_MASK 0x1434#define DL2_DATA_MASK_SFT (0x1 << 22)435#define DL1_DATA_SFT 21436#define DL1_DATA_MASK 0x1437#define DL1_DATA_MASK_SFT (0x1 << 21)438#define DL1_DATA2_DATA_SFT 20439#define DL1_DATA2_DATA_MASK 0x1440#define DL1_DATA2_DATA_MASK_SFT (0x1 << 20)441#define VUL_MODE_SFT 16442#define VUL_MODE_MASK 0xf443#define VUL_MODE_MASK_SFT (0xf << 16)444#define AWB_MODE_SFT 12445#define AWB_MODE_MASK 0xf446#define AWB_MODE_MASK_SFT (0xf << 12)447#define I2S_MODE_SFT 8448#define I2S_MODE_MASK 0xf449#define I2S_MODE_MASK_SFT (0xf << 8)450#define DL2_MODE_SFT 4451#define DL2_MODE_MASK 0xf452#define DL2_MODE_MASK_SFT (0xf << 4)453#define DL1_MODE_SFT 0454#define DL1_MODE_MASK 0xf455#define DL1_MODE_MASK_SFT (0xf << 0)456457/* AFE_ADDA_DL_SRC2_CON0 */458#define DL_2_INPUT_MODE_CTL_SFT 28459#define DL_2_INPUT_MODE_CTL_MASK 0xf460#define DL_2_INPUT_MODE_CTL_MASK_SFT (0xf << 28)461#define DL_2_CH1_SATURATION_EN_CTL_SFT 27462#define DL_2_CH1_SATURATION_EN_CTL_MASK 0x1463#define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT (0x1 << 27)464#define DL_2_CH2_SATURATION_EN_CTL_SFT 26465#define DL_2_CH2_SATURATION_EN_CTL_MASK 0x1466#define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT (0x1 << 26)467#define DL_2_OUTPUT_SEL_CTL_SFT 24468#define DL_2_OUTPUT_SEL_CTL_MASK 0x3469#define DL_2_OUTPUT_SEL_CTL_MASK_SFT (0x3 << 24)470#define DL_2_FADEIN_0START_EN_SFT 16471#define DL_2_FADEIN_0START_EN_MASK 0x3472#define DL_2_FADEIN_0START_EN_MASK_SFT (0x3 << 16)473#define DL_DISABLE_HW_CG_CTL_SFT 15474#define DL_DISABLE_HW_CG_CTL_MASK 0x1475#define DL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 15)476#define C_DATA_EN_SEL_CTL_PRE_SFT 14477#define C_DATA_EN_SEL_CTL_PRE_MASK 0x1478#define C_DATA_EN_SEL_CTL_PRE_MASK_SFT (0x1 << 14)479#define DL_2_SIDE_TONE_ON_CTL_PRE_SFT 13480#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK 0x1481#define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT (0x1 << 13)482#define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT 12483#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK 0x1484#define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT (0x1 << 12)485#define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT 11486#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK 0x1487#define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT (0x1 << 11)488#define DL2_ARAMPSP_CTL_PRE_SFT 9489#define DL2_ARAMPSP_CTL_PRE_MASK 0x3490#define DL2_ARAMPSP_CTL_PRE_MASK_SFT (0x3 << 9)491#define DL_2_IIRMODE_CTL_PRE_SFT 6492#define DL_2_IIRMODE_CTL_PRE_MASK 0x7493#define DL_2_IIRMODE_CTL_PRE_MASK_SFT (0x7 << 6)494#define DL_2_VOICE_MODE_CTL_PRE_SFT 5495#define DL_2_VOICE_MODE_CTL_PRE_MASK 0x1496#define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT (0x1 << 5)497#define D2_2_MUTE_CH1_ON_CTL_PRE_SFT 4498#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK 0x1499#define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT (0x1 << 4)500#define D2_2_MUTE_CH2_ON_CTL_PRE_SFT 3501#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK 0x1502#define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT (0x1 << 3)503#define DL_2_IIR_ON_CTL_PRE_SFT 2504#define DL_2_IIR_ON_CTL_PRE_MASK 0x1505#define DL_2_IIR_ON_CTL_PRE_MASK_SFT (0x1 << 2)506#define DL_2_GAIN_ON_CTL_PRE_SFT 1507#define DL_2_GAIN_ON_CTL_PRE_MASK 0x1508#define DL_2_GAIN_ON_CTL_PRE_MASK_SFT (0x1 << 1)509#define DL_2_SRC_ON_TMP_CTL_PRE_SFT 0510#define DL_2_SRC_ON_TMP_CTL_PRE_MASK 0x1511#define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT (0x1 << 0)512513/* AFE_ADDA_DL_SRC2_CON1 */514#define DL_2_GAIN_CTL_PRE_SFT 16515#define DL_2_GAIN_CTL_PRE_MASK 0xffff516#define DL_2_GAIN_CTL_PRE_MASK_SFT (0xffff << 16)517#define DL_2_GAIN_MODE_CTL_SFT 0518#define DL_2_GAIN_MODE_CTL_MASK 0x1519#define DL_2_GAIN_MODE_CTL_MASK_SFT (0x1 << 0)520521/* AFE_ADDA_UL_SRC_CON0 */522#define C_COMB_OUT_SIN_GEN_CTL_SFT 31523#define C_COMB_OUT_SIN_GEN_CTL_MASK 0x1524#define C_COMB_OUT_SIN_GEN_CTL_MASK_SFT (0x1 << 31)525#define C_BASEBAND_SIN_GEN_CTL_SFT 30526#define C_BASEBAND_SIN_GEN_CTL_MASK 0x1527#define C_BASEBAND_SIN_GEN_CTL_MASK_SFT (0x1 << 30)528#define C_DIGMIC_PHASE_SEL_CH1_CTL_SFT 27529#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK 0x7530#define C_DIGMIC_PHASE_SEL_CH1_CTL_MASK_SFT (0x7 << 27)531#define C_DIGMIC_PHASE_SEL_CH2_CTL_SFT 24532#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK 0x7533#define C_DIGMIC_PHASE_SEL_CH2_CTL_MASK_SFT (0x7 << 24)534#define C_TWO_DIGITAL_MIC_CTL_SFT 23535#define C_TWO_DIGITAL_MIC_CTL_MASK 0x1536#define C_TWO_DIGITAL_MIC_CTL_MASK_SFT (0x1 << 23)537#define UL_MODE_3P25M_CH2_CTL_SFT 22538#define UL_MODE_3P25M_CH2_CTL_MASK 0x1539#define UL_MODE_3P25M_CH2_CTL_MASK_SFT (0x1 << 22)540#define UL_MODE_3P25M_CH1_CTL_SFT 21541#define UL_MODE_3P25M_CH1_CTL_MASK 0x1542#define UL_MODE_3P25M_CH1_CTL_MASK_SFT (0x1 << 21)543#define UL_SRC_USE_CIC_OUT_CTL_SFT 20544#define UL_SRC_USE_CIC_OUT_CTL_MASK 0x1545#define UL_SRC_USE_CIC_OUT_CTL_MASK_SFT (0x1 << 20)546#define UL_VOICE_MODE_CH1_CH2_CTL_SFT 17547#define UL_VOICE_MODE_CH1_CH2_CTL_MASK 0x7548#define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT (0x7 << 17)549#define DMIC_LOW_POWER_MODE_CTL_SFT 14550#define DMIC_LOW_POWER_MODE_CTL_MASK 0x3551#define DMIC_LOW_POWER_MODE_CTL_MASK_SFT (0x3 << 14)552#define DMIC_48K_SEL_CTL_SFT 13553#define DMIC_48K_SEL_CTL_MASK 0x1554#define DMIC_48K_SEL_CTL_MASK_SFT (0x1 << 13)555#define UL_DISABLE_HW_CG_CTL_SFT 12556#define UL_DISABLE_HW_CG_CTL_MASK 0x1557#define UL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 12)558#define UL_IIR_ON_TMP_CTL_SFT 10559#define UL_IIR_ON_TMP_CTL_MASK 0x1560#define UL_IIR_ON_TMP_CTL_MASK_SFT (0x1 << 10)561#define UL_IIRMODE_CTL_SFT 7562#define UL_IIRMODE_CTL_MASK 0x7563#define UL_IIRMODE_CTL_MASK_SFT (0x7 << 7)564#define DIGMIC_3P25M_1P625M_SEL_CTL_SFT 5565#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK 0x1566#define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT (0x1 << 5)567#define AGC_260K_SEL_CH2_CTL_SFT 4568#define AGC_260K_SEL_CH2_CTL_MASK 0x1569#define AGC_260K_SEL_CH2_CTL_MASK_SFT (0x1 << 4)570#define AGC_260K_SEL_CH1_CTL_SFT 3571#define AGC_260K_SEL_CH1_CTL_MASK 0x1572#define AGC_260K_SEL_CH1_CTL_MASK_SFT (0x1 << 3)573#define UL_LOOP_BACK_MODE_CTL_SFT 2574#define UL_LOOP_BACK_MODE_CTL_MASK 0x1575#define UL_LOOP_BACK_MODE_CTL_MASK_SFT (0x1 << 2)576#define UL_SDM_3_LEVEL_CTL_SFT 1577#define UL_SDM_3_LEVEL_CTL_MASK 0x1578#define UL_SDM_3_LEVEL_CTL_MASK_SFT (0x1 << 1)579#define UL_SRC_ON_TMP_CTL_SFT 0580#define UL_SRC_ON_TMP_CTL_MASK 0x1581#define UL_SRC_ON_TMP_CTL_MASK_SFT (0x1 << 0)582583/* AFE_ADDA_UL_SRC_CON1 */584#define C_SDM_RESET_CTL_SFT 31585#define C_SDM_RESET_CTL_MASK 0x1586#define C_SDM_RESET_CTL_MASK_SFT (0x1 << 31)587#define ADITHON_CTL_SFT 30588#define ADITHON_CTL_MASK 0x1589#define ADITHON_CTL_MASK_SFT (0x1 << 30)590#define ADITHVAL_CTL_SFT 28591#define ADITHVAL_CTL_MASK 0x3592#define ADITHVAL_CTL_MASK_SFT (0x3 << 28)593#define C_DAC_EN_CTL_SFT 27594#define C_DAC_EN_CTL_MASK 0x1595#define C_DAC_EN_CTL_MASK_SFT (0x1 << 27)596#define C_MUTE_SW_CTL_SFT 26597#define C_MUTE_SW_CTL_MASK 0x1598#define C_MUTE_SW_CTL_MASK_SFT (0x1 << 26)599#define ASDM_SRC_SEL_CTL_SFT 25600#define ASDM_SRC_SEL_CTL_MASK 0x1601#define ASDM_SRC_SEL_CTL_MASK_SFT (0x1 << 25)602#define C_AMP_DIV_CH2_CTL_SFT 21603#define C_AMP_DIV_CH2_CTL_MASK 0x7604#define C_AMP_DIV_CH2_CTL_MASK_SFT (0x7 << 21)605#define C_FREQ_DIV_CH2_CTL_SFT 16606#define C_FREQ_DIV_CH2_CTL_MASK 0x1f607#define C_FREQ_DIV_CH2_CTL_MASK_SFT (0x1f << 16)608#define C_SINE_MODE_CH2_CTL_SFT 12609#define C_SINE_MODE_CH2_CTL_MASK 0xf610#define C_SINE_MODE_CH2_CTL_MASK_SFT (0xf << 12)611#define C_AMP_DIV_CH1_CTL_SFT 9612#define C_AMP_DIV_CH1_CTL_MASK 0x7613#define C_AMP_DIV_CH1_CTL_MASK_SFT (0x7 << 9)614#define C_FREQ_DIV_CH1_CTL_SFT 4615#define C_FREQ_DIV_CH1_CTL_MASK 0x1f616#define C_FREQ_DIV_CH1_CTL_MASK_SFT (0x1f << 4)617#define C_SINE_MODE_CH1_CTL_SFT 0618#define C_SINE_MODE_CH1_CTL_MASK 0xf619#define C_SINE_MODE_CH1_CTL_MASK_SFT (0xf << 0)620621/* AFE_ADDA_TOP_CON0 */622#define C_LOOP_BACK_MODE_CTL_SFT 12623#define C_LOOP_BACK_MODE_CTL_MASK 0xf624#define C_LOOP_BACK_MODE_CTL_MASK_SFT (0xf << 12)625#define C_EXT_ADC_CTL_SFT 0626#define C_EXT_ADC_CTL_MASK 0x1627#define C_EXT_ADC_CTL_MASK_SFT (0x1 << 0)628629/* AFE_ADDA_UL_DL_CON0 */630#define AFE_UL_DL_CON0_RESERVED_SFT 1631#define AFE_UL_DL_CON0_RESERVED_MASK 0x3fff632#define AFE_UL_DL_CON0_RESERVED_MASK_SFT (0x3fff << 1)633#define ADDA_AFE_ON_SFT 0634#define ADDA_AFE_ON_MASK 0x1635#define ADDA_AFE_ON_MASK_SFT (0x1 << 0)636637/* AFE_IRQ_MCU_CON */638#define IRQ7_MCU_MODE_SFT 24639#define IRQ7_MCU_MODE_MASK 0xf640#define IRQ7_MCU_MODE_MASK_SFT (0xf << 24)641#define IRQ4_MCU_MODE_SFT 20642#define IRQ4_MCU_MODE_MASK 0xf643#define IRQ4_MCU_MODE_MASK_SFT (0xf << 20)644#define IRQ3_MCU_MODE_SFT 16645#define IRQ3_MCU_MODE_MASK 0xf646#define IRQ3_MCU_MODE_MASK_SFT (0xf << 16)647#define IRQ7_MCU_ON_SFT 14648#define IRQ7_MCU_ON_MASK 0x1649#define IRQ7_MCU_ON_MASK_SFT (0x1 << 14)650#define IRQ5_MCU_ON_SFT 12651#define IRQ5_MCU_ON_MASK 0x1652#define IRQ5_MCU_ON_MASK_SFT (0x1 << 12)653#define IRQ2_MCU_MODE_SFT 8654#define IRQ2_MCU_MODE_MASK 0xf655#define IRQ2_MCU_MODE_MASK_SFT (0xf << 8)656#define IRQ1_MCU_MODE_SFT 4657#define IRQ1_MCU_MODE_MASK 0xf658#define IRQ1_MCU_MODE_MASK_SFT (0xf << 4)659#define IRQ4_MCU_ON_SFT 3660#define IRQ4_MCU_ON_MASK 0x1661#define IRQ4_MCU_ON_MASK_SFT (0x1 << 3)662#define IRQ3_MCU_ON_SFT 2663#define IRQ3_MCU_ON_MASK 0x1664#define IRQ3_MCU_ON_MASK_SFT (0x1 << 2)665#define IRQ2_MCU_ON_SFT 1666#define IRQ2_MCU_ON_MASK 0x1667#define IRQ2_MCU_ON_MASK_SFT (0x1 << 1)668#define IRQ1_MCU_ON_SFT 0669#define IRQ1_MCU_ON_MASK 0x1670#define IRQ1_MCU_ON_MASK_SFT (0x1 << 0)671672/* AFE_IRQ_MCU_EN */673#define AFE_IRQ_CM4_EN_SFT 16674#define AFE_IRQ_CM4_EN_MASK 0x7f675#define AFE_IRQ_CM4_EN_MASK_SFT (0x7f << 16)676#define AFE_IRQ_MD32_EN_SFT 8677#define AFE_IRQ_MD32_EN_MASK 0x7f678#define AFE_IRQ_MD32_EN_MASK_SFT (0x7f << 8)679#define AFE_IRQ_MCU_EN_SFT 0680#define AFE_IRQ_MCU_EN_MASK 0x7f681#define AFE_IRQ_MCU_EN_MASK_SFT (0x7f << 0)682683/* AFE_IRQ_MCU_CLR */684#define IRQ7_MCU_CLR_SFT 6685#define IRQ7_MCU_CLR_MASK 0x1686#define IRQ7_MCU_CLR_MASK_SFT (0x1 << 6)687#define IRQ5_MCU_CLR_SFT 4688#define IRQ5_MCU_CLR_MASK 0x1689#define IRQ5_MCU_CLR_MASK_SFT (0x1 << 4)690#define IRQ4_MCU_CLR_SFT 3691#define IRQ4_MCU_CLR_MASK 0x1692#define IRQ4_MCU_CLR_MASK_SFT (0x1 << 3)693#define IRQ3_MCU_CLR_SFT 2694#define IRQ3_MCU_CLR_MASK 0x1695#define IRQ3_MCU_CLR_MASK_SFT (0x1 << 2)696#define IRQ2_MCU_CLR_SFT 1697#define IRQ2_MCU_CLR_MASK 0x1698#define IRQ2_MCU_CLR_MASK_SFT (0x1 << 1)699#define IRQ1_MCU_CLR_SFT 0700#define IRQ1_MCU_CLR_MASK 0x1701#define IRQ1_MCU_CLR_MASK_SFT (0x1 << 0)702703/* AFE_IRQ_MCU_CNT1 */704#define AFE_IRQ_MCU_CNT1_SFT 0705#define AFE_IRQ_MCU_CNT1_MASK 0x3ffff706#define AFE_IRQ_MCU_CNT1_MASK_SFT (0x3ffff << 0)707708/* AFE_IRQ_MCU_CNT2 */709#define AFE_IRQ_MCU_CNT2_SFT 0710#define AFE_IRQ_MCU_CNT2_MASK 0x3ffff711#define AFE_IRQ_MCU_CNT2_MASK_SFT (0x3ffff << 0)712713/* AFE_IRQ_MCU_CNT3 */714#define AFE_IRQ_MCU_CNT3_SFT 0715#define AFE_IRQ_MCU_CNT3_MASK 0x3ffff716#define AFE_IRQ_MCU_CNT3_MASK_SFT (0x3ffff << 0)717718/* AFE_IRQ_MCU_CNT4 */719#define AFE_IRQ_MCU_CNT4_SFT 0720#define AFE_IRQ_MCU_CNT4_MASK 0x3ffff721#define AFE_IRQ_MCU_CNT4_MASK_SFT (0x3ffff << 0)722723/* AFE_IRQ_MCU_CNT5 */724#define AFE_IRQ_MCU_CNT5_SFT 0725#define AFE_IRQ_MCU_CNT5_MASK 0x3ffff726#define AFE_IRQ_MCU_CNT5_MASK_SFT (0x3ffff << 0)727728/* AFE_IRQ_MCU_CNT7 */729#define AFE_IRQ_MCU_CNT7_SFT 0730#define AFE_IRQ_MCU_CNT7_MASK 0x3ffff731#define AFE_IRQ_MCU_CNT7_MASK_SFT (0x3ffff << 0)732733/* AFE_MEMIF_MSB */734#define CPU_COMPACT_MODE_SFT 23735#define CPU_COMPACT_MODE_MASK 0x1736#define CPU_COMPACT_MODE_MASK_SFT (0x1 << 23)737#define CPU_HD_ALIGN_SFT 22738#define CPU_HD_ALIGN_MASK 0x1739#define CPU_HD_ALIGN_MASK_SFT (0x1 << 22)740741/* AFE_MEMIF_HD_MODE */742#define HDMI_HD_SFT 20743#define HDMI_HD_MASK 0x3744#define HDMI_HD_MASK_SFT (0x3 << 20)745#define MOD_DAI_HD_SFT 18746#define MOD_DAI_HD_MASK 0x3747#define MOD_DAI_HD_MASK_SFT (0x3 << 18)748#define DAI_HD_SFT 16749#define DAI_HD_MASK 0x3750#define DAI_HD_MASK_SFT (0x3 << 16)751#define VUL_DATA2_HD_SFT 12752#define VUL_DATA2_HD_MASK 0x3753#define VUL_DATA2_HD_MASK_SFT (0x3 << 12)754#define VUL_HD_SFT 10755#define VUL_HD_MASK 0x3756#define VUL_HD_MASK_SFT (0x3 << 10)757#define AWB_HD_SFT 8758#define AWB_HD_MASK 0x3759#define AWB_HD_MASK_SFT (0x3 << 8)760#define DL3_HD_SFT 6761#define DL3_HD_MASK 0x3762#define DL3_HD_MASK_SFT (0x3 << 6)763#define DL2_HD_SFT 4764#define DL2_HD_MASK 0x3765#define DL2_HD_MASK_SFT (0x3 << 4)766#define DL1_DATA2_HD_SFT 2767#define DL1_DATA2_HD_MASK 0x3768#define DL1_DATA2_HD_MASK_SFT (0x3 << 2)769#define DL1_HD_SFT 0770#define DL1_HD_MASK 0x3771#define DL1_HD_MASK_SFT (0x3 << 0)772773/* AFE_MEMIF_HDALIGN */774#define HDMI_NORMAL_MODE_SFT 26775#define HDMI_NORMAL_MODE_MASK 0x1776#define HDMI_NORMAL_MODE_MASK_SFT (0x1 << 26)777#define MOD_DAI_NORMAL_MODE_SFT 25778#define MOD_DAI_NORMAL_MODE_MASK 0x1779#define MOD_DAI_NORMAL_MODE_MASK_SFT (0x1 << 25)780#define DAI_NORMAL_MODE_SFT 24781#define DAI_NORMAL_MODE_MASK 0x1782#define DAI_NORMAL_MODE_MASK_SFT (0x1 << 24)783#define VUL_DATA2_NORMAL_MODE_SFT 22784#define VUL_DATA2_NORMAL_MODE_MASK 0x1785#define VUL_DATA2_NORMAL_MODE_MASK_SFT (0x1 << 22)786#define VUL_NORMAL_MODE_SFT 21787#define VUL_NORMAL_MODE_MASK 0x1788#define VUL_NORMAL_MODE_MASK_SFT (0x1 << 21)789#define AWB_NORMAL_MODE_SFT 20790#define AWB_NORMAL_MODE_MASK 0x1791#define AWB_NORMAL_MODE_MASK_SFT (0x1 << 20)792#define DL3_NORMAL_MODE_SFT 19793#define DL3_NORMAL_MODE_MASK 0x1794#define DL3_NORMAL_MODE_MASK_SFT (0x1 << 19)795#define DL2_NORMAL_MODE_SFT 18796#define DL2_NORMAL_MODE_MASK 0x1797#define DL2_NORMAL_MODE_MASK_SFT (0x1 << 18)798#define DL1_DATA2_NORMAL_MODE_SFT 17799#define DL1_DATA2_NORMAL_MODE_MASK 0x1800#define DL1_DATA2_NORMAL_MODE_MASK_SFT (0x1 << 17)801#define DL1_NORMAL_MODE_SFT 16802#define DL1_NORMAL_MODE_MASK 0x1803#define DL1_NORMAL_MODE_MASK_SFT (0x1 << 16)804#define HDMI_HD_ALIGN_SFT 10805#define HDMI_HD_ALIGN_MASK 0x1806#define HDMI_HD_ALIGN_MASK_SFT (0x1 << 10)807#define MOD_DAI_HD_ALIGN_SFT 9808#define MOD_DAI_HD_ALIGN_MASK 0x1809#define MOD_DAI_HD_ALIGN_MASK_SFT (0x1 << 9)810#define DAI_ALIGN_SFT 8811#define DAI_ALIGN_MASK 0x1812#define DAI_ALIGN_MASK_SFT (0x1 << 8)813#define VUL2_HD_ALIGN_SFT 7814#define VUL2_HD_ALIGN_MASK 0x1815#define VUL2_HD_ALIGN_MASK_SFT (0x1 << 7)816#define VUL_DATA2_HD_ALIGN_SFT 6817#define VUL_DATA2_HD_ALIGN_MASK 0x1818#define VUL_DATA2_HD_ALIGN_MASK_SFT (0x1 << 6)819#define VUL_HD_ALIGN_SFT 5820#define VUL_HD_ALIGN_MASK 0x1821#define VUL_HD_ALIGN_MASK_SFT (0x1 << 5)822#define AWB_HD_ALIGN_SFT 4823#define AWB_HD_ALIGN_MASK 0x1824#define AWB_HD_ALIGN_MASK_SFT (0x1 << 4)825#define DL3_HD_ALIGN_SFT 3826#define DL3_HD_ALIGN_MASK 0x1827#define DL3_HD_ALIGN_MASK_SFT (0x1 << 3)828#define DL2_HD_ALIGN_SFT 2829#define DL2_HD_ALIGN_MASK 0x1830#define DL2_HD_ALIGN_MASK_SFT (0x1 << 2)831#define DL1_DATA2_HD_ALIGN_SFT 1832#define DL1_DATA2_HD_ALIGN_MASK 0x1833#define DL1_DATA2_HD_ALIGN_MASK_SFT (0x1 << 1)834#define DL1_HD_ALIGN_SFT 0835#define DL1_HD_ALIGN_MASK 0x1836#define DL1_HD_ALIGN_MASK_SFT (0x1 << 0)837838/* PCM_INTF_CON1 */839#define PCM_FIX_VALUE_SEL_SFT 31840#define PCM_FIX_VALUE_SEL_MASK 0x1841#define PCM_FIX_VALUE_SEL_MASK_SFT (0x1 << 31)842#define PCM_BUFFER_LOOPBACK_SFT 30843#define PCM_BUFFER_LOOPBACK_MASK 0x1844#define PCM_BUFFER_LOOPBACK_MASK_SFT (0x1 << 30)845#define PCM_PARALLEL_LOOPBACK_SFT 29846#define PCM_PARALLEL_LOOPBACK_MASK 0x1847#define PCM_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 29)848#define PCM_SERIAL_LOOPBACK_SFT 28849#define PCM_SERIAL_LOOPBACK_MASK 0x1850#define PCM_SERIAL_LOOPBACK_MASK_SFT (0x1 << 28)851#define PCM_DAI_PCM_LOOPBACK_SFT 27852#define PCM_DAI_PCM_LOOPBACK_MASK 0x1853#define PCM_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 27)854#define PCM_I2S_PCM_LOOPBACK_SFT 26855#define PCM_I2S_PCM_LOOPBACK_MASK 0x1856#define PCM_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 26)857#define PCM_SYNC_DELSEL_SFT 25858#define PCM_SYNC_DELSEL_MASK 0x1859#define PCM_SYNC_DELSEL_MASK_SFT (0x1 << 25)860#define PCM_TX_LR_SWAP_SFT 24861#define PCM_TX_LR_SWAP_MASK 0x1862#define PCM_TX_LR_SWAP_MASK_SFT (0x1 << 24)863#define PCM_SYNC_OUT_INV_SFT 23864#define PCM_SYNC_OUT_INV_MASK 0x1865#define PCM_SYNC_OUT_INV_MASK_SFT (0x1 << 23)866#define PCM_BCLK_OUT_INV_SFT 22867#define PCM_BCLK_OUT_INV_MASK 0x1868#define PCM_BCLK_OUT_INV_MASK_SFT (0x1 << 22)869#define PCM_SYNC_IN_INV_SFT 21870#define PCM_SYNC_IN_INV_MASK 0x1871#define PCM_SYNC_IN_INV_MASK_SFT (0x1 << 21)872#define PCM_BCLK_IN_INV_SFT 20873#define PCM_BCLK_IN_INV_MASK 0x1874#define PCM_BCLK_IN_INV_MASK_SFT (0x1 << 20)875#define PCM_TX_LCH_RPT_SFT 19876#define PCM_TX_LCH_RPT_MASK 0x1877#define PCM_TX_LCH_RPT_MASK_SFT (0x1 << 19)878#define PCM_VBT_16K_MODE_SFT 18879#define PCM_VBT_16K_MODE_MASK 0x1880#define PCM_VBT_16K_MODE_MASK_SFT (0x1 << 18)881#define PCM_EXT_MODEM_SFT 17882#define PCM_EXT_MODEM_MASK 0x1883#define PCM_EXT_MODEM_MASK_SFT (0x1 << 17)884#define PCM_24BIT_SFT 16885#define PCM_24BIT_MASK 0x1886#define PCM_24BIT_MASK_SFT (0x1 << 16)887#define PCM_WLEN_SFT 14888#define PCM_WLEN_MASK 0x3889#define PCM_WLEN_MASK_SFT (0x3 << 14)890#define PCM_SYNC_LENGTH_SFT 9891#define PCM_SYNC_LENGTH_MASK 0x1f892#define PCM_SYNC_LENGTH_MASK_SFT (0x1f << 9)893#define PCM_SYNC_TYPE_SFT 8894#define PCM_SYNC_TYPE_MASK 0x1895#define PCM_SYNC_TYPE_MASK_SFT (0x1 << 8)896#define PCM_BT_MODE_SFT 7897#define PCM_BT_MODE_MASK 0x1898#define PCM_BT_MODE_MASK_SFT (0x1 << 7)899#define PCM_BYP_ASRC_SFT 6900#define PCM_BYP_ASRC_MASK 0x1901#define PCM_BYP_ASRC_MASK_SFT (0x1 << 6)902#define PCM_SLAVE_SFT 5903#define PCM_SLAVE_MASK 0x1904#define PCM_SLAVE_MASK_SFT (0x1 << 5)905#define PCM_MODE_SFT 3906#define PCM_MODE_MASK 0x3907#define PCM_MODE_MASK_SFT (0x3 << 3)908#define PCM_FMT_SFT 1909#define PCM_FMT_MASK 0x3910#define PCM_FMT_MASK_SFT (0x3 << 1)911#define PCM_EN_SFT 0912#define PCM_EN_MASK 0x1913#define PCM_EN_MASK_SFT (0x1 << 0)914915/* PCM_INTF_CON2 */916#define PCM1_TX_FIFO_OV_SFT 31917#define PCM1_TX_FIFO_OV_MASK 0x1918#define PCM1_TX_FIFO_OV_MASK_SFT (0x1 << 31)919#define PCM1_RX_FIFO_OV_SFT 30920#define PCM1_RX_FIFO_OV_MASK 0x1921#define PCM1_RX_FIFO_OV_MASK_SFT (0x1 << 30)922#define PCM2_TX_FIFO_OV_SFT 29923#define PCM2_TX_FIFO_OV_MASK 0x1924#define PCM2_TX_FIFO_OV_MASK_SFT (0x1 << 29)925#define PCM2_RX_FIFO_OV_SFT 28926#define PCM2_RX_FIFO_OV_MASK 0x1927#define PCM2_RX_FIFO_OV_MASK_SFT (0x1 << 28)928#define PCM1_SYNC_GLITCH_SFT 27929#define PCM1_SYNC_GLITCH_MASK 0x1930#define PCM1_SYNC_GLITCH_MASK_SFT (0x1 << 27)931#define PCM2_SYNC_GLITCH_SFT 26932#define PCM2_SYNC_GLITCH_MASK 0x1933#define PCM2_SYNC_GLITCH_MASK_SFT (0x1 << 26)934#define PCM1_PCM2_LOOPBACK_SFT 15935#define PCM1_PCM2_LOOPBACK_MASK 0x1936#define PCM1_PCM2_LOOPBACK_MASK_SFT (0x1 << 15)937#define DAI_PCM_LOOPBACK_CH_SFT 13938#define DAI_PCM_LOOPBACK_CH_MASK 0x1939#define DAI_PCM_LOOPBACK_CH_MASK_SFT (0x1 << 13)940#define I2S_PCM_LOOPBACK_CH_SFT 12941#define I2S_PCM_LOOPBACK_CH_MASK 0x1942#define I2S_PCM_LOOPBACK_CH_MASK_SFT (0x1 << 12)943#define PCM_USE_MD3_SFT 8944#define PCM_USE_MD3_MASK 0x1945#define PCM_USE_MD3_MASK_SFT (0x1 << 8)946#define TX_FIX_VALUE_SFT 0947#define TX_FIX_VALUE_MASK 0xff948#define TX_FIX_VALUE_MASK_SFT (0xff << 0)949950/* PCM2_INTF_CON */951#define PCM2_TX_FIX_VALUE_SFT 24952#define PCM2_TX_FIX_VALUE_MASK 0xff953#define PCM2_TX_FIX_VALUE_MASK_SFT (0xff << 24)954#define PCM2_FIX_VALUE_SEL_SFT 23955#define PCM2_FIX_VALUE_SEL_MASK 0x1956#define PCM2_FIX_VALUE_SEL_MASK_SFT (0x1 << 23)957#define PCM2_BUFFER_LOOPBACK_SFT 22958#define PCM2_BUFFER_LOOPBACK_MASK 0x1959#define PCM2_BUFFER_LOOPBACK_MASK_SFT (0x1 << 22)960#define PCM2_PARALLEL_LOOPBACK_SFT 21961#define PCM2_PARALLEL_LOOPBACK_MASK 0x1962#define PCM2_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 21)963#define PCM2_SERIAL_LOOPBACK_SFT 20964#define PCM2_SERIAL_LOOPBACK_MASK 0x1965#define PCM2_SERIAL_LOOPBACK_MASK_SFT (0x1 << 20)966#define PCM2_DAI_PCM_LOOPBACK_SFT 19967#define PCM2_DAI_PCM_LOOPBACK_MASK 0x1968#define PCM2_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 19)969#define PCM2_I2S_PCM_LOOPBACK_SFT 18970#define PCM2_I2S_PCM_LOOPBACK_MASK 0x1971#define PCM2_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 18)972#define PCM2_SYNC_DELSEL_SFT 17973#define PCM2_SYNC_DELSEL_MASK 0x1974#define PCM2_SYNC_DELSEL_MASK_SFT (0x1 << 17)975#define PCM2_TX_LR_SWAP_SFT 16976#define PCM2_TX_LR_SWAP_MASK 0x1977#define PCM2_TX_LR_SWAP_MASK_SFT (0x1 << 16)978#define PCM2_SYNC_IN_INV_SFT 15979#define PCM2_SYNC_IN_INV_MASK 0x1980#define PCM2_SYNC_IN_INV_MASK_SFT (0x1 << 15)981#define PCM2_BCLK_IN_INV_SFT 14982#define PCM2_BCLK_IN_INV_MASK 0x1983#define PCM2_BCLK_IN_INV_MASK_SFT (0x1 << 14)984#define PCM2_TX_LCH_RPT_SFT 13985#define PCM2_TX_LCH_RPT_MASK 0x1986#define PCM2_TX_LCH_RPT_MASK_SFT (0x1 << 13)987#define PCM2_VBT_16K_MODE_SFT 12988#define PCM2_VBT_16K_MODE_MASK 0x1989#define PCM2_VBT_16K_MODE_MASK_SFT (0x1 << 12)990#define PCM2_LOOPBACK_CH_SEL_SFT 10991#define PCM2_LOOPBACK_CH_SEL_MASK 0x3992#define PCM2_LOOPBACK_CH_SEL_MASK_SFT (0x3 << 10)993#define PCM2_TX2_BT_MODE_SFT 8994#define PCM2_TX2_BT_MODE_MASK 0x1995#define PCM2_TX2_BT_MODE_MASK_SFT (0x1 << 8)996#define PCM2_BT_MODE_SFT 7997#define PCM2_BT_MODE_MASK 0x1998#define PCM2_BT_MODE_MASK_SFT (0x1 << 7)999#define PCM2_AFIFO_SFT 61000#define PCM2_AFIFO_MASK 0x11001#define PCM2_AFIFO_MASK_SFT (0x1 << 6)1002#define PCM2_WLEN_SFT 51003#define PCM2_WLEN_MASK 0x11004#define PCM2_WLEN_MASK_SFT (0x1 << 5)1005#define PCM2_MODE_SFT 31006#define PCM2_MODE_MASK 0x31007#define PCM2_MODE_MASK_SFT (0x3 << 3)1008#define PCM2_FMT_SFT 11009#define PCM2_FMT_MASK 0x31010#define PCM2_FMT_MASK_SFT (0x3 << 1)1011#define PCM2_EN_SFT 01012#define PCM2_EN_MASK 0x11013#define PCM2_EN_MASK_SFT (0x1 << 0)1014#endif101510161017