linux/sound/soc/codecs/da732x_reg.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * da732x_reg.h --- Dialog DA732X ALSA SoC Audio Registers Header File
 *
 * Copyright (C) 2012 Dialog Semiconductor GmbH
 *
 * Author: Michal Hajduk <[email protected]>
 */

#ifndef __DA732X_REG_H_
#define __DA732X_REG_H_

/* DA732X registers */
#define DA732X_REG_STATUS_EXT
#define DA732X_REG_STATUS
#define DA732X_REG_REF1
#define DA732X_REG_BIAS_EN
#define DA732X_REG_BIAS1
#define DA732X_REG_BIAS2
#define DA732X_REG_BIAS3
#define DA732X_REG_BIAS4
#define DA732X_REG_MICBIAS2
#define DA732X_REG_MICBIAS1
#define DA732X_REG_MICDET
#define DA732X_REG_MIC1_PRE
#define DA732X_REG_MIC1
#define DA732X_REG_MIC2_PRE
#define DA732X_REG_MIC2
#define DA732X_REG_AUX1L
#define DA732X_REG_AUX1R
#define DA732X_REG_MIC3_PRE
#define DA732X_REG_MIC3
#define DA732X_REG_INP_PINBIAS
#define DA732X_REG_INP_ZC_EN
#define DA732X_REG_INP_MUX
#define DA732X_REG_HP_DET
#define DA732X_REG_HPL_DAC_OFFSET
#define DA732X_REG_HPL_DAC_OFF_CNTL
#define DA732X_REG_HPL_OUT_OFFSET
#define DA732X_REG_HPL
#define DA732X_REG_HPL_VOL
#define DA732X_REG_HPR_DAC_OFFSET
#define DA732X_REG_HPR_DAC_OFF_CNTL
#define DA732X_REG_HPR_OUT_OFFSET
#define DA732X_REG_HPR
#define DA732X_REG_HPR_VOL
#define DA732X_REG_LIN2
#define DA732X_REG_LIN3
#define DA732X_REG_LIN4
#define DA732X_REG_OUT_ZC_EN
#define DA732X_REG_HP_LIN1_GNDSEL
#define DA732X_REG_CP_HP1
#define DA732X_REG_CP_HP2
#define DA732X_REG_CP_CTRL1
#define DA732X_REG_CP_CTRL2
#define DA732X_REG_CP_CTRL3
#define DA732X_REG_CP_LEVEL_MASK
#define DA732X_REG_CP_DET
#define DA732X_REG_CP_STATUS
#define DA732X_REG_CP_THRESH1
#define DA732X_REG_CP_THRESH2
#define DA732X_REG_CP_THRESH3
#define DA732X_REG_CP_THRESH4
#define DA732X_REG_CP_THRESH5
#define DA732X_REG_CP_THRESH6
#define DA732X_REG_CP_THRESH7
#define DA732X_REG_CP_THRESH8
#define DA732X_REG_PLL_DIV_LO
#define DA732X_REG_PLL_DIV_MID
#define DA732X_REG_PLL_DIV_HI
#define DA732X_REG_PLL_CTRL
#define DA732X_REG_CLK_CTRL
#define DA732X_REG_CLK_DSP
#define DA732X_REG_CLK_EN1
#define DA732X_REG_CLK_EN2
#define DA732X_REG_CLK_EN3
#define DA732X_REG_CLK_EN4
#define DA732X_REG_CLK_EN5
#define DA732X_REG_AIF_MCLK
#define DA732X_REG_AIFA1
#define DA732X_REG_AIFA2
#define DA732X_REG_AIFA3
#define DA732X_REG_AIFB1
#define DA732X_REG_AIFB2
#define DA732X_REG_AIFB3
#define DA732X_REG_PC_CTRL
#define DA732X_REG_DATA_ROUTE
#define DA732X_REG_DSP_CTRL
#define DA732X_REG_CIF_CTRL2
#define DA732X_REG_HANDSHAKE
#define DA732X_REG_MBOX0
#define DA732X_REG_MBOX1
#define DA732X_REG_MBOX2
#define DA732X_REG_MBOX_STATUS
#define DA732X_REG_SPARE1_OUT
#define DA732X_REG_SPARE2_OUT
#define DA732X_REG_SPARE1_IN
#define DA732X_REG_ID
#define DA732X_REG_ADC1_PD
#define DA732X_REG_ADC1_HPF
#define DA732X_REG_ADC1_SEL
#define DA732X_REG_ADC1_EQ12
#define DA732X_REG_ADC1_EQ34
#define DA732X_REG_ADC1_EQ5
#define DA732X_REG_ADC2_PD
#define DA732X_REG_ADC2_HPF
#define DA732X_REG_ADC2_SEL
#define DA732X_REG_ADC2_EQ12
#define DA732X_REG_ADC2_EQ34
#define DA732X_REG_ADC2_EQ5
#define DA732X_REG_DAC1_HPF
#define DA732X_REG_DAC1_L_VOL
#define DA732X_REG_DAC1_R_VOL
#define DA732X_REG_DAC1_SEL
#define DA732X_REG_DAC1_SOFTMUTE
#define DA732X_REG_DAC1_EQ12
#define DA732X_REG_DAC1_EQ34
#define DA732X_REG_DAC1_EQ5
#define DA732X_REG_DAC2_HPF
#define DA732X_REG_DAC2_L_VOL
#define DA732X_REG_DAC2_R_VOL
#define DA732X_REG_DAC2_SEL
#define DA732X_REG_DAC2_SOFTMUTE
#define DA732X_REG_DAC2_EQ12
#define DA732X_REG_DAC2_EQ34
#define DA732X_REG_DAC2_EQ5
#define DA732X_REG_DAC3_HPF
#define DA732X_REG_DAC3_VOL
#define DA732X_REG_DAC3_SEL
#define DA732X_REG_DAC3_SOFTMUTE
#define DA732X_REG_DAC3_EQ12
#define DA732X_REG_DAC3_EQ34
#define DA732X_REG_DAC3_EQ5
#define DA732X_REG_BIQ_BYP
#define DA732X_REG_DMA_CMD
#define DA732X_REG_DMA_ADDR0
#define DA732X_REG_DMA_ADDR1
#define DA732X_REG_DMA_DATA0
#define DA732X_REG_DMA_DATA1
#define DA732X_REG_DMA_DATA2
#define DA732X_REG_DMA_DATA3
#define DA732X_REG_DMA_STATUS
#define DA732X_REG_BROWNOUT
#define DA732X_REG_UNLOCK

