#ifndef _DA7213_H
#define _DA7213_H
#include <linux/clk.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <sound/da7213.h>
#define DA7213_STATUS1 …
#define DA7213_PLL_STATUS …
#define DA7213_AUX_L_GAIN_STATUS …
#define DA7213_AUX_R_GAIN_STATUS …
#define DA7213_MIC_1_GAIN_STATUS …
#define DA7213_MIC_2_GAIN_STATUS …
#define DA7213_MIXIN_L_GAIN_STATUS …
#define DA7213_MIXIN_R_GAIN_STATUS …
#define DA7213_ADC_L_GAIN_STATUS …
#define DA7213_ADC_R_GAIN_STATUS …
#define DA7213_DAC_L_GAIN_STATUS …
#define DA7213_DAC_R_GAIN_STATUS …
#define DA7213_HP_L_GAIN_STATUS …
#define DA7213_HP_R_GAIN_STATUS …
#define DA7213_LINE_GAIN_STATUS …
#define DA7213_DIG_ROUTING_DAI …
#define DA7213_SR …
#define DA7213_REFERENCES …
#define DA7213_PLL_FRAC_TOP …
#define DA7213_PLL_FRAC_BOT …
#define DA7213_PLL_INTEGER …
#define DA7213_PLL_CTRL …
#define DA7213_DAI_CLK_MODE …
#define DA7213_DAI_CTRL …
#define DA7213_DIG_ROUTING_DAC …
#define DA7213_ALC_CTRL1 …
#define DA7213_AUX_L_GAIN …
#define DA7213_AUX_R_GAIN …
#define DA7213_MIXIN_L_SELECT …
#define DA7213_MIXIN_R_SELECT …
#define DA7213_MIXIN_L_GAIN …
#define DA7213_MIXIN_R_GAIN …
#define DA7213_ADC_L_GAIN …
#define DA7213_ADC_R_GAIN …
#define DA7213_ADC_FILTERS1 …
#define DA7213_MIC_1_GAIN …
#define DA7213_MIC_2_GAIN …
#define DA7213_DAC_FILTERS5 …
#define DA7213_DAC_FILTERS2 …
#define DA7213_DAC_FILTERS3 …
#define DA7213_DAC_FILTERS4 …
#define DA7213_DAC_FILTERS1 …
#define DA7213_DAC_L_GAIN …
#define DA7213_DAC_R_GAIN …
#define DA7213_CP_CTRL …
#define DA7213_HP_L_GAIN …
#define DA7213_HP_R_GAIN …
#define DA7213_LINE_GAIN …
#define DA7213_MIXOUT_L_SELECT …
#define DA7213_MIXOUT_R_SELECT …
#define DA7213_SYSTEM_MODES_INPUT …
#define DA7213_SYSTEM_MODES_OUTPUT …
#define DA7213_AUX_L_CTRL …
#define DA7213_AUX_R_CTRL …
#define DA7213_MICBIAS_CTRL …
#define DA7213_MIC_1_CTRL …
#define DA7213_MIC_2_CTRL …
#define DA7213_MIXIN_L_CTRL …
#define DA7213_MIXIN_R_CTRL …
#define DA7213_ADC_L_CTRL …
#define DA7213_ADC_R_CTRL …
#define DA7213_DAC_L_CTRL …
#define DA7213_DAC_R_CTRL …
#define DA7213_HP_L_CTRL …
#define DA7213_HP_R_CTRL …
#define DA7213_LINE_CTRL …
#define DA7213_MIXOUT_L_CTRL …
#define DA7213_MIXOUT_R_CTRL …
#define DA7213_LDO_CTRL …
#define DA7213_IO_CTRL …
#define DA7213_GAIN_RAMP_CTRL …
#define DA7213_MIC_CONFIG …
#define DA7213_PC_COUNT …
#define DA7213_CP_VOL_THRESHOLD1 …
#define DA7213_CP_DELAY …
#define DA7213_CP_DETECTOR …
#define DA7213_DAI_OFFSET …
#define DA7213_DIG_CTRL …
#define DA7213_ALC_CTRL2 …
#define DA7213_ALC_CTRL3 …
#define DA7213_ALC_NOISE …
#define DA7213_ALC_TARGET_MIN …
#define DA7213_ALC_TARGET_MAX …
#define DA7213_ALC_GAIN_LIMITS …
#define DA7213_ALC_ANA_GAIN_LIMITS …
#define DA7213_ALC_ANTICLIP_CTRL …
#define DA7213_ALC_ANTICLIP_LEVEL …
#define DA7213_ALC_OFFSET_AUTO_M_L …
#define DA7213_ALC_OFFSET_AUTO_U_L …
#define DA7213_ALC_OFFSET_MAN_M_L …
#define DA7213_ALC_OFFSET_MAN_U_L …
#define DA7213_ALC_OFFSET_AUTO_M_R …
#define DA7213_ALC_OFFSET_AUTO_U_R …
#define DA7213_ALC_OFFSET_MAN_M_R …
#define DA7213_ALC_OFFSET_MAN_U_R …
#define DA7213_ALC_CIC_OP_LVL_CTRL …
#define DA7213_ALC_CIC_OP_LVL_DATA …
#define DA7213_DAC_NG_SETUP_TIME …
#define DA7213_DAC_NG_OFF_THRESHOLD …
#define DA7213_DAC_NG_ON_THRESHOLD …
#define DA7213_DAC_NG_CTRL …
#define DA7213_TONE_GEN_CFG1 …
#define DA7213_TONE_GEN_CFG2 …
#define DA7213_TONE_GEN_CYCLES …
#define DA7213_TONE_GEN_FREQ1_L …
#define DA7213_TONE_GEN_FREQ1_U …
#define DA7213_TONE_GEN_FREQ2_L …
#define DA7213_TONE_GEN_FREQ2_U …
#define DA7213_TONE_GEN_ON_PER …
#define DA7213_TONE_GEN_OFF_PER …
#define DA7213_SWITCH_EN_MAX …
#define DA7213_PLL_SRM_LOCK …
#define DA7213_SR_8000 …
#define DA7213_SR_11025 …
#define DA7213_SR_12000 …
#define DA7213_SR_16000 …
#define DA7213_SR_22050 …
#define DA7213_SR_24000 …
#define DA7213_SR_32000 …
#define DA7213_SR_44100 …
#define DA7213_SR_48000 …
#define DA7213_SR_88200 …
#define DA7213_SR_96000 …
#define DA7213_BIAS_EN …
#define DA7213_VMID_EN …
#define DA7213_PLL_INDIV_5_TO_9_MHZ …
#define DA7213_PLL_INDIV_9_TO_18_MHZ …
#define DA7213_PLL_INDIV_18_TO_36_MHZ …
#define DA7213_PLL_INDIV_36_TO_54_MHZ …
#define DA7213_PLL_INDIV_MASK …
#define DA7213_PLL_MCLK_SQR_EN …
#define DA7213_PLL_32K_MODE …
#define DA7213_PLL_SRM_EN …
#define DA7213_PLL_EN …
#define DA7213_PLL_MODE_MASK …
#define DA7213_DAI_BCLKS_PER_WCLK_32 …
#define DA7213_DAI_BCLKS_PER_WCLK_64 …
#define DA7213_DAI_BCLKS_PER_WCLK_128 …
#define DA7213_DAI_BCLKS_PER_WCLK_256 …
#define DA7213_DAI_BCLKS_PER_WCLK_MASK …
#define DA7213_DAI_CLK_POL_INV …
#define DA7213_DAI_CLK_POL_MASK …
#define DA7213_DAI_WCLK_POL_INV …
#define DA7213_DAI_WCLK_POL_MASK …
#define DA7213_DAI_CLK_EN_MASK …
#define DA7213_DAI_FORMAT_I2S_MODE …
#define DA7213_DAI_FORMAT_LEFT_J …
#define DA7213_DAI_FORMAT_RIGHT_J …
#define DA7213_DAI_FORMAT_DSP …
#define DA7213_DAI_FORMAT_MASK …
#define DA7213_DAI_WORD_LENGTH_S16_LE …
#define DA7213_DAI_WORD_LENGTH_S20_LE …
#define DA7213_DAI_WORD_LENGTH_S24_LE …
#define DA7213_DAI_WORD_LENGTH_S32_LE …
#define DA7213_DAI_WORD_LENGTH_MASK …
#define DA7213_DAI_MONO_MODE_EN …
#define DA7213_DAI_MONO_MODE_MASK …
#define DA7213_DAI_EN_SHIFT …
#define DA7213_DAI_L_SRC_SHIFT …
#define DA7213_DAI_R_SRC_SHIFT …
#define DA7213_DAI_SRC_MAX …
#define DA7213_DAC_L_SRC_SHIFT …
#define DA7213_DAC_L_MONO_SHIFT …
#define DA7213_DAC_R_SRC_SHIFT …
#define DA7213_DAC_R_MONO_SHIFT …
#define DA7213_DAC_SRC_MAX …
#define DA7213_DAC_MONO_MAX …
#define DA7213_ALC_OFFSET_EN_SHIFT …
#define DA7213_ALC_OFFSET_EN_MAX …
#define DA7213_ALC_OFFSET_EN …
#define DA7213_ALC_SYNC_MODE …
#define DA7213_ALC_CALIB_MODE_MAN …
#define DA7213_ALC_L_EN_SHIFT …
#define DA7213_ALC_AUTO_CALIB_EN …
#define DA7213_ALC_CALIB_OVERFLOW …
#define DA7213_ALC_R_EN_SHIFT …
#define DA7213_ALC_EN_MAX …
#define DA7213_AUX_AMP_GAIN_SHIFT …
#define DA7213_AUX_AMP_GAIN_MAX …
#define DA7213_DMIC_EN_SHIFT …
#define DA7213_DMIC_EN_MAX …
#define DA7213_MIXIN_L_MIX_SELECT_AUX_L_SHIFT …
#define DA7213_MIXIN_L_MIX_SELECT_MIC_1_SHIFT …
#define DA7213_MIXIN_L_MIX_SELECT_MIC_1 …
#define DA7213_MIXIN_L_MIX_SELECT_MIC_2_SHIFT …
#define DA7213_MIXIN_L_MIX_SELECT_MIC_2 …
#define DA7213_MIXIN_L_MIX_SELECT_MIXIN_R_SHIFT …
#define DA7213_MIXIN_L_MIX_SELECT_MAX …
#define DA7213_MIXIN_R_MIX_SELECT_AUX_R_SHIFT …
#define DA7213_MIXIN_R_MIX_SELECT_MIC_2_SHIFT …
#define DA7213_MIXIN_R_MIX_SELECT_MIC_2 …
#define DA7213_MIXIN_R_MIX_SELECT_MIC_1_SHIFT …
#define DA7213_MIXIN_R_MIX_SELECT_MIC_1 …
#define DA7213_MIXIN_R_MIX_SELECT_MIXIN_L_SHIFT …
#define DA7213_MIXIN_R_MIX_SELECT_MAX …
#define DA7213_MIC_BIAS_OUTPUT_SELECT_2 …
#define DA7213_MIXIN_AMP_GAIN_SHIFT …
#define DA7213_MIXIN_AMP_GAIN_MAX …
#define DA7213_ADC_AMP_GAIN_SHIFT …
#define DA7213_ADC_AMP_GAIN_MAX …
#define DA7213_VOICE_HPF_CORNER_SHIFT …
#define DA7213_VOICE_HPF_CORNER_MAX …
#define DA7213_VOICE_EN_SHIFT …
#define DA7213_VOICE_EN_MAX …
#define DA7213_AUDIO_HPF_CORNER_SHIFT …
#define DA7213_AUDIO_HPF_CORNER_MAX …
#define DA7213_HPF_EN_SHIFT …
#define DA7213_HPF_EN_MAX …
#define DA7213_MIC_AMP_GAIN_SHIFT …
#define DA7213_MIC_AMP_GAIN_MAX …
#define DA7213_DAC_SOFTMUTE_EN_SHIFT …
#define DA7213_DAC_SOFTMUTE_EN_MAX …
#define DA7213_DAC_SOFTMUTE_RATE_SHIFT …
#define DA7213_DAC_SOFTMUTE_RATE_MAX …
#define DA7213_DAC_EQ_BAND_MAX …
#define DA7213_DAC_EQ_BAND1_SHIFT …
#define DA7213_DAC_EQ_BAND2_SHIFT …
#define DA7213_DAC_EQ_BAND3_SHIFT …
#define DA7213_DAC_EQ_BAND4_SHIFT …
#define DA7213_DAC_EQ_BAND5_SHIFT …
#define DA7213_DAC_EQ_EN_SHIFT …
#define DA7213_DAC_EQ_EN_MAX …
#define DA7213_DAC_AMP_GAIN_SHIFT …
#define DA7213_DAC_AMP_GAIN_MAX …
#define DA7213_HP_AMP_GAIN_SHIFT …
#define DA7213_HP_AMP_GAIN_MAX …
#define DA7213_CP_EN_SHIFT …
#define DA7213_LINE_AMP_GAIN_SHIFT …
#define DA7213_LINE_AMP_GAIN_MAX …
#define DA7213_MIXOUT_L_MIX_SELECT_AUX_L_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_MIXIN_L_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_MIXIN_R_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_DAC_L_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_AUX_L_INVERTED_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_MIXIN_L_INVERTED_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_MIXIN_R_INVERTED_SHIFT …
#define DA7213_MIXOUT_L_MIX_SELECT_MAX …
#define DA7213_MIXOUT_R_MIX_SELECT_AUX_R_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_MIXIN_R_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_MIXIN_L_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_DAC_R_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_AUX_R_INVERTED_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_MIXIN_R_INVERTED_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_MIXIN_L_INVERTED_SHIFT …
#define DA7213_MIXOUT_R_MIX_SELECT_MAX …
#define DA7213_MUTE_EN_SHIFT …
#define DA7213_MUTE_EN_MAX …
#define DA7213_MUTE_EN …
#define DA7213_GAIN_RAMP_EN_SHIFT …
#define DA7213_GAIN_RAMP_EN_MAX …
#define DA7213_GAIN_RAMP_EN …
#define DA7213_ZC_EN_SHIFT …
#define DA7213_ZC_EN_MAX …
#define DA7213_AMP_EN_SHIFT …
#define DA7213_MIC_AMP_IN_SEL_SHIFT …
#define DA7213_MIC_AMP_IN_SEL_MAX …
#define DA7213_MICBIAS1_LEVEL_SHIFT …
#define DA7213_MICBIAS1_LEVEL_MASK …
#define DA7213_MICBIAS1_EN_SHIFT …
#define DA7213_MICBIAS2_LEVEL_SHIFT …
#define DA7213_MICBIAS2_LEVEL_MASK …
#define DA7213_MICBIAS2_EN_SHIFT …
#define DA7213_MIXIN_MIX_EN …
#define DA7213_ADC_EN_SHIFT …
#define DA7213_ADC_EN …
#define DA7213_DAC_EN_SHIFT …
#define DA7213_HP_AMP_OE …
#define DA7213_LINE_AMP_OE …
#define DA7213_MIXOUT_MIX_EN …
#define DA7213_GAIN_RAMP_RATE_SHIFT …
#define DA7213_GAIN_RAMP_RATE_MAX …
#define DA7213_DMIC_DATA_SEL_SHIFT …
#define DA7213_DMIC_DATA_SEL_MASK …
#define DA7213_DMIC_SAMPLEPHASE_SHIFT …
#define DA7213_DMIC_SAMPLEPHASE_MASK …
#define DA7213_DMIC_CLK_RATE_SHIFT …
#define DA7213_DMIC_CLK_RATE_MASK …
#define DA7213_PC_FREERUN_MASK …
#define DA7213_DAC_L_INV_SHIFT …
#define DA7213_DAC_R_INV_SHIFT …
#define DA7213_DAC_INV_MAX …
#define DA7213_ALC_ATTACK_SHIFT …
#define DA7213_ALC_ATTACK_MAX …
#define DA7213_ALC_RELEASE_SHIFT …
#define DA7213_ALC_RELEASE_MAX …
#define DA7213_ALC_HOLD_SHIFT …
#define DA7213_ALC_HOLD_MAX …
#define DA7213_ALC_INTEG_ATTACK_SHIFT …
#define DA7213_ALC_INTEG_RELEASE_SHIFT …
#define DA7213_ALC_INTEG_MAX …
#define DA7213_ALC_THRESHOLD_SHIFT …
#define DA7213_ALC_THRESHOLD_MAX …
#define DA7213_ALC_ATTEN_MAX_SHIFT …
#define DA7213_ALC_GAIN_MAX_SHIFT …
#define DA7213_ALC_ATTEN_GAIN_MAX_MAX …
#define DA7213_ALC_ANA_GAIN_MIN_SHIFT …
#define DA7213_ALC_ANA_GAIN_MAX_SHIFT …
#define DA7213_ALC_ANA_GAIN_MAX …
#define DA7213_ALC_ANTICLIP_EN_SHIFT …
#define DA7213_ALC_ANTICLIP_EN_MAX …
#define DA7213_ALC_ANTICLIP_LEVEL_SHIFT …
#define DA7213_ALC_ANTICLIP_LEVEL_MAX …
#define DA7213_ALC_DATA_MIDDLE …
#define DA7213_ALC_DATA_TOP …
#define DA7213_ALC_CIC_OP_CHANNEL_LEFT …
#define DA7213_ALC_CIC_OP_CHANNEL_RIGHT …
#define DA7213_DAC_NG_SETUP_TIME_SHIFT …
#define DA7213_DAC_NG_SETUP_TIME_MAX …
#define DA7213_DAC_NG_RAMPUP_RATE_SHIFT …
#define DA7213_DAC_NG_RAMPDN_RATE_SHIFT …
#define DA7213_DAC_NG_RAMP_RATE_MAX …
#define DA7213_DAC_NG_THRESHOLD_SHIFT …
#define DA7213_DAC_NG_THRESHOLD_MAX …
#define DA7213_DAC_NG_EN_SHIFT …
#define DA7213_DAC_NG_EN_MAX …
#define DA7213_DTMF_REG_SHIFT …
#define DA7213_DTMF_REG_MASK …
#define DA7213_DTMF_REG_MAX …
#define DA7213_DTMF_EN_SHIFT …
#define DA7213_DTMF_EN_MASK …
#define DA7213_START_STOPN_SHIFT …
#define DA7213_START_STOPN_MASK …
#define DA7213_SWG_SEL_SHIFT …
#define DA7213_SWG_SEL_MASK …
#define DA7213_SWG_SEL_MAX …
#define DA7213_SWG_SEL_SRAMP …
#define DA7213_TONE_GEN_GAIN_SHIFT …
#define DA7213_TONE_GEN_GAIN_MASK …
#define DA7213_TONE_GEN_GAIN_MAX …
#define DA7213_TONE_GEN_GAIN_MINUS_9DB …
#define DA7213_TONE_GEN_GAIN_MINUS_15DB …
#define DA7213_BEEP_CYCLES_SHIFT …
#define DA7213_BEEP_CYCLES_MASK …
#define DA7213_FREQ1_L_SHIFT …
#define DA7213_FREQ1_L_MASK …
#define DA7213_FREQ_MAX …
#define DA7213_FREQ1_U_SHIFT …
#define DA7213_FREQ1_U_MASK …
#define DA7213_FREQ2_L_SHIFT …
#define DA7213_FREQ2_L_MASK …
#define DA7213_FREQ2_U_SHIFT …
#define DA7213_FREQ2_U_MASK …
#define DA7213_BEEP_ON_PER_SHIFT …
#define DA7213_BEEP_ON_PER_MASK …
#define DA7213_BEEP_ON_OFF_MAX …
#define DA7213_BEEP_OFF_PER_SHIFT …
#define DA7213_BEEP_OFF_PER_MASK …
#define DA7213_NO_INVERT …
#define DA7213_INVERT …
#define DA7213_BYTE_SHIFT …
#define DA7213_BYTE_MASK …
#define DA7213_ALC_OFFSET_15_8 …
#define DA7213_ALC_OFFSET_19_16 …
#define DA7213_ALC_AVG_ITERATIONS …
#define DA7213_PLL_FREQ_OUT_90316800 …
#define DA7213_PLL_FREQ_OUT_98304000 …
#define DA7213_PLL_FREQ_OUT_94310400 …
#define DA7213_PLL_INDIV_5_TO_9_MHZ_VAL …
#define DA7213_PLL_INDIV_9_TO_18_MHZ_VAL …
#define DA7213_PLL_INDIV_18_TO_36_MHZ_VAL …
#define DA7213_PLL_INDIV_36_TO_54_MHZ_VAL …
#define DA7213_SRM_CHECK_RETRIES …
enum da7213_clk_src { … };
enum da7213_sys_clk { … };
enum da7213_supplies { … };
struct da7213_priv { … };
#endif