linux/sound/soc/codecs/rt1011.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * rt1011.h -- RT1011 ALSA SoC amplifier component driver header
 *
 * Copyright(c) 2019 Realtek Semiconductor Corp.
 */

#ifndef _RT1011_H_
#define _RT1011_H_

#define RT1011_DEVICE_ID_NUM

#define RT1011_RESET
#define RT1011_CLK_1
#define RT1011_CLK_2
#define RT1011_CLK_3
#define RT1011_CLK_4
#define RT1011_PLL_1
#define RT1011_PLL_2
#define RT1011_SRC_1
#define RT1011_SRC_2
#define RT1011_SRC_3
#define RT1011_CLK_DET
#define RT1011_SIL_DET
#define RT1011_PRIV_INDEX
#define RT1011_PRIV_DATA
#define RT1011_CUSTOMER_ID
#define RT1011_FM_VER
#define RT1011_VERSION_ID
#define RT1011_VENDOR_ID
#define RT1011_DEVICE_ID
#define RT1011_DUM_RW_0
#define RT1011_DUM_YUN
#define RT1011_DUM_RW_1
#define RT1011_DUM_RO
#define RT1011_MAN_I2C_DEV
#define RT1011_DAC_SET_1
#define RT1011_DAC_SET_2
#define RT1011_DAC_SET_3
#define RT1011_ADC_SET
#define RT1011_ADC_SET_1
#define RT1011_ADC_SET_2
#define RT1011_ADC_SET_3
#define RT1011_ADC_SET_4
#define RT1011_ADC_SET_5
#define RT1011_TDM_TOTAL_SET
#define RT1011_TDM1_SET_TCON
#define RT1011_TDM1_SET_1
#define RT1011_TDM1_SET_2
#define RT1011_TDM1_SET_3
#define RT1011_TDM1_SET_4
#define RT1011_TDM1_SET_5
#define RT1011_TDM2_SET_1
#define RT1011_TDM2_SET_2
#define RT1011_TDM2_SET_3
#define RT1011_TDM2_SET_4
#define RT1011_TDM2_SET_5
#define RT1011_PWM_CAL
#define RT1011_MIXER_1
#define RT1011_MIXER_2
#define RT1011_ADRC_LIMIT
#define RT1011_A_PRO
#define RT1011_A_TIMING_1
#define RT1011_A_TIMING_2
#define RT1011_A_TEMP_SEN
#define RT1011_SPK_VOL_DET_1
#define RT1011_SPK_VOL_DET_2
#define RT1011_SPK_VOL_TEST_OUT
#define RT1011_VBAT_VOL_DET_1
#define RT1011_VBAT_VOL_DET_2
#define RT1011_VBAT_TEST_OUT_1
#define RT1011_VBAT_TEST_OUT_2
#define RT1011_VBAT_PROTECTION
#define RT1011_VBAT_DET
#define RT1011_POWER_1
#define RT1011_POWER_2
#define RT1011_POWER_3
#define RT1011_POWER_4
#define RT1011_POWER_5
#define RT1011_POWER_6
#define RT1011_POWER_7
#define RT1011_POWER_8
#define RT1011_POWER_9
#define RT1011_CLASS_D_POS
#define RT1011_BOOST_CON_1
#define RT1011_BOOST_CON_2
#define RT1011_ANALOG_CTRL
#define RT1011_POWER_SEQ
#define RT1011_SHORT_CIRCUIT_DET_1
#define RT1011_SHORT_CIRCUIT_DET_2
#define RT1011_SPK_TEMP_PROTECT_0
#define RT1011_SPK_TEMP_PROTECT_1
#define RT1011_SPK_TEMP_PROTECT_2
#define RT1011_SPK_TEMP_PROTECT_3
#define RT1011_SPK_TEMP_PROTECT_4
#define RT1011_SPK_TEMP_PROTECT_5
#define RT1011_SPK_TEMP_PROTECT_6
#define RT1011_SPK_TEMP_PROTECT_7
#define RT1011_SPK_TEMP_PROTECT_8
#define RT1011_SPK_TEMP_PROTECT_9
#define RT1011_SPK_PRO_DC_DET_1
#define RT1011_SPK_PRO_DC_DET_2
#define RT1011_SPK_PRO_DC_DET_3
#define RT1011_SPK_PRO_DC_DET_4
#define RT1011_SPK_PRO_DC_DET_5
#define RT1011_SPK_PRO_DC_DET_6
#define RT1011_SPK_PRO_DC_DET_7
#define RT1011_SPK_PRO_DC_DET_8
#define RT1011_SPL_1
#define RT1011_SPL_2
#define RT1011_SPL_3
#define RT1011_SPL_4
#define RT1011_THER_FOLD_BACK_1
#define RT1011_THER_FOLD_BACK_2
#define RT1011_EXCUR_PROTECT_1
#define RT1011_EXCUR_PROTECT_2
#define RT1011_EXCUR_PROTECT_3
#define RT1011_EXCUR_PROTECT_4
#define RT1011_BAT_GAIN_1
#define RT1011_BAT_GAIN_2
#define RT1011_BAT_GAIN_3
#define RT1011_BAT_GAIN_4
#define RT1011_BAT_GAIN_5
#define RT1011_BAT_GAIN_6
#define RT1011_BAT_GAIN_7
#define RT1011_BAT_GAIN_8
#define RT1011_BAT_GAIN_9
#define RT1011_BAT_GAIN_10
#define RT1011_BAT_GAIN_11
#define RT1011_BAT_RT_THMAX_1
#define RT1011_BAT_RT_THMAX_2
#define RT1011_BAT_RT_THMAX_3
#define RT1011_BAT_RT_THMAX_4
#define RT1011_BAT_RT_THMAX_5
#define RT1011_BAT_RT_THMAX_6
#define RT1011_BAT_RT_THMAX_7
#define RT1011_BAT_RT_THMAX_8
#define RT1011_BAT_RT_THMAX_9
#define RT1011_BAT_RT_THMAX_10
#define RT1011_BAT_RT_THMAX_11
#define RT1011_BAT_RT_THMAX_12
#define RT1011_SPREAD_SPECTURM
#define RT1011_PRO_GAIN_MODE
#define RT1011_RT_DRC_CROSS
#define RT1011_RT_DRC_HB_1
#define RT1011_RT_DRC_HB_2
#define RT1011_RT_DRC_HB_3
#define RT1011_RT_DRC_HB_4
#define RT1011_RT_DRC_HB_5
#define RT1011_RT_DRC_HB_6
#define RT1011_RT_DRC_HB_7
#define RT1011_RT_DRC_HB_8
#define RT1011_RT_DRC_BB_1
#define RT1011_RT_DRC_BB_2
#define RT1011_RT_DRC_BB_3
#define RT1011_RT_DRC_BB_4
#define RT1011_RT_DRC_BB_5
#define RT1011_RT_DRC_BB_6
#define RT1011_RT_DRC_BB_7
#define RT1011_RT_DRC_BB_8
#define RT1011_RT_DRC_POS_1
#define RT1011_RT_DRC_POS_2
#define RT1011_RT_DRC_POS_3
#define RT1011_RT_DRC_POS_4
#define RT1011_RT_DRC_POS_5
#define RT1011_RT_DRC_POS_6
#define RT1011_RT_DRC_POS_7
#define RT1011_RT_DRC_POS_8
#define RT1011_CROSS_BQ_SET_1
#define RT1011_CROSS_BQ_SET_2
#define RT1011_BQ_SET_0
#define RT1011_BQ_SET_1
#define RT1011_BQ_SET_2
#define RT1011_BQ_PRE_GAIN_28_16
#define RT1011_BQ_PRE_GAIN_15_0
#define RT1011_BQ_POST_GAIN_28_16
#define RT1011_BQ_POST_GAIN_15_0