#define DA732X_MAX_REG
/*
 * Bits
 */

/* DA732X_REG_STATUS_EXT (addr=0x00) */
#define DA732X_STATUS_EXT_DSP
#define DA732X_STATUS_EXT_CLEAR

/* DA732X_REG_STATUS	(addr=0x01) */
#define DA732X_STATUS_PLL_LOCK
#define DA732X_STATUS_PLL_MCLK_DET
#define DA732X_STATUS_HPDET_OUT
#define DA732X_STATUS_INP_MIXDET_1
#define DA732X_STATUS_INP_MIXDET_2
#define DA732X_STATUS_BO_STATUS

/* DA732X_REG_REF1	(addr=0x02) */
#define DA732X_VMID_FASTCHG
#define DA732X_VMID_FASTDISCHG
#define DA732X_REFBUFX2_EN
#define DA732X_REFBUFX2_DIS

/* DA732X_REG_BIAS_EN	(addr=0x03) */
#define DA732X_BIAS_BOOST_MASK
#define DA732X_BIAS_BOOST_100PC
#define DA732X_BIAS_BOOST_133PC
#define DA732X_BIAS_BOOST_88PC
#define DA732X_BIAS_BOOST_50PC
#define DA732X_BIAS_EN
#define DA732X_BIAS_DIS

/* DA732X_REG_BIAS1	(addr=0x04) */
#define DA732X_BIAS1_HP_DAC_BIAS_MASK
#define DA732X_BIAS1_HP_DAC_BIAS_100PC
#define DA732X_BIAS1_HP_DAC_BIAS_150PC
#define DA732X_BIAS1_HP_DAC_BIAS_50PC
#define DA732X_BIAS1_HP_DAC_BIAS_75PC
#define DA732X_BIAS1_HP_OUT_BIAS_MASK
#define DA732X_BIAS1_HP_OUT_BIAS_100PC
#define DA732X_BIAS1_HP_OUT_BIAS_125PC
#define DA732X_BIAS1_HP_OUT_BIAS_150PC
#define DA732X_BIAS1_HP_OUT_BIAS_175PC
#define DA732X_BIAS1_HP_OUT_BIAS_200PC
#define DA732X_BIAS1_HP_OUT_BIAS_250PC
#define DA732X_BIAS1_HP_OUT_BIAS_300PC
#define DA732X_BIAS1_HP_OUT_BIAS_350PC

/* DA732X_REG_BIAS2	(addr=0x05) */
#define DA732X_BIAS2_LINE2_DAC_BIAS_MASK
#define DA732X_BIAS2_LINE2_DAC_BIAS_100PC
#define DA732X_BIAS2_LINE2_DAC_BIAS_150PC
#define DA732X_BIAS2_LINE2_DAC_BIAS_50PC
#define DA732X_BIAS2_LINE2_DAC_BIAS_75PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_MASK
#define DA732X_BIAS2_LINE2_OUT_BIAS_100PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_125PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_150PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_175PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_200PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_250PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_300PC
#define DA732X_BIAS2_LINE2_OUT_BIAS_350PC

/* DA732X_REG_BIAS3	(addr=0x06) */
#define DA732X_BIAS3_LINE3_DAC_BIAS_MASK
#define DA732X_BIAS3_LINE3_DAC_BIAS_100PC
#define DA732X_BIAS3_LINE3_DAC_BIAS_150PC
#define DA732X_BIAS3_LINE3_DAC_BIAS_50PC
#define DA732X_BIAS3_LINE3_DAC_BIAS_75PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_MASK
#define DA732X_BIAS3_LINE3_OUT_BIAS_100PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_125PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_150PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_175PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_200PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_250PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_300PC
#define DA732X_BIAS3_LINE3_OUT_BIAS_350PC

/* DA732X_REG_BIAS4	(addr=0x07) */
#define DA732X_BIAS4_LINE4_DAC_BIAS_MASK
#define DA732X_BIAS4_LINE4_DAC_BIAS_100PC
#define DA732X_BIAS4_LINE4_DAC_BIAS_150PC
#define DA732X_BIAS4_LINE4_DAC_BIAS_50PC
#define DA732X_BIAS4_LINE4_DAC_BIAS_75PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_MASK
#define DA732X_BIAS4_LINE4_OUT_BIAS_100PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_125PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_150PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_175PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_200PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_250PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_300PC
#define DA732X_BIAS4_LINE4_OUT_BIAS_350PC

/* DA732X_REG_SIF_VDD_SEL	(addr=0x08) */
#define DA732X_SIF_VDD_SEL_AIFA_VDD2
#define DA732X_SIF_VDD_SEL_AIFB_VDD2
#define DA732X_SIF_VDD_SEL_CIFA_VDD2