#define RT1011_BQ_H0_28_16
#define RT1011_BQ_A2_15_0
#define RT1011_BQ_1_H0_28_16
#define RT1011_BQ_1_A2_15_0
#define RT1011_BQ_2_H0_28_16
#define RT1011_BQ_2_A2_15_0
#define RT1011_BQ_3_H0_28_16
#define RT1011_BQ_3_A2_15_0
#define RT1011_BQ_4_H0_28_16
#define RT1011_BQ_4_A2_15_0
#define RT1011_BQ_5_H0_28_16
#define RT1011_BQ_5_A2_15_0
#define RT1011_BQ_6_H0_28_16
#define RT1011_BQ_6_A2_15_0
#define RT1011_BQ_7_H0_28_16
#define RT1011_BQ_7_A2_15_0
#define RT1011_BQ_8_H0_28_16
#define RT1011_BQ_8_A2_15_0
#define RT1011_BQ_9_H0_28_16
#define RT1011_BQ_9_A2_15_0
#define RT1011_BQ_10_H0_28_16
#define RT1011_BQ_10_A2_15_0
#define RT1011_TEST_PAD_STATUS
#define RT1011_SYSTEM_RESET_1
#define RT1011_SYSTEM_RESET_2
#define RT1011_SYSTEM_RESET_3
#define RT1011_ADCDAT_OUT_SOURCE
#define RT1011_PLL_INTERNAL_SET
#define RT1011_TEST_OUT_1
#define RT1011_TEST_OUT_3
#define RT1011_DC_CALIB_CLASSD_1
#define RT1011_DC_CALIB_CLASSD_2
#define RT1011_DC_CALIB_CLASSD_3
#define RT1011_DC_CALIB_CLASSD_5
#define RT1011_DC_CALIB_CLASSD_6
#define RT1011_DC_CALIB_CLASSD_7
#define RT1011_DC_CALIB_CLASSD_8
#define RT1011_DC_CALIB_CLASSD_10
#define RT1011_CLASSD_INTERNAL_SET_1
#define RT1011_CLASSD_INTERNAL_SET_3
#define RT1011_CLASSD_INTERNAL_SET_8
#define RT1011_VREF_LV_1
#define RT1011_SMART_BOOST_TIMING_1
#define RT1011_SMART_BOOST_TIMING_36
#define RT1011_SINE_GEN_REG_1
#define RT1011_SINE_GEN_REG_2
#define RT1011_SINE_GEN_REG_3
#define RT1011_STP_INITIAL_RS_TEMP
#define RT1011_STP_CALIB_RS_TEMP
#define RT1011_INIT_RECIPROCAL_REG_24_16
#define RT1011_INIT_RECIPROCAL_REG_15_0
#define RT1011_STP_INITIAL_RESISTANCE_TEMP
#define RT1011_STP_ALPHA_RECIPROCAL_MSB
#define RT1011_SPK_RESISTANCE_1
#define RT1011_SPK_RESISTANCE_2
#define RT1011_SPK_THERMAL
#define RT1011_STP_OTP_TH
#define RT1011_ALC_BK_GAIN_O
#define RT1011_ALC_BK_GAIN_O_PRE
#define RT1011_SPK_DC_O_23_16
#define RT1011_SPK_DC_O_15_0
#define RT1011_INIT_RECIPROCAL_SYN_24_16
#define RT1011_INIT_RECIPROCAL_SYN_15_0
#define RT1011_STP_BQ_1_A1_L_28_16
#define RT1011_STP_BQ_1_H0_R_15_0
#define RT1011_STP_BQ_2_A1_L_28_16
#define RT1011_SPK_EXCURSION_23_16
#define RT1011_SPK_EXCURSION_15_0
#define RT1011_SEP_MAIN_OUT_23_16
#define RT1011_SEP_MAIN_OUT_15_0
#define RT1011_SEP_RE_REG_15_0
#define RT1011_DRC_CF_PARAMS_1
#define RT1011_DRC_CF_PARAMS_12
#define RT1011_ALC_DRC_HB_INTERNAL_1
#define RT1011_ALC_DRC_HB_INTERNAL_5
#define RT1011_ALC_DRC_HB_INTERNAL_6
#define RT1011_ALC_DRC_HB_INTERNAL_7
#define RT1011_ALC_DRC_BB_INTERNAL_1
#define RT1011_ALC_DRC_BB_INTERNAL_5
#define RT1011_ALC_DRC_BB_INTERNAL_6
#define RT1011_ALC_DRC_BB_INTERNAL_7
#define RT1011_ALC_DRC_POS_INTERNAL_1
#define RT1011_ALC_DRC_POS_INTERNAL_5
#define RT1011_ALC_DRC_POS_INTERNAL_6
#define RT1011_ALC_DRC_POS_INTERNAL_7
#define RT1011_ALC_DRC_POS_INTERNAL_8
#define RT1011_ALC_DRC_POS_INTERNAL_9
#define RT1011_ALC_DRC_POS_INTERNAL_10
#define RT1011_ALC_DRC_POS_INTERNAL_11
#define RT1011_BQ_1_PARAMS_CHECK_5
#define RT1011_BQ_2_PARAMS_CHECK_1
#define RT1011_BQ_2_PARAMS_CHECK_5
#define RT1011_BQ_3_PARAMS_CHECK_1
#define RT1011_BQ_3_PARAMS_CHECK_5
#define RT1011_BQ_4_PARAMS_CHECK_1
#define RT1011_BQ_4_PARAMS_CHECK_5
#define RT1011_BQ_5_PARAMS_CHECK_1
#define RT1011_BQ_5_PARAMS_CHECK_5
#define RT1011_BQ_6_PARAMS_CHECK_1
#define RT1011_BQ_6_PARAMS_CHECK_5
#define RT1011_BQ_7_PARAMS_CHECK_1
#define RT1011_BQ_7_PARAMS_CHECK_5
#define RT1011_BQ_8_PARAMS_CHECK_1
#define RT1011_BQ_8_PARAMS_CHECK_5
#define RT1011_BQ_9_PARAMS_CHECK_1
#define RT1011_BQ_9_PARAMS_CHECK_5
#define RT1011_BQ_10_PARAMS_CHECK_1
#define RT1011_BQ_10_PARAMS_CHECK_5
#define RT1011_IRQ_1
#define RT1011_PART_NUMBER_EFUSE
#define RT1011_EFUSE_CONTROL_1
#define RT1011_EFUSE_CONTROL_2
#define RT1011_EFUSE_MATCH_DONE
#define RT1011_EFUSE_ADC_OFFSET_18_16
#define RT1011_EFUSE_ADC_OFFSET_15_0
#define RT1011_EFUSE_DAC_OFFSET_G0_20_16
#define RT1011_EFUSE_DAC_OFFSET_G0_15_0
#define RT1011_EFUSE_DAC_OFFSET_G1_20_16
#define RT1011_EFUSE_DAC_OFFSET_G1_15_0
#define RT1011_EFUSE_READ_R0_3_15_0
#define RT1011_MAX_REG
#define RT1011_REG_DISP_LEN


/* CLOCK-2 (0x0004) */
#define RT1011_FS_SYS_PRE_MASK
#define RT1011_FS_SYS_PRE_SFT
#define RT1011_FS_SYS_PRE_MCLK
#define RT1011_FS_SYS_PRE_BCLK
#define RT1011_FS_SYS_PRE_PLL1
#define RT1011_FS_SYS_PRE_RCCLK
#define RT1011_PLL1_SRC_MASK
#define RT1011_PLL1_SRC_SFT
#define RT1011_PLL1_SRC_PLL2
#define RT1011_PLL1_SRC_BCLK
#define RT1011_PLL2_SRC_MASK
#define RT1011_PLL2_SRC_SFT
#define RT1011_PLL2_SRC_MCLK
#define RT1011_PLL2_SRC_RCCLK
#define RT1011_PLL2_SRC_DIV_MASK
#define RT1011_PLL2_SRC_DIV_SFT
#define RT1011_SRCIN_DIV_MASK
#define RT1011_SRCIN_DIV_SFT
#define RT1011_FS_SYS_DIV_MASK
#define RT1011_FS_SYS_DIV_SFT

/* PLL-1 (0x000a) */
#define RT1011_PLL1_QM_MASK
#define RT1011_PLL1_QM_SFT
#define RT1011_PLL1_BPM_MASK
#define RT1011_PLL1_BPM_SFT
#define RT1011_PLL1_BPM
#define RT1011_PLL1_QN_MASK
#define RT1011_PLL1_QN_SFT