/* DA732X_REG_MICBIAS2/1	(addr=0x0F/0x10) */
#define DA732X_MICBIAS_VOLTAGE_MASK
#define DA732X_MICBIAS_VOLTAGE_2V
#define DA732X_MICBIAS_VOLTAGE_2V05
#define DA732X_MICBIAS_VOLTAGE_2V1
#define DA732X_MICBIAS_VOLTAGE_2V15
#define DA732X_MICBIAS_VOLTAGE_2V2
#define DA732X_MICBIAS_VOLTAGE_2V25
#define DA732X_MICBIAS_VOLTAGE_2V3
#define DA732X_MICBIAS_VOLTAGE_2V35
#define DA732X_MICBIAS_VOLTAGE_2V4
#define DA732X_MICBIAS_VOLTAGE_2V45
#define DA732X_MICBIAS_VOLTAGE_2V5
#define DA732X_MICBIAS_EN
#define DA732X_MICBIAS_EN_SHIFT
#define DA732X_MICBIAS_VOLTAGE_SHIFT
#define DA732X_MICBIAS_VOLTAGE_MAX

/* DA732X_REG_MICDET	(addr=0x11) */
#define DA732X_MICDET_INP_MICRES
#define DA732X_MICDET_INP_MICHOOK
#define DA732X_MICDET_INP_DEBOUNCE_PRD_8MS
#define DA732X_MICDET_INP_DEBOUNCE_PRD_16MS
#define DA732X_MICDET_INP_DEBOUNCE_PRD_32MS
#define DA732X_MICDET_INP_DEBOUNCE_PRD_64MS
#define DA732X_MICDET_INP_MICDET_EN

/* DA732X_REG_MIC1/2/3_PRE (addr=0x11/0x14/0x18) */
#define DA732X_MICBOOST_MASK
#define DA732X_MICBOOST_SHIFT
#define DA732X_MICBOOST_MIN
#define DA732X_MICBOOST_MAX

/* DA732X_REG_MIC1/2/3	(addr=0x13/0x15/0x19) */
#define DA732X_MIC_VOL_SHIFT
#define DA732X_MIC_VOL_VAL_MASK
#define DA732X_MIC_MUTE_SHIFT
#define DA732X_MIC_EN_SHIFT
#define DA732X_MIC_VOL_VAL_MIN
#define DA732X_MIC_VOL_VAL_MAX

/* DA732X_REG_AUX1L/R	(addr=0x16/0x17) */
#define DA732X_AUX_VOL_SHIFT
#define DA732X_AUX_VOL_MASK
#define DA732X_AUX_MUTE_SHIFT
#define DA732X_AUX_EN_SHIFT
#define DA732X_AUX_VOL_VAL_MAX

/* DA732X_REG_INP_PINBIAS	(addr=0x1A) */
#define DA732X_INP_MICL_PINBIAS_EN
#define DA732X_INP_MICR_PINBIAS_EN
#define DA732X_INP_AUX1L_PINBIAS_EN
#define DA732X_INP_AUX1R_PINBIAS_EN
#define DA732X_INP_AUX2_PINBIAS_EN

/* DA732X_REG_INP_ZC_EN	(addr=0x1B) */
#define DA732X_MIC1_PRE_ZC_EN
#define DA732X_MIC1_ZC_EN
#define DA732X_MIC2_PRE_ZC_EN
#define DA732X_MIC2_ZC_EN
#define DA732X_AUXL_ZC_EN
#define DA732X_AUXR_ZC_EN
#define DA732X_MIC3_PRE_ZC_EN
#define DA732X_MIC3_ZC_EN

/* DA732X_REG_INP_MUX	(addr=0x1D) */
#define DA732X_INP_ADC1L_MUX_SEL_AUX1L
#define DA732X_INP_ADC1L_MUX_SEL_MIC1
#define DA732X_INP_ADC1R_MUX_SEL_MASK
#define DA732X_INP_ADC1R_MUX_SEL_AUX1R
#define DA732X_INP_ADC1R_MUX_SEL_MIC2
#define DA732X_INP_ADC1R_MUX_SEL_MIC3
#define DA732X_INP_ADC2L_MUX_SEL_AUX1L
#define DA732X_INP_ADC2L_MUX_SEL_MICL
#define DA732X_INP_ADC2R_MUX_SEL_MASK
#define DA732X_INP_ADC2R_MUX_SEL_AUX1R
#define DA732X_INP_ADC2R_MUX_SEL_MICR
#define DA732X_INP_ADC2R_MUX_SEL_AUX2
#define DA732X_ADC1L_MUX_SEL_SHIFT
#define DA732X_ADC1R_MUX_SEL_SHIFT
#define DA732X_ADC2L_MUX_SEL_SHIFT
#define DA732X_ADC2R_MUX_SEL_SHIFT

/* DA732X_REG_HP_DET		(addr=0x20) */
#define DA732X_HP_DET_AZ
#define DA732X_HP_DET_SEL1
#define DA732X_HP_DET_IS_MASK
#define DA732X_HP_DET_IS_0_5UA
#define DA732X_HP_DET_IS_1UA
#define DA732X_HP_DET_IS_2UA
#define DA732X_HP_DET_IS_4UA
#define DA732X_HP_DET_RS_MASK
#define DA732X_HP_DET_RS_INFINITE
#define DA732X_HP_DET_RS_100KOHM
#define DA732X_HP_DET_RS_10KOHM
#define DA732X_HP_DET_RS_1KOHM
#define DA732X_HP_DET_EN

/* DA732X_REG_HPL_DAC_OFFSET	(addr=0x21/0x26) */
#define DA732X_HP_DAC_OFFSET_TRIM_MASK
#define DA732X_HP_DAC_OFFSET_DAC_SIGN

/* DA732X_REG_HPL_DAC_OFF_CNTL	(addr=0x22/0x27) */
#define DA732X_HP_DAC_OFF_CNTL_CONT_MASK
#define DA732X_HP_DAC_OFF_CNTL_COMPO
#define DA732X_HP_DAC_OFF_CALIBRATION
#define DA732X_HP_DAC_OFF_SCALE_STEPS
#define DA732X_HP_DAC_OFF_MASK
#define DA732X_HP_DAC_COMPO_SHIFT

/* DA732X_REG_HPL_OUT_OFFSET	(addr=0x23/0x28) */
#define DA732X_HP_OUT_OFFSET_MASK
#define DA732X_HP_DAC_OFFSET_TRIM_VAL

/* DA732X_REG_HPL/R	(addr=0x24/0x29) */
#define DA732X_HP_OUT_SIGN
#define DA732X_HP_OUT_COMP
#define DA732X_HP_OUT_RESERVED
#define DA732X_HP_OUT_COMPO
#define DA732X_HP_OUT_DAC_EN
#define DA732X_HP_OUT_HIZ_EN
#define DA732X_HP_OUT_HIZ_DIS
#define DA732X_HP_OUT_MUTE
#define DA732X_HP_OUT_EN
#define DA732X_HP_OUT_COMPO_SHIFT
#define DA732X_HP_OUT_DAC_EN_SHIFT
#define DA732X_HP_HIZ_SHIFT
#define DA732X_HP_MUTE_SHIFT
#define DA732X_HP_OUT_EN_SHIFT

#define DA732X_OUT_HIZ_EN
#define DA732X_OUT_HIZ_DIS

/* DA732X_REG_HPL/R_VOL	(addr=0x25/0x2A) */
#define DA732X_HP_VOL_VAL_MASK
#define DA732X_HP_VOL_SHIFT
#define DA732X_HP_VOL_VAL_MAX

/* DA732X_REG_LIN2/3/4	(addr=0x2B/0x2C/0x2D) */
#define DA732X_LOUT_VOL_SHIFT
#define DA732X_LOUT_VOL_MASK
#define DA732X_LOUT_DAC_OFF
#define DA732X_LOUT_DAC_EN
#define DA732X_LOUT_HIZ_N_DIS
#define DA732X_LOUT_HIZ_N_EN
#define DA732X_LOUT_UNMUTED
#define DA732X_LOUT_MUTED
#define DA732X_LOUT_EN
#define DA732X_LOUT_DIS
#define DA732X_LOUT_DAC_EN_SHIFT
#define DA732X_LOUT_MUTE_SHIFT
#define DA732X_LIN_OUT_EN_SHIFT
#define DA732X_LOUT_VOL_VAL_MAX