/* PLL-2 (0x000c) */
#define RT1011_PLL2_BPK_MASK
#define RT1011_PLL2_BPK_SFT
#define RT1011_PLL2_BPK
#define RT1011_PLL2_QK_MASK
#define RT1011_PLL2_QK_SFT

/* Clock Detect (0x0020) */
#define RT1011_EN_MCLK_DET_MASK
#define RT1011_EN_MCLK_DET_SFT
#define RT1011_EN_MCLK_DET

/* DAC Setting-2 (0x0104) */
#define RT1011_EN_CKGEN_DAC_MASK
#define RT1011_EN_CKGEN_DAC_SFT
#define RT1011_EN_CKGEN_DAC

/* DAC Setting-3 (0x0106) */
#define RT1011_DA_MUTE_EN_MASK
#define RT1011_DA_MUTE_EN_SFT

/* ADC Setting-5 (0x0110) */
#define RT1011_AD_EN_CKGEN_ADC_MASK
#define RT1011_AD_EN_CKGEN_ADC_SFT
#define RT1011_AD_EN_CKGEN_ADC

/* TDM Total Setting (0x0111) */
#define RT1011_I2S_TDM_MS_MASK
#define RT1011_I2S_TDM_MS_SFT
#define RT1011_I2S_TDM_MS_S
#define RT1011_I2S_TDM_MS_M
#define RT1011_I2S_TX_DL_MASK
#define RT1011_I2S_TX_DL_SFT
#define RT1011_I2S_TX_DL_16B
#define RT1011_I2S_TX_DL_20B
#define RT1011_I2S_TX_DL_24B
#define RT1011_I2S_TX_DL_32B
#define RT1011_I2S_TX_DL_8B
#define RT1011_I2S_RX_DL_MASK
#define RT1011_I2S_RX_DL_SFT
#define RT1011_I2S_RX_DL_16B
#define RT1011_I2S_RX_DL_20B
#define RT1011_I2S_RX_DL_24B
#define RT1011_I2S_RX_DL_32B
#define RT1011_I2S_RX_DL_8B
#define RT1011_ADCDAT1_PIN_CONFIG
#define RT1011_ADCDAT1_OUTPUT
#define RT1011_ADCDAT1_INPUT
#define RT1011_ADCDAT2_PIN_CONFIG
#define RT1011_ADCDAT2_OUTPUT
#define RT1011_ADCDAT2_INPUT
#define RT1011_I2S_TDM_DF_MASK
#define RT1011_I2S_TDM_DF_SFT
#define RT1011_I2S_TDM_DF_I2S
#define RT1011_I2S_TDM_DF_LEFT
#define RT1011_I2S_TDM_DF_PCM_A
#define RT1011_I2S_TDM_DF_PCM_B
#define RT1011_I2S_TDM_DF_PCM_A_N
#define RT1011_I2S_TDM_DF_PCM_B_N