/* DA732X_REG_OUT_ZC_EN		(addr=0x2E) */
#define DA732X_HPL_ZC_EN_SHIFT
#define DA732X_HPR_ZC_EN_SHIFT
#define DA732X_HPL_ZC_EN
#define DA732X_HPL_ZC_DIS
#define DA732X_HPR_ZC_EN
#define DA732X_HPR_ZC_DIS
#define DA732X_LIN2_ZC_EN
#define DA732X_LIN2_ZC_DIS
#define DA732X_LIN3_ZC_EN
#define DA732X_LIN3_ZC_DIS
#define DA732X_LIN4_ZC_EN
#define DA732X_LIN4_ZC_DIS

/* DA732X_REG_HP_LIN1_GNDSEL (addr=0x37) */
#define DA732X_HP_OUT_GNDSEL

/* DA732X_REG_CP_HP2 (addr=0x3a) */
#define DA732X_HP_CP_PULSESKIP
#define DA732X_HP_CP_REG
#define DA732X_HP_CP_EN
#define DA732X_HP_CP_DIS

/* DA732X_REG_CP_CTRL1 (addr=0x40) */
#define DA732X_CP_MODE_MASK
#define DA732X_CP_CTRL_STANDBY
#define DA732X_CP_CTRL_CPVDD6
#define DA732X_CP_CTRL_CPVDD5
#define DA732X_CP_CTRL_CPVDD4
#define DA732X_CP_CTRL_CPVDD3
#define DA732X_CP_CTRL_CPVDD2
#define DA732X_CP_CTRL_CPVDD1
#define DA723X_CP_DIS
#define DA732X_CP_EN

/* DA732X_REG_CP_CTRL2 (addr=0x41) */
#define DA732X_CP_BOOST
#define DA732X_CP_MANAGE_MAGNITUDE

/* DA732X_REG_CP_CTRL3 (addr=0x42) */
#define DA732X_CP_1MHZ
#define DA732X_CP_500KHZ
#define DA732X_CP_250KHZ
#define DA732X_CP_125KHZ
#define DA732X_CP_63KHZ
#define DA732X_CP_0KHZ

/* DA732X_REG_PLL_CTRL (addr=0x53) */
#define DA732X_PLL_INDIV_MASK
#define DA732X_PLL_SRM_EN
#define DA732X_PLL_EN
#define DA732X_PLL_BYPASS

/* DA732X_REG_CLK_CTRL (addr=0x54) */
#define DA732X_SR1_MASK
#define DA732X_SR2_MASK

/* DA732X_REG_CLK_DSP (addr=0x5A) */
#define DA732X_DSP_FREQ_MASK
#define DA732X_DSP_FREQ_12MHZ
#define DA732X_DSP_FREQ_24MHZ
#define DA732X_DSP_FREQ_36MHZ
#define DA732X_DSP_FREQ_48MHZ
#define DA732X_DSP_FREQ_60MHZ
#define DA732X_DSP_FREQ_72MHZ
#define DA732X_DSP_FREQ_84MHZ
#define DA732X_DSP_FREQ_96MHZ

/* DA732X_REG_CLK_EN1 (addr=0x5B) */
#define DA732X_DSP_CLK_EN
#define DA732X_SYS3_CLK_EN
#define DA732X_DSP12_CLK_EN
#define DA732X_PC_CLK_EN
#define DA732X_MCLK_SQR_EN

/* DA732X_REG_CLK_EN2 (addr=0x5C) */
#define DA732X_UART_CLK_EN
#define DA732X_CP_CLK_EN
#define DA732X_CP_CLK_DIS

/* DA732X_REG_CLK_EN3 (addr=0x5D) */
#define DA732X_ADCA_BB_CLK_EN
#define DA732X_ADCC_BB_CLK_EN

/* DA732X_REG_CLK_EN4 (addr=0x5E) */
#define DA732X_DACA_BB_CLK_EN
#define DA732X_DACC_BB_CLK_EN
#define DA732X_DACA_BB_CLK_SHIFT
#define DA732X_DACC_BB_CLK_SHIFT

/* DA732X_REG_CLK_EN5 (addr=0x5F) */
#define DA732X_DACE_BB_CLK_EN
#define DA732X_DACE_BB_CLK_SHIFT

/* DA732X_REG_AIF_MCLK (addr=0x60) */
#define DA732X_AIFM_FRAME_64
#define DA732X_AIFM_SRC_SEL_AIFA
#define DA732X_CLK_GENERATION_AIF_A
#define DA732X_NO_CLK_GENERATION

/* DA732X_REG_AIFA1 (addr=0x61) */
#define DA732X_AIF_WORD_MASK
#define DA732X_AIF_WORD_16
#define DA732X_AIF_WORD_20
#define DA732X_AIF_WORD_24
#define DA732X_AIF_WORD_32
#define DA732X_AIF_TDM_MONO_SHIFT
#define DA732X_AIF1_CLK_MASK
#define DA732X_AIF_SLAVE
#define DA732X_AIF_CLK_FROM_SRC

/* DA732X_REG_AIFA3 (addr=0x63) */
#define DA732X_AIF_MODE_SHIFT
#define DA732X_AIF_MODE_MASK
#define DA732X_AIF_I2S_MODE
#define DA732X_AIF_LEFT_J_MODE
#define DA732X_AIF_RIGHT_J_MODE
#define DA732X_AIF_DSP_MODE
#define DA732X_AIF_WCLK_INV
#define DA732X_AIF_BCLK_INV
#define DA732X_AIF_EN
#define DA732X_AIF_EN_SHIFT

/* DA732X_REG_PC_CTRL (addr=0x6a) */
#define DA732X_PC_PULSE_AIFA
#define DA732X_PC_PULSE_AIFB
#define DA732X_PC_RESYNC_AUT
#define DA732X_PC_RESYNC_NOT_AUT
#define DA732X_PC_SAME

/* DA732X_REG_DATA_ROUTE (addr=0x70) */
#define DA732X_ADC1_TO_AIFA
#define DA732X_DSP_TO_AIFA
#define DA732X_ADC2_TO_AIFB
#define DA732X_DSP_TO_AIFB
#define DA732X_AIFA_TO_DAC1L
#define DA732X_DSP_TO_DAC1L
#define DA732X_AIFA_TO_DAC1R
#define DA732X_DSP_TO_DAC1R
#define DA732X_AIFB_TO_DAC2L
#define DA732X_DSP_TO_DAC2L
#define DA732X_AIFB_TO_DAC2R
#define DA732X_DSP_TO_DAC2R
#define DA732X_AIFB_TO_DAC3
#define DA732X_DSP_TO_DAC3
#define DA732X_BYPASS_DSP
#define DA732X_ALL_TO_DSP

/* DA732X_REG_DSP_CTRL (addr=0x71) */
#define DA732X_DIGITAL_EN
#define DA732X_DIGITAL_RESET
#define DA732X_DSP_CORE_EN
#define DA732X_DSP_CORE_RESET

/* DA732X_REG_SPARE1_OUT (addr=0x7D)*/
#define DA732X_HP_DRIVER_EN
#define DA732X_HP_GATE_LOW
#define DA732X_HP_LOOP_GAIN_CTRL

/* DA732X_REG_ID (addr=0x81)*/
#define DA732X_ID_MINOR_MASK
#define DA732X_ID_MAJOR_MASK

/* DA732X_REG_ADC1/2_PD (addr=0x90/0x98) */
#define DA732X_ADC_RST_MASK
#define DA732X_ADC_PD_MASK
#define DA732X_ADC_SET_ACT
#define DA732X_ADC_SET_RST
#define DA732X_ADC_ON
#define DA732X_ADC_OFF