/* TDM_tcon Setting (0x0112) */
#define RT1011_TCON_DF_MASK
#define RT1011_TCON_DF_SFT
#define RT1011_TCON_DF_I2S
#define RT1011_TCON_DF_LEFT
#define RT1011_TCON_DF_PCM_A
#define RT1011_TCON_DF_PCM_B
#define RT1011_TCON_DF_PCM_A_N
#define RT1011_TCON_DF_PCM_B_N
#define RT1011_TCON_BCLK_SEL_MASK
#define RT1011_TCON_BCLK_SEL_SFT
#define RT1011_TCON_BCLK_SEL_32FS
#define RT1011_TCON_BCLK_SEL_64FS
#define RT1011_TCON_BCLK_SEL_128FS
#define RT1011_TCON_BCLK_SEL_256FS
#define RT1011_TCON_CH_LEN_MASK
#define RT1011_TCON_CH_LEN_SFT
#define RT1011_TCON_CH_LEN_16B
#define RT1011_TCON_CH_LEN_20B
#define RT1011_TCON_CH_LEN_24B
#define RT1011_TCON_CH_LEN_32B
#define RT1011_TCON_BCLK_MST_MASK
#define RT1011_TCON_BCLK_MST_SFT
#define RT1011_TCON_BCLK_MST_INV

/* TDM1 Setting-1 (0x0114) */
#define RT1011_TDM_INV_BCLK_MASK
#define RT1011_TDM_INV_BCLK_SFT
#define RT1011_TDM_INV_BCLK
#define RT1011_I2S_CH_TX_MASK
#define RT1011_I2S_CH_TX_SFT
#define RT1011_I2S_TX_2CH
#define RT1011_I2S_TX_4CH
#define RT1011_I2S_TX_6CH
#define RT1011_I2S_TX_8CH
#define RT1011_I2S_CH_RX_MASK
#define RT1011_I2S_CH_RX_SFT
#define RT1011_I2S_RX_2CH
#define RT1011_I2S_RX_4CH
#define RT1011_I2S_RX_6CH
#define RT1011_I2S_RX_8CH
#define RT1011_I2S_LR_CH_SEL_MASK
#define RT1011_I2S_LR_CH_SEL_SFT
#define RT1011_I2S_LEFT_CH_SEL
#define RT1011_I2S_RIGHT_CH_SEL
#define RT1011_I2S_CH_TX_LEN_MASK
#define RT1011_I2S_CH_TX_LEN_SFT
#define RT1011_I2S_CH_TX_LEN_16B
#define RT1011_I2S_CH_TX_LEN_20B
#define RT1011_I2S_CH_TX_LEN_24B
#define RT1011_I2S_CH_TX_LEN_32B
#define RT1011_I2S_CH_TX_LEN_8B
#define RT1011_I2S_CH_RX_LEN_MASK
#define RT1011_I2S_CH_RX_LEN_SFT
#define RT1011_I2S_CH_RX_LEN_16B
#define RT1011_I2S_CH_RX_LEN_20B
#define RT1011_I2S_CH_RX_LEN_24B
#define RT1011_I2S_CH_RX_LEN_32B
#define RT1011_I2S_CH_RX_LEN_8B

/* TDM1 Setting-2 (0x0116) */
#define RT1011_TDM_I2S_DOCK_ADCDAT_LEN_1_MASK
#define RT1011_TDM_I2S_DOCK_ADCDAT_2CH
#define RT1011_TDM_I2S_DOCK_ADCDAT_4CH
#define RT1011_TDM_I2S_DOCK_ADCDAT_6CH
#define RT1011_TDM_I2S_DOCK_ADCDAT_8CH
#define RT1011_TDM_I2S_DOCK_EN_1_MASK
#define RT1011_TDM_I2S_DOCK_EN_1_SFT
#define RT1011_TDM_I2S_DOCK_EN_1
#define RT1011_TDM_ADCDAT1_DATA_LOCATION

/* TDM1 Setting-3 (0x0118) */
#define RT1011_TDM_I2S_RX_ADC1_1_MASK
#define RT1011_TDM_I2S_RX_ADC2_1_MASK
#define RT1011_TDM_I2S_RX_ADC3_1_MASK
#define RT1011_TDM_I2S_RX_ADC4_1_MASK
#define RT1011_TDM_I2S_RX_ADC1_1_LL
#define RT1011_TDM_I2S_RX_ADC2_1_LL
#define RT1011_TDM_I2S_RX_ADC3_1_LL
#define RT1011_TDM_I2S_RX_ADC4_1_LL