/* DA732X_REG_ADC1/2_SEL (addr=0x94/0x9C) */
#define DA732X_ADC_VOL_VAL_MASK
#define DA732X_ADCL_VOL_SHIFT
#define DA732X_ADCR_VOL_SHIFT
#define DA732X_ADCL_EN_SHIFT
#define DA732X_ADCR_EN_SHIFT
#define DA732X_ADCL_EN
#define DA732X_ADCR_EN
#define DA732X_ADC_VOL_VAL_MAX

/*
 * DA732X_REG_ADC1/2_HPF (addr=0x93/0x9b)
 * DA732x_REG_DAC1/2/3_HPG	(addr=0xA5/0xB5/0xC5)
 */
#define DA732X_HPF_MUSIC_EN
#define DA732X_HPF_VOICE_EN
#define DA732X_HPF_MASK
#define DA732X_HPF_DIS

/* DA732X_REG_DAC1/2/3_VOL */
#define DA732X_DAC_VOL_VAL_MASK
#define DA732X_DAC_VOL_SHIFT
#define DA732X_DAC_VOL_VAL_MAX

/* DA732X_REG_DAC1/2/3_SEL (addr=0xA3/0xB3/0xC3) */
#define DA732X_DACL_EN_SHIFT
#define DA732X_DACR_EN_SHIFT
#define DA732X_DACL_MUTE_SHIFT
#define DA732X_DACR_MUTE_SHIFT
#define DA732X_DACL_EN
#define DA732X_DACR_EN
#define DA732X_DACL_SDM
#define DA732X_DACR_SDM
#define DA732X_DACL_MUTE
#define DA732X_DACR_MUTE

/* DA732X_REG_DAC_SOFTMUTE (addr=0xA4/0xB4/0xC4) */
#define DA732X_SOFTMUTE_EN
#define DA732X_GAIN_RAMPED
#define DA732X_16_SAMPLES
#define DA732X_SOFTMUTE_MASK
#define DA732X_SOFTMUTE_SHIFT

/*
 * DA732x_REG_ADC1/2_EQ12	(addr=0x95/0x9D)
 * DA732x_REG_ADC1/2_EQ34	(addr=0x96/0x9E)
 * DA732x_REG_ADC1/2_EQ5	(addr=0x97/0x9F)
 * DA732x_REG_DAC1/2/3_EQ12	(addr=0xA5/0xB5/0xC5)
 * DA732x_REG_DAC1/2/3_EQ34	(addr=0xA6/0xB6/0xC6)
 * DA732x_REG_DAC1/2/3_EQ5	(addr=0xA7/0xB7/0xB7)
 */
#define DA732X_EQ_VOL_VAL_MASK
#define DA732X_EQ_BAND1_SHIFT
#define DA732X_EQ_BAND2_SHIFT
#define DA732X_EQ_BAND3_SHIFT
#define DA732X_EQ_BAND4_SHIFT
#define DA732X_EQ_BAND5_SHIFT
#define DA732X_EQ_OVERALL_SHIFT
#define DA732X_EQ_OVERALL_VOL_VAL_MASK
#define DA732X_EQ_DIS
#define DA732X_EQ_EN
#define DA732X_EQ_EN_SHIFT
#define DA732X_EQ_VOL_VAL_MAX
#define DA732X_EQ_OVERALL_VOL_VAL_MAX

/* DA732X_REG_DMA_CMD (addr=0xD3) */
#define DA732X_SEL_DSP_DMA_MASK
#define DA732X_SEL_DSP_DMA_DIS
#define DA732X_SEL_DSP_DMA_PMEM
#define DA732X_SEL_DSP_DMA_XMEM
#define DA732X_SEL_DSP_DMA_YMEM
#define DA732X_DSP_RW_MASK
#define DA732X_DSP_DMA_WRITE
#define DA732X_DSP_DMA_READ

/* DA732X_REG_DMA_STATUS (addr=0xDA) */
#define DA732X_DSP_DMA_FREE
#define DA732X_DSP_DMA_BUSY

#endif /* __DA732X_REG_H_ */