/* TDM1 Setting-4 (0x011a) */
#define RT1011_TDM_I2S_TX_L_DAC1_1_MASK
#define RT1011_TDM_I2S_TX_R_DAC1_1_MASK
#define RT1011_TDM_I2S_TX_L_DAC1_1_SFT
#define RT1011_TDM_I2S_TX_R_DAC1_1_SFT

/* TDM2 Setting-2 (0x0120) */
#define RT1011_TDM_I2S_DOCK_ADCDAT_LEN_2_MASK
#define RT1011_TDM_I2S_DOCK_EN_2_MASK
#define RT1011_TDM_I2S_DOCK_EN_2_SFT
#define RT1011_TDM_I2S_DOCK_EN_2

/* MIXER 1 (0x0300) */
#define RT1011_MIXER_MUTE_MIX_I_MASK
#define RT1011_MIXER_MUTE_MIX_I_SFT
#define RT1011_MIXER_MUTE_MIX_I
#define RT1011_MIXER_MUTE_SUM_I_MASK
#define RT1011_MIXER_MUTE_SUM_I_SFT
#define RT1011_MIXER_MUTE_SUM_I
#define RT1011_MIXER_MUTE_MIX_V_MASK
#define RT1011_MIXER_MUTE_MIX_V_SFT
#define RT1011_MIXER_MUTE_MIX_V
#define RT1011_MIXER_MUTE_SUM_V_MASK
#define RT1011_MIXER_MUTE_SUM_V_SFT
#define RT1011_MIXER_MUTE_SUM_V

/* Analog Temperature Sensor (0x0316) */
#define RT1011_POW_TEMP_REG
#define RT1011_POW_TEMP_REG_BIT

/* POWER-1 (0x0322) */
#define RT1011_POW_LDO2
#define RT1011_POW_LDO2_BIT
#define RT1011_POW_DAC
#define RT1011_POW_DAC_BIT
#define RT1011_POW_CLK12M
#define RT1011_POW_CLK12M_BIT
#define RT1011_POW_TEMP
#define RT1011_POW_TEMP_BIT
#define RT1011_POW_ISENSE_SPK
#define RT1011_POW_ISENSE_SPK_BIT
#define RT1011_POW_LPF_SPK
#define RT1011_POW_LPF_SPK_BIT
#define RT1011_POW_VSENSE_SPK
#define RT1011_POW_VSENSE_SPK_BIT
#define RT1011_POW_TWO_BATTERY_SPK
#define RT1011_POW_TWO_BATTERY_SPK_BIT

/* POWER-2 (0x0324) */
#define RT1011_PLLEN
#define RT1011_PLLEN_BIT
#define RT1011_POW_BG
#define RT1011_POW_BG_BIT
#define RT1011_POW_BG_MBIAS_LV
#define RT1011_POW_BG_MBIAS_LV_BIT

/* POWER-3 (0x0326) */
#define RT1011_POW_DET_SPKVDD
#define RT1011_POW_DET_SPKVDD_BIT
#define RT1011_POW_DET_VBAT
#define RT1011_POW_DET_VBAT_BIT
#define RT1011_POW_FC
#define RT1011_POW_FC_BIT
#define RT1011_POW_MBIAS_LV
#define RT1011_POW_MBIAS_LV_BIT
#define RT1011_POW_ADC_I
#define RT1011_POW_ADC_I_BIT
#define RT1011_POW_ADC_V
#define RT1011_POW_ADC_V_BIT
#define RT1011_POW_ADC_T
#define RT1011_POW_ADC_T_BIT
#define RT1011_POWD_ADC_T
#define RT1011_POWD_ADC_T_BIT
#define RT1011_POW_MIX_I
#define RT1011_POW_MIX_I_BIT
#define RT1011_POW_MIX_V
#define RT1011_POW_MIX_V_BIT
#define RT1011_POW_SUM_I
#define RT1011_POW_SUM_I_BIT
#define RT1011_POW_SUM_V
#define RT1011_POW_SUM_V_BIT
#define RT1011_POW_MIX_T
#define RT1011_POW_MIX_T_BIT
#define RT1011_BYPASS_MIX_T
#define RT1011_BYPASS_MIX_T_BIT
#define RT1011_POW_VREF_LV
#define RT1011_POW_VREF_LV_BIT

/* POWER-4 (0x0328) */
#define RT1011_POW_EN_SWR
#define RT1011_POW_EN_SWR_BIT
#define RT1011_POW_EN_PASS_BGOK_SWR
#define RT1011_POW_EN_PASS_BGOK_SWR_BIT
#define RT1011_POW_EN_PASS_VPOK_SWR
#define RT1011_POW_EN_PASS_VPOK_SWR_BIT

/* POWER-9 (0x032d) */
#define RT1011_POW_SDB_REG_MASK
#define RT1011_POW_SDB_REG_BIT
#define RT1011_POW_SDB_REG
#define RT1011_POW_SEL_SDB_MODE_MASK
#define RT1011_POW_SEL_SDB_MODE_BIT
#define RT1011_POW_SEL_SDB_MODE
#define RT1011_POW_MNL_SDB_MASK
#define RT1011_POW_MNL_SDB_BIT
#define RT1011_POW_MNL_SDB

/* SPK Protection-Temperature Protection (0x050c) */
#define RT1011_STP_EN_MASK
#define RT1011_STP_EN_BIT
#define RT1011_STP_EN
#define RT1011_STP_RS_CLB_EN_MASK
#define RT1011_STP_RS_CLB_EN_BIT
#define RT1011_STP_RS_CLB_EN

/* SPK Protection-Temperature Protection-4 (0x0510) */
#define RT1011_STP_R0_SELECT_MASK
#define RT1011_STP_R0_SELECT_EFUSE
#define RT1011_STP_R0_SELECT_START_VAL
#define RT1011_STP_R0_SELECT_REG
#define RT1011_STP_R0_SELECT_FORCE_ZERO

/* SPK Protection-Temperature Protection-6 (0x0512) */
#define RT1011_STP_R0_EN_MASK
#define RT1011_STP_R0_EN_BIT
#define RT1011_STP_R0_EN
#define RT1011_STP_T0_EN_MASK
#define RT1011_STP_T0_EN_BIT
#define RT1011_STP_T0_EN

/* Cross Biquad Setting-1 (0x0702) */
#define RT1011_MONO_LR_SEL_MASK
#define RT1011_MONO_L_CHANNEL
#define RT1011_MONO_R_CHANNEL
#define RT1011_MONO_LR_MIX_CHANNEL

/* ClassD Internal Setting-1 (0x1300) */
#define RT1011_DRIVER_READY_SPK
#define RT1011_DRIVER_READY_SPK_BIT
#define RT1011_RECV_MODE_SPK_MASK
#define RT1011_SPK_MODE
#define RT1011_RECV_MODE
#define RT1011_RECV_MODE_SPK_BIT

/* ClassD Internal Setting-3 (0x1304) */
#define RT1011_REG_GAIN_CLASSD_RI_SPK_MASK
#define RT1011_REG_GAIN_CLASSD_RI_410K
#define RT1011_REG_GAIN_CLASSD_RI_95K
#define RT1011_REG_GAIN_CLASSD_RI_82P5K
#define RT1011_REG_GAIN_CLASSD_RI_72P5K
#define RT1011_REG_GAIN_CLASSD_RI_62P5K

/* ClassD Internal Setting-8 (0x130c) */
#define RT1011_TM_PORPVDD_SPK
#define RT1011_TM_PORPVDD_SPK_BIT

/* SPK Protection-Temperature Protection-SINE_GEN_REG-1 (0x1500) */
#define RT1011_STP_SIN_GEN_EN_MASK
#define RT1011_STP_SIN_GEN_EN
#define RT1011_STP_SIN_GEN_EN_BIT


/* System Clock Source */
enum {};

/* PLL Source 1/2 */
enum {};

enum {};

enum {};

/* BiQual & DRC related settings */
#define RT1011_BQ_DRC_NUM
struct rt1011_bq_drc_params {};
enum {};

struct rt1011_priv {};

#endif		/* end of _RT1011_H_ */