1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Copyright (c) 2018-2021, The Linux Foundati 4 * Copyright (c) 2022 Qualcomm Innovation Cent 5 */ 6 7 #ifndef __WCD939X_H__ 8 #define __WCD939X_H__ 9 #include <linux/soundwire/sdw.h> 10 #include <linux/soundwire/sdw_type.h> 11 12 #define WCD939X_BASE 13 #define WCD939X_ANA_PAGE 14 #define WCD939X_ANA_BIAS 15 #define WCD939X_BIAS_ANALOG_BIAS_EN BIT(7) 16 #define WCD939X_BIAS_PRECHRG_EN BIT(6) 17 #define WCD939X_BIAS_PRECHRG_CTL_MODE BIT(5) 18 #define WCD939X_ANA_RX_SUPPLIES 19 #define WCD939X_RX_SUPPLIES_VPOS_EN BIT(7) 20 #define WCD939X_RX_SUPPLIES_VNEG_EN BIT(6) 21 #define WCD939X_RX_SUPPLIES_VPOS_PWR_LVL 22 #define WCD939X_RX_SUPPLIES_VNEG_PWR_LVL 23 #define WCD939X_RX_SUPPLIES_REGULATOR_MODE 24 #define WCD939X_RX_SUPPLIES_RX_BIAS_ENABLE 25 #define WCD939X_ANA_HPH 26 #define WCD939X_HPH_HPHL_ENABLE BIT(7) 27 #define WCD939X_HPH_HPHR_ENABLE BIT(6) 28 #define WCD939X_HPH_HPHL_REF_ENABLE BIT(5) 29 #define WCD939X_HPH_HPHR_REF_ENABLE BIT(4) 30 #define WCD939X_HPH_PWR_LEVEL GENMASK(3, 2) 31 #define WCD939X_ANA_EAR 32 #define WCD939X_ANA_EAR_COMPANDER_CTL 33 #define WCD939X_EAR_COMPANDER_CTL_GAIN_OVRD_RE 34 #define WCD939X_EAR_COMPANDER_CTL_EAR_GAIN 35 #define WCD939X_EAR_COMPANDER_CTL_COMP_DFF_BYP 36 #define WCD939X_EAR_COMPANDER_CTL_COMP_DFF_CLK 37 #define WCD939X_ANA_TX_CH1 38 #define WCD939X_ANA_TX_CH2 39 #define WCD939X_TX_CH2_ENABLE BIT(7) 40 #define WCD939X_TX_CH2_HPF1_INIT BIT(6) 41 #define WCD939X_TX_CH2_HPF2_INIT BIT(5) 42 #define WCD939X_TX_CH2_GAIN GENMASK(4, 0) 43 #define WCD939X_ANA_TX_CH3 44 #define WCD939X_ANA_TX_CH4 45 #define WCD939X_TX_CH4_ENABLE BIT(7) 46 #define WCD939X_TX_CH4_HPF3_INIT BIT(6) 47 #define WCD939X_TX_CH4_HPF4_INIT BIT(5) 48 #define WCD939X_TX_CH4_GAIN GENMASK(4, 0) 49 #define WCD939X_ANA_MICB1_MICB2_DSP_EN_LOGIC 50 #define WCD939X_ANA_MICB3_DSP_EN_LOGIC 51 #define WCD939X_ANA_MBHC_MECH 52 #define WCD939X_MBHC_MECH_L_DET_EN BIT(7) 53 #define WCD939X_MBHC_MECH_GND_DET_EN BIT(6) 54 #define WCD939X_MBHC_MECH_MECH_DETECT_TYPE 55 #define WCD939X_MBHC_MECH_HPHL_PLUG_TYPE 56 #define WCD939X_MBHC_MECH_GND_PLUG_TYPE BIT(3) 57 #define WCD939X_MBHC_MECH_MECH_HS_L_PULLUP_COM 58 #define WCD939X_MBHC_MECH_MECH_HS_G_PULLUP_COM 59 #define WCD939X_MBHC_MECH_SW_HPH_L_P_100K_TO_G 60 #define WCD939X_ANA_MBHC_ELECT 61 #define WCD939X_MBHC_ELECT_FSM_EN BIT(7) 62 #define WCD939X_MBHC_ELECT_BTNDET_ISRC_CTL 63 #define WCD939X_MBHC_ELECT_ELECT_DET_TYPE 64 #define WCD939X_MBHC_ELECT_ELECT_SCHMT_ISRC_CT 65 #define WCD939X_MBHC_ELECT_BIAS_EN BIT(0) 66 #define WCD939X_ANA_MBHC_ZDET 67 #define WCD939X_MBHC_ZDET_ZDET_L_MEAS_EN 68 #define WCD939X_MBHC_ZDET_ZDET_R_MEAS_EN 69 #define WCD939X_MBHC_ZDET_ZDET_CHG_EN BIT(5) 70 #define WCD939X_MBHC_ZDET_ZDET_ILEAK_COMP_EN 71 #define WCD939X_MBHC_ZDET_ELECT_ISRC_EN BIT(1) 72 #define WCD939X_ANA_MBHC_RESULT_1 73 #define WCD939X_MBHC_RESULT_1_Z_RESULT_LSB 74 #define WCD939X_ANA_MBHC_RESULT_2 75 #define WCD939X_MBHC_RESULT_2_Z_RESULT_MSB 76 #define WCD939X_ANA_MBHC_RESULT_3 77 #define WCD939X_ANA_MBHC_BTN0 78 #define WCD939X_MBHC_BTN0_VTH GENMASK(7, 2) 79 #define WCD939X_ANA_MBHC_BTN1 80 #define WCD939X_MBHC_BTN1_VTH GENMASK(7, 2) 81 #define WCD939X_ANA_MBHC_BTN2 82 #define WCD939X_MBHC_BTN2_VTH GENMASK(7, 2) 83 #define WCD939X_ANA_MBHC_BTN3 84 #define WCD939X_MBHC_BTN3_VTH GENMASK(7, 2) 85 #define WCD939X_ANA_MBHC_BTN4 86 #define WCD939X_MBHC_BTN4_VTH GENMASK(7, 2) 87 #define WCD939X_ANA_MBHC_BTN5 88 #define WCD939X_MBHC_BTN5_VTH GENMASK(7, 2) 89 #define WCD939X_ANA_MBHC_BTN6 90 #define WCD939X_MBHC_BTN6_VTH GENMASK(7, 2) 91 #define WCD939X_ANA_MBHC_BTN7 92 #define WCD939X_MBHC_BTN7_VTH GENMASK(7, 2) 93 #define WCD939X_ANA_MICB1 94 #define WCD939X_MICB_ENABLE GENMASK(7, 6) 95 #define WCD939X_MICB_VOUT_CTL GENMASK(5, 0) 96 #define WCD939X_ANA_MICB2 97 #define WCD939X_ANA_MICB2_RAMP 98 #define WCD939X_MICB2_RAMP_RAMP_ENABLE BIT(7) 99 #define WCD939X_MICB2_RAMP_MB2_IN2P_SHORT_ENAB 100 #define WCD939X_MICB2_RAMP_ALLSW_OVRD_ENABLE 101 #define WCD939X_MICB2_RAMP_SHIFT_CTL GENMAS 102 #define WCD939X_MICB2_RAMP_USB_MGDET_MICB2_RAM 103 #define WCD939X_ANA_MICB3 104 #define WCD939X_ANA_MICB4 105 #define WCD939X_BIAS_CTL 106 #define WCD939X_BIAS_VBG_FINE_ADJ 107 #define WCD939X_LDOL_VDDCX_ADJUST 108 #define WCD939X_LDOL_DISABLE_LDOL 109 #define WCD939X_MBHC_CTL_CLK 110 #define WCD939X_MBHC_CTL_ANA 111 #define WCD939X_MBHC_ZDET_VNEG_CTL 112 #define WCD939X_MBHC_ZDET_BIAS_CTL 113 #define WCD939X_MBHC_CTL_BCS 114 #define WCD939X_MBHC_MOISTURE_DET_FSM_STATUS 115 #define WCD939X_MBHC_TEST_CTL 116 #define WCD939X_LDOH_MODE 117 #define WCD939X_MODE_LDOH_EN BIT(7) 118 #define WCD939X_MODE_PWRDN_STATE BIT(6) 119 #define WCD939X_MODE_SLOWRAMP_EN BIT(5) 120 #define WCD939X_MODE_VOUT_ADJUST GENMAS 121 #define WCD939X_MODE_VOUT_COARSE_ADJ GENMAS 122 #define WCD939X_LDOH_BIAS 123 #define WCD939X_LDOH_STB_LOADS 124 #define WCD939X_LDOH_SLOWRAMP 125 #define WCD939X_MICB1_TEST_CTL_1 126 #define WCD939X_TEST_CTL_1_NOISE_FILT_RES_VAL 127 #define WCD939X_TEST_CTL_1_EN_VREFGEN BIT(4) 128 #define WCD939X_TEST_CTL_1_EN_LDO BIT(3) 129 #define WCD939X_TEST_CTL_1_LDO_BLEEDER_I_CTRL 130 #define WCD939X_MICB1_TEST_CTL_2 131 #define WCD939X_TEST_CTL_2_IBIAS_VREFGEN 132 #define WCD939X_TEST_CTL_2_INRUSH_CURRENT_FIX_ 133 #define WCD939X_TEST_CTL_2_IBIAS_LDO_DRIVER 134 #define WCD939X_MICB1_TEST_CTL_3 135 #define WCD939X_TEST_CTL_3_CFILT_REF_EN BIT(7) 136 #define WCD939X_TEST_CTL_3_RZ_LDO_VAL GENMAS 137 #define WCD939X_TEST_CTL_3_IBIAS_LDO_STG3 138 #define WCD939X_TEST_CTL_3_ATEST_CTRL GENMAS 139 #define WCD939X_MICB2_TEST_CTL_1 140 #define WCD939X_MICB2_TEST_CTL_2 141 #define WCD939X_MICB2_TEST_CTL_3 142 #define WCD939X_MICB3_TEST_CTL_1 143 #define WCD939X_MICB3_TEST_CTL_2 144 #define WCD939X_MICB3_TEST_CTL_3 145 #define WCD939X_MICB4_TEST_CTL_1 146 #define WCD939X_MICB4_TEST_CTL_2 147 #define WCD939X_MICB4_TEST_CTL_3 148 #define WCD939X_TX_COM_ADC_VCM 149 #define WCD939X_TX_COM_BIAS_ATEST 150 #define WCD939X_TX_COM_SPARE1 151 #define WCD939X_TX_COM_SPARE2 152 #define WCD939X_TX_COM_TXFE_DIV_CTL 153 #define WCD939X_TX_COM_TXFE_DIV_START 154 #define WCD939X_TX_COM_SPARE3 155 #define WCD939X_TX_COM_SPARE4 156 #define WCD939X_TX_1_2_TEST_EN 157 #define WCD939X_TX_1_2_ADC_IB 158 #define WCD939X_TX_1_2_ATEST_REFCTL 159 #define WCD939X_TX_1_2_TEST_CTL 160 #define WCD939X_TX_1_2_TEST_BLK_EN1 161 #define WCD939X_TX_1_2_TXFE1_CLKDIV 162 #define WCD939X_TX_1_2_SAR2_ERR 163 #define WCD939X_TX_1_2_SAR1_ERR 164 #define WCD939X_TX_3_4_TEST_EN 165 #define WCD939X_TX_3_4_ADC_IB 166 #define WCD939X_TX_3_4_ATEST_REFCTL 167 #define WCD939X_TX_3_4_TEST_CTL 168 #define WCD939X_TX_3_4_TEST_BLK_EN3 169 #define WCD939X_TX_3_4_TXFE3_CLKDIV 170 #define WCD939X_TX_3_4_SAR4_ERR 171 #define WCD939X_TX_3_4_SAR3_ERR 172 #define WCD939X_TX_3_4_TEST_BLK_EN2 173 #define WCD939X_TEST_BLK_EN2_ADC2_INT1_EN 174 #define WCD939X_TEST_BLK_EN2_ADC2_INT2_EN 175 #define WCD939X_TEST_BLK_EN2_ADC2_SAR_EN 176 #define WCD939X_TEST_BLK_EN2_ADC2_CMGEN_EN 177 #define WCD939X_TEST_BLK_EN2_ADC2_CLKGEN_EN 178 #define WCD939X_TEST_BLK_EN2_ADC12_VREF_NONL2 179 #define WCD939X_TEST_BLK_EN2_TXFE2_MBHC_CLKRST 180 #define WCD939X_TX_3_4_TXFE2_CLKDIV 181 #define WCD939X_TX_3_4_SPARE1 182 #define WCD939X_TX_3_4_TEST_BLK_EN4 183 #define WCD939X_TX_3_4_TXFE4_CLKDIV 184 #define WCD939X_TX_3_4_SPARE2 185 #define WCD939X_CLASSH_MODE_1 186 #define WCD939X_CLASSH_MODE_2 187 #define WCD939X_CLASSH_MODE_3 188 #define WCD939X_CLASSH_CTRL_VCL_1 189 #define WCD939X_CLASSH_CTRL_VCL_2 190 #define WCD939X_CLASSH_CTRL_CCL_1 191 #define WCD939X_CLASSH_CTRL_CCL_2 192 #define WCD939X_CLASSH_CTRL_CCL_3 193 #define WCD939X_CLASSH_CTRL_CCL_4 194 #define WCD939X_CLASSH_CTRL_CCL_5 195 #define WCD939X_CLASSH_BUCK_TMUX_A_D 196 #define WCD939X_CLASSH_BUCK_SW_DRV_CNTL 197 #define WCD939X_CLASSH_SPARE 198 #define WCD939X_FLYBACK_EN 199 #define WCD939X_FLYBACK_VNEG_CTRL_1 200 #define WCD939X_FLYBACK_VNEG_CTRL_2 201 #define WCD939X_FLYBACK_VNEG_CTRL_3 202 #define WCD939X_FLYBACK_VNEG_CTRL_4 203 #define WCD939X_VNEG_CTRL_4_ILIM_SEL GENMAS 204 #define WCD939X_VNEG_CTRL_4_PW_BUF_POS GENMAS 205 #define WCD939X_VNEG_CTRL_4_PW_BUF_NEG GENMAS 206 #define WCD939X_FLYBACK_VNEG_CTRL_5 207 #define WCD939X_FLYBACK_VNEG_CTRL_6 208 #define WCD939X_FLYBACK_VNEG_CTRL_7 209 #define WCD939X_FLYBACK_VNEG_CTRL_8 210 #define WCD939X_FLYBACK_VNEG_CTRL_9 211 #define WCD939X_FLYBACK_VNEGDAC_CTRL_1 212 #define WCD939X_FLYBACK_VNEGDAC_CTRL_2 213 #define WCD939X_FLYBACK_VNEGDAC_CTRL_3 214 #define WCD939X_FLYBACK_CTRL_1 215 #define WCD939X_FLYBACK_TEST_CTL 216 #define WCD939X_RX_AUX_SW_CTL 217 #define WCD939X_RX_PA_AUX_IN_CONN 218 #define WCD939X_RX_TIMER_DIV 219 #define WCD939X_RX_OCP_CTL 220 #define WCD939X_RX_OCP_COUNT 221 #define WCD939X_RX_BIAS_EAR_DAC 222 #define WCD939X_RX_BIAS_EAR_AMP 223 #define WCD939X_RX_BIAS_HPH_LDO 224 #define WCD939X_RX_BIAS_HPH_PA 225 #define WCD939X_RX_BIAS_HPH_RDACBUFF_CNP2 226 #define WCD939X_RX_BIAS_HPH_RDAC_LDO 227 #define WCD939X_RX_BIAS_HPH_CNP1 228 #define WCD939X_RX_BIAS_HPH_LOWPOWER 229 #define WCD939X_RX_BIAS_AUX_DAC 230 #define WCD939X_RX_BIAS_AUX_AMP 231 #define WCD939X_RX_BIAS_VNEGDAC_BLEEDER 232 #define WCD939X_RX_BIAS_MISC 233 #define WCD939X_RX_BIAS_BUCK_RST 234 #define WCD939X_RX_BIAS_BUCK_VREF_ERRAMP 235 #define WCD939X_RX_BIAS_FLYB_ERRAMP 236 #define WCD939X_RX_BIAS_FLYB_BUFF 237 #define WCD939X_RX_BIAS_FLYB_MID_RST 238 #define WCD939X_HPH_L_STATUS 239 #define WCD939X_HPH_R_STATUS 240 #define WCD939X_HPH_CNP_EN 241 #define WCD939X_HPH_CNP_WG_CTL 242 #define WCD939X_HPH_CNP_WG_TIME 243 #define WCD939X_HPH_OCP_CTL 244 #define WCD939X_OCP_CTL_OCP_CURR_LIMIT GENMAS 245 #define WCD939X_OCP_CTL_OCP_FSM_EN BIT(4) 246 #define WCD939X_OCP_CTL_SPARE_BITS BIT(3) 247 #define WCD939X_OCP_CTL_SCD_OP_EN BIT(1) 248 #define WCD939X_HPH_AUTO_CHOP 249 #define WCD939X_HPH_CHOP_CTL 250 #define WCD939X_HPH_PA_CTL1 251 #define WCD939X_HPH_PA_CTL2 252 #define WCD939X_PA_CTL2_HPHPA_GND_R BIT(6) 253 #define WCD939X_PA_CTL2_HPHPA_GND_L BIT(4) 254 #define WCD939X_PA_CTL2_GM3_CASCODE_CTL_NORMAL 255 #define WCD939X_HPH_L_EN 256 #define WCD939X_L_EN_CONST_SEL_L GENMAS 257 #define WCD939X_L_EN_GAIN_SOURCE_SEL BIT(5) 258 #define WCD939X_L_EN_SPARE_BITS GENMASK(4, 0) 259 #define WCD939X_HPH_L_TEST 260 #define WCD939X_HPH_L_ATEST 261 #define WCD939X_HPH_R_EN 262 #define WCD939X_R_EN_CONST_SEL_R GENMAS 263 #define WCD939X_R_EN_GAIN_SOURCE_SEL BIT(5) 264 #define WCD939X_R_EN_SPARE_BITS GENMASK(4, 0) 265 #define WCD939X_HPH_R_TEST 266 #define WCD939X_HPH_R_ATEST 267 #define WCD939X_R_ATEST_DACR_REF_ATEST1_CONN 268 #define WCD939X_R_ATEST_LDO1_R_ATEST2_CONN 269 #define WCD939X_R_ATEST_LDO_R_ATEST2_CAL 270 #define WCD939X_R_ATEST_LDO2_R_ATEST2_CONN 271 #define WCD939X_R_ATEST_LDO_1P65V_ATEST1_CONN 272 #define WCD939X_R_ATEST_HPH_GND_OVR BIT(1) 273 #define WCD939X_HPH_RDAC_CLK_CTL1 274 #define WCD939X_RDAC_CLK_CTL1_OPAMP_CHOP_CLK_E 275 #define WCD939X_RDAC_CLK_CTL1_OPAMP_CHOP_CLK_D 276 #define WCD939X_RDAC_CLK_CTL1_SPARE_BITS 277 #define WCD939X_HPH_RDAC_CLK_CTL2 278 #define WCD939X_HPH_RDAC_LDO_CTL 279 #define WCD939X_HPH_RDAC_CHOP_CLK_LP_CTL 280 #define WCD939X_HPH_REFBUFF_UHQA_CTL 281 #define WCD939X_REFBUFF_UHQA_CTL_SPARE_BITS 282 #define WCD939X_REFBUFF_UHQA_CTL_HPH_VNEGREG2_ 283 #define WCD939X_REFBUFF_UHQA_CTL_REFBUFN_RBIAS 284 #define WCD939X_REFBUFF_UHQA_CTL_REFBUFP_IOUT_ 285 #define WCD939X_REFBUFF_UHQA_CTL_REFBUFN_IOUT_ 286 #define WCD939X_HPH_REFBUFF_LP_CTL 287 #define WCD939X_REFBUFF_LP_CTL_HPH_VNEGREG2_CU 288 #define WCD939X_REFBUFF_LP_CTL_SPARE_BITS 289 #define WCD939X_REFBUFF_LP_CTL_EN_PREREF_FILT_ 290 #define WCD939X_REFBUFF_LP_CTL_PREREF_FILT_STA 291 #define WCD939X_REFBUFF_LP_CTL_PREREF_FILT_BYP 292 #define WCD939X_HPH_L_DAC_CTL 293 #define WCD939X_HPH_R_DAC_CTL 294 #define WCD939X_HPH_SURGE_COMP_SEL 295 #define WCD939X_HPH_SURGE_EN 296 #define WCD939X_EN_EN_SURGE_PROTECTION_HPHL 297 #define WCD939X_EN_EN_SURGE_PROTECTION_HPHR 298 #define WCD939X_EN_SEL_SURGE_COMP_IQ GENMAS 299 #define WCD939X_EN_SURGE_VOLT_MODE_SHUTOFF_EN 300 #define WCD939X_EN_LATCH_INTR_OP_STG_HIZ_EN 301 #define WCD939X_EN_SURGE_LATCH_REG_RESET 302 #define WCD939X_EN_SWTICH_VN_VNDAC_NSURGE_EN 303 #define WCD939X_HPH_SURGE_MISC1 304 #define WCD939X_HPH_SURGE_STATUS 305 #define WCD939X_EAR_EN 306 #define WCD939X_EAR_PA_CON 307 #define WCD939X_EAR_SP_CON 308 #define WCD939X_EAR_DAC_CON 309 #define WCD939X_DAC_CON_DAC_SAMPLE_EDGE_SEL 310 #define WCD939X_DAC_CON_REF_DBG_EN BIT(6) 311 #define WCD939X_DAC_CON_REF_DBG_GAIN GENMAS 312 #define WCD939X_DAC_CON_GAIN_DAC GENMAS 313 #define WCD939X_DAC_CON_INV_DATA BIT(0) 314 #define WCD939X_EAR_CNP_FSM_CON 315 #define WCD939X_EAR_TEST_CTL 316 #define WCD939X_EAR_STATUS_REG_1 317 #define WCD939X_EAR_STATUS_REG_2 318 #define WCD939X_FLYBACK_NEW_CTRL_2 319 #define WCD939X_FLYBACK_NEW_CTRL_3 320 #define WCD939X_FLYBACK_NEW_CTRL_4 321 #define WCD939X_ANA_NEW_PAGE 322 #define WCD939X_HPH_NEW_ANA_HPH2 323 #define WCD939X_HPH_NEW_ANA_HPH3 324 #define WCD939X_SLEEP_CTL 325 #define WCD939X_SLEEP_WATCHDOG_CTL 326 #define WCD939X_MBHC_NEW_ELECT_REM_CLAMP_CTL 327 #define WCD939X_MBHC_NEW_CTL_1 328 #define WCD939X_CTL_1_RCO_EN BIT(7) 329 #define WCD939X_CTL_1_ADC_MODE BIT(4) 330 #define WCD939X_CTL_1_ADC_ENABLE BIT(3) 331 #define WCD939X_CTL_1_DETECTION_DONE BIT(2) 332 #define WCD939X_CTL_1_BTN_DBNC_CTL GENMAS 333 #define WCD939X_MBHC_NEW_CTL_2 334 #define WCD939X_CTL_2_MUX_CTL GENMASK(6, 4) 335 #define WCD939X_CTL_2_M_RTH_CTL GENMASK(3, 2) 336 #define WCD939X_CTL_2_HS_VREF_CTL GENMAS 337 #define WCD939X_MBHC_NEW_PLUG_DETECT_CTL 338 #define WCD939X_MBHC_NEW_ZDET_ANA_CTL 339 #define WCD939X_ZDET_ANA_CTL_AVERAGING_EN 340 #define WCD939X_ZDET_ANA_CTL_MAXV_CTL GENMAS 341 #define WCD939X_ZDET_ANA_CTL_RANGE_CTL GENMAS 342 #define WCD939X_MBHC_NEW_ZDET_RAMP_CTL 343 #define WCD939X_ZDET_RAMP_CTL_ACC1_MIN_CTL 344 #define WCD939X_ZDET_RAMP_CTL_TIME_CTL GENMAS 345 #define WCD939X_MBHC_NEW_FSM_STATUS 346 #define WCD939X_FSM_STATUS_ADC_TIMEOUT BIT(7) 347 #define WCD939X_FSM_STATUS_ADC_COMPLETE BIT(6) 348 #define WCD939X_FSM_STATUS_HS_M_COMP_STATUS 349 #define WCD939X_FSM_STATUS_FAST_PRESS_FLAG_STA 350 #define WCD939X_FSM_STATUS_FAST_REMOVAL_FLAG_S 351 #define WCD939X_FSM_STATUS_REMOVAL_FLAG_STATUS 352 #define WCD939X_FSM_STATUS_ELECT_REM_RT_STATUS 353 #define WCD939X_FSM_STATUS_BTN_STATUS BIT(0) 354 #define WCD939X_MBHC_NEW_ADC_RESULT 355 #define WCD939X_ADC_RESULT_VALUE GENMAS 356 #define WCD939X_TX_NEW_CH12_MUX 357 #define WCD939X_TX_NEW_CH34_MUX 358 #define WCD939X_DIE_CRACK_DET_EN 359 #define WCD939X_DIE_CRACK_DET_OUT 360 #define WCD939X_HPH_NEW_INT_RDAC_GAIN_CTL 361 #define WCD939X_HPH_NEW_INT_PA_GAIN_CTL_L 362 #define WCD939X_PA_GAIN_CTL_L_EN_HPHPA_2VPK 363 #define WCD939X_PA_GAIN_CTL_L_RX_SUPPLY_LEVEL 364 #define WCD939X_PA_GAIN_CTL_L_DAC_DR_BOOST 365 #define WCD939X_PA_GAIN_CTL_L_VALUE GENMAS 366 #define WCD939X_HPH_NEW_INT_RDAC_VREF_CTL 367 #define WCD939X_HPH_NEW_INT_RDAC_OVERRIDE_CTL 368 #define WCD939X_HPH_NEW_INT_PA_GAIN_CTL_R 369 #define WCD939X_PA_GAIN_CTL_R_D_RCO_CLK_EN 370 #define WCD939X_PA_GAIN_CTL_R_SPARE_BITS 371 #define WCD939X_PA_GAIN_CTL_R_VALUE GENMAS 372 #define WCD939X_HPH_NEW_INT_PA_MISC1 373 #define WCD939X_HPH_NEW_INT_PA_MISC2 374 #define WCD939X_HPH_NEW_INT_PA_RDAC_MISC 375 #define WCD939X_HPH_NEW_INT_TIMER1 376 #define WCD939X_TIMER1_CURR_IDIV_CTL_CMPDR_OFF 377 #define WCD939X_TIMER1_CURR_IDIV_CTL_AUTOCHOP 378 #define WCD939X_TIMER1_AUTOCHOP_TIMER_CTL_EN 379 #define WCD939X_HPH_NEW_INT_TIMER2 380 #define WCD939X_HPH_NEW_INT_TIMER3 381 #define WCD939X_HPH_NEW_INT_TIMER4 382 #define WCD939X_HPH_NEW_INT_PA_RDAC_MISC2 383 #define WCD939X_HPH_NEW_INT_PA_RDAC_MISC3 384 #define WCD939X_HPH_NEW_INT_RDAC_HD2_CTL_L 385 #define WCD939X_RDAC_HD2_CTL_L_EN_HD2_RES_DIV_ 386 #define WCD939X_RDAC_HD2_CTL_L_HD2_RES_DIV_PUL 387 #define WCD939X_RDAC_HD2_CTL_L_HD2_RES_DIV_CTL 388 #define WCD939X_HPH_NEW_INT_RDAC_HD2_CTL_R 389 #define WCD939X_RDAC_HD2_CTL_R_EN_HD2_RES_DIV_ 390 #define WCD939X_RDAC_HD2_CTL_R_HD2_RES_DIV_PUL 391 #define WCD939X_RDAC_HD2_CTL_R_HD2_RES_DIV_CTL 392 #define WCD939X_RX_NEW_INT_HPH_RDAC_BIAS_LOHIF 393 #define WCD939X_RX_NEW_INT_HPH_RDAC_BIAS_ULP 394 #define WCD939X_RX_NEW_INT_HPH_RDAC_LDO_LP 395 #define WCD939X_MBHC_NEW_INT_MOISTURE_DET_DC_C 396 #define WCD939X_MOISTURE_DET_DC_CTRL_ONCOUNT 397 #define WCD939X_MOISTURE_DET_DC_CTRL_OFFCOUNT 398 #define WCD939X_MBHC_NEW_INT_MOISTURE_DET_POLL 399 #define WCD939X_MOISTURE_DET_POLLING_CTRL_HPHL 400 #define WCD939X_MOISTURE_DET_POLLING_CTRL_DTES 401 #define WCD939X_MOISTURE_DET_POLLING_CTRL_MOIS 402 #define WCD939X_MOISTURE_DET_POLLING_CTRL_MOIS 403 #define WCD939X_MOISTURE_DET_POLLING_CTRL_MOIS 404 #define WCD939X_MBHC_NEW_INT_MECH_DET_CURRENT 405 #define WCD939X_MECH_DET_CURRENT_HSDET_PULLUP_ 406 #define WCD939X_MBHC_NEW_INT_ZDET_CLK_AND_MOIS 407 #define WCD939X_EAR_INT_NEW_CHOPPER_CON 408 #define WCD939X_EAR_INT_NEW_CNP_VCM_CON1 409 #define WCD939X_EAR_INT_NEW_CNP_VCM_CON2 410 #define WCD939X_EAR_INT_NEW_DYNAMIC_BIAS 411 #define WCD939X_SLEEP_INT_WATCHDOG_CTL_1 412 #define WCD939X_SLEEP_INT_WATCHDOG_CTL_2 413 #define WCD939X_DIE_CRACK_INT_DET_INT1 414 #define WCD939X_DIE_CRACK_INT_DET_INT2 415 #define WCD939X_TX_COM_NEW_INT_FE_DIVSTOP_L2 416 #define WCD939X_TX_COM_NEW_INT_FE_DIVSTOP_L1 417 #define WCD939X_TX_COM_NEW_INT_FE_DIVSTOP_L0 418 #define WCD939X_TX_COM_NEW_INT_FE_DIVSTOP_ULP1 419 #define WCD939X_TX_COM_NEW_INT_FE_DIVSTOP_ULP0 420 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG1_L 421 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG1_L 422 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG1_U 423 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG2MA 424 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG2MA 425 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG2MA 426 #define WCD939X_FE_ICTRL_STG2MAIN_ULP_VALUE 427 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG2CA 428 #define WCD939X_TX_COM_NEW_INT_FE_ICTRL_STG2CA 429 #define WCD939X_FE_ICTRL_STG2CASC_ULP_ICTRL_SC 430 #define WCD939X_FE_ICTRL_STG2CASC_ULP_VALUE 431 #define WCD939X_TX_COM_NEW_INT_ADC_SCBIAS_L2L1 432 #define WCD939X_TX_COM_NEW_INT_ADC_SCBIAS_L0UL 433 #define WCD939X_TX_COM_NEW_INT_ADC_INT_L2 434 #define WCD939X_TX_COM_NEW_INT_ADC_INT_L1 435 #define WCD939X_TX_COM_NEW_INT_ADC_INT_L0 436 #define WCD939X_TX_COM_NEW_INT_ADC_INT_ULP 437 #define WCD939X_DIGITAL_PAGE 438 #define WCD939X_DIGITAL_CHIP_ID0 439 #define WCD939X_DIGITAL_CHIP_ID1 440 #define WCD939X_DIGITAL_CHIP_ID2 441 #define WCD939X_DIGITAL_CHIP_ID3 442 #define WCD939X_DIGITAL_SWR_TX_CLK_RATE 443 #define WCD939X_DIGITAL_CDC_RST_CTL 444 #define WCD939X_DIGITAL_TOP_CLK_CFG 445 #define WCD939X_DIGITAL_CDC_ANA_CLK_CTL 446 #define WCD939X_CDC_ANA_CLK_CTL_ANA_TX_DIV4_CL 447 #define WCD939X_CDC_ANA_CLK_CTL_ANA_TX_DIV2_CL 448 #define WCD939X_CDC_ANA_CLK_CTL_ANA_TX_CLK_EN 449 #define WCD939X_CDC_ANA_CLK_CTL_ANA_RX_DIV4_CL 450 #define WCD939X_CDC_ANA_CLK_CTL_ANA_RX_DIV2_CL 451 #define WCD939X_CDC_ANA_CLK_CTL_ANA_RX_CLK_EN 452 #define WCD939X_CDC_ANA_CLK_CTL_ANA_TX_DIV2_CL 453 #define WCD939X_DIGITAL_CDC_DIG_CLK_CTL 454 #define WCD939X_CDC_DIG_CLK_CTL_TXD3_CLK_EN 455 #define WCD939X_CDC_DIG_CLK_CTL_TXD2_CLK_EN 456 #define WCD939X_CDC_DIG_CLK_CTL_TXD1_CLK_EN 457 #define WCD939X_CDC_DIG_CLK_CTL_TXD0_CLK_EN 458 #define WCD939X_CDC_DIG_CLK_CTL_RXD2_CLK_EN 459 #define WCD939X_CDC_DIG_CLK_CTL_RXD1_CLK_EN 460 #define WCD939X_CDC_DIG_CLK_CTL_RXD0_CLK_EN 461 #define WCD939X_DIGITAL_SWR_RST_EN 462 #define WCD939X_DIGITAL_CDC_PATH_MODE 463 #define WCD939X_DIGITAL_CDC_RX_RST 464 #define WCD939X_DIGITAL_CDC_RX0_CTL 465 #define WCD939X_DIGITAL_CDC_RX1_CTL 466 #define WCD939X_DIGITAL_CDC_RX2_CTL 467 #define WCD939X_DIGITAL_CDC_TX_ANA_MODE_0_1 468 #define WCD939X_CDC_TX_ANA_MODE_0_1_TXD1_MODE 469 #define WCD939X_CDC_TX_ANA_MODE_0_1_TXD0_MODE 470 #define WCD939X_DIGITAL_CDC_TX_ANA_MODE_2_3 471 #define WCD939X_CDC_TX_ANA_MODE_2_3_TXD3_MODE 472 #define WCD939X_CDC_TX_ANA_MODE_2_3_TXD2_MODE 473 #define WCD939X_DIGITAL_CDC_COMP_CTL_0 474 #define WCD939X_CDC_COMP_CTL_0_HPHL_COMP_EN 475 #define WCD939X_CDC_COMP_CTL_0_HPHR_COMP_EN 476 #define WCD939X_DIGITAL_CDC_ANA_TX_CLK_CTL 477 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_MBHC_1P 478 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_TX3_ADC 479 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_TX2_ADC 480 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_TX1_ADC 481 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_TX0_ADC 482 #define WCD939X_CDC_ANA_TX_CLK_CTL_ANA_TXSCBIA 483 #define WCD939X_DIGITAL_CDC_HPH_DSM_A1_0 484 #define WCD939X_DIGITAL_CDC_HPH_DSM_A1_1 485 #define WCD939X_DIGITAL_CDC_HPH_DSM_A2_0 486 #define WCD939X_DIGITAL_CDC_HPH_DSM_A2_1 487 #define WCD939X_DIGITAL_CDC_HPH_DSM_A3_0 488 #define WCD939X_DIGITAL_CDC_HPH_DSM_A3_1 489 #define WCD939X_DIGITAL_CDC_HPH_DSM_A4_0 490 #define WCD939X_DIGITAL_CDC_HPH_DSM_A4_1 491 #define WCD939X_DIGITAL_CDC_HPH_DSM_A5_0 492 #define WCD939X_DIGITAL_CDC_HPH_DSM_A5_1 493 #define WCD939X_DIGITAL_CDC_HPH_DSM_A6_0 494 #define WCD939X_DIGITAL_CDC_HPH_DSM_A7_0 495 #define WCD939X_DIGITAL_CDC_HPH_DSM_C_0 496 #define WCD939X_DIGITAL_CDC_HPH_DSM_C_1 497 #define WCD939X_DIGITAL_CDC_HPH_DSM_C_2 498 #define WCD939X_DIGITAL_CDC_HPH_DSM_C_3 499 #define WCD939X_DIGITAL_CDC_HPH_DSM_R1 500 #define WCD939X_DIGITAL_CDC_HPH_DSM_R2 501 #define WCD939X_DIGITAL_CDC_HPH_DSM_R3 502 #define WCD939X_DIGITAL_CDC_HPH_DSM_R4 503 #define WCD939X_DIGITAL_CDC_HPH_DSM_R5 504 #define WCD939X_DIGITAL_CDC_HPH_DSM_R6 505 #define WCD939X_DIGITAL_CDC_HPH_DSM_R7 506 #define WCD939X_DIGITAL_CDC_EAR_DSM_A1_0 507 #define WCD939X_DIGITAL_CDC_EAR_DSM_A1_1 508 #define WCD939X_DIGITAL_CDC_EAR_DSM_A2_0 509 #define WCD939X_DIGITAL_CDC_EAR_DSM_A2_1 510 #define WCD939X_DIGITAL_CDC_EAR_DSM_A3_0 511 #define WCD939X_DIGITAL_CDC_EAR_DSM_A3_1 512 #define WCD939X_DIGITAL_CDC_EAR_DSM_A4_0 513 #define WCD939X_DIGITAL_CDC_EAR_DSM_A4_1 514 #define WCD939X_DIGITAL_CDC_EAR_DSM_A5_0 515 #define WCD939X_DIGITAL_CDC_EAR_DSM_A5_1 516 #define WCD939X_DIGITAL_CDC_EAR_DSM_A6_0 517 #define WCD939X_DIGITAL_CDC_EAR_DSM_A7_0 518 #define WCD939X_DIGITAL_CDC_EAR_DSM_C_0 519 #define WCD939X_DIGITAL_CDC_EAR_DSM_C_1 520 #define WCD939X_DIGITAL_CDC_EAR_DSM_C_2 521 #define WCD939X_DIGITAL_CDC_EAR_DSM_C_3 522 #define WCD939X_DIGITAL_CDC_EAR_DSM_R1 523 #define WCD939X_DIGITAL_CDC_EAR_DSM_R2 524 #define WCD939X_DIGITAL_CDC_EAR_DSM_R3 525 #define WCD939X_DIGITAL_CDC_EAR_DSM_R4 526 #define WCD939X_DIGITAL_CDC_EAR_DSM_R5 527 #define WCD939X_DIGITAL_CDC_EAR_DSM_R6 528 #define WCD939X_DIGITAL_CDC_EAR_DSM_R7 529 #define WCD939X_DIGITAL_CDC_HPH_GAIN_RX_0 530 #define WCD939X_DIGITAL_CDC_HPH_GAIN_RX_1 531 #define WCD939X_DIGITAL_CDC_HPH_GAIN_DSD_0 532 #define WCD939X_DIGITAL_CDC_HPH_GAIN_DSD_1 533 #define WCD939X_DIGITAL_CDC_HPH_GAIN_DSD_2 534 #define WCD939X_DIGITAL_CDC_EAR_GAIN_DSD_0 535 #define WCD939X_DIGITAL_CDC_EAR_GAIN_DSD_1 536 #define WCD939X_DIGITAL_CDC_EAR_GAIN_DSD_2 537 #define WCD939X_DIGITAL_CDC_HPH_GAIN_CTL 538 #define WCD939X_CDC_HPH_GAIN_CTL_HPH_STEREO_EN 539 #define WCD939X_CDC_HPH_GAIN_CTL_HPHR_RX_EN 540 #define WCD939X_CDC_HPH_GAIN_CTL_HPHL_RX_EN 541 #define WCD939X_CDC_HPH_GAIN_CTL_HPHR_DSD_EN 542 #define WCD939X_CDC_HPH_GAIN_CTL_HPHL_DSD_EN 543 #define WCD939X_DIGITAL_CDC_EAR_GAIN_CTL 544 #define WCD939X_CDC_EAR_GAIN_CTL_EAR_EN BIT(0) 545 #define WCD939X_DIGITAL_CDC_EAR_PATH_CTL 546 #define WCD939X_DIGITAL_CDC_SWR_CLH 547 #define WCD939X_CDC_SWR_CLH_CLH_CTL GENMAS 548 #define WCD939X_DIGITAL_SWR_CLH_BYP 549 #define WCD939X_DIGITAL_CDC_TX0_CTL 550 #define WCD939X_DIGITAL_CDC_TX1_CTL 551 #define WCD939X_DIGITAL_CDC_TX2_CTL 552 #define WCD939X_DIGITAL_CDC_TX_RST 553 #define WCD939X_DIGITAL_CDC_REQ_CTL 554 #define WCD939X_CDC_REQ_CTL_TX3_WIDE_BAND 555 #define WCD939X_CDC_REQ_CTL_TX2_WIDE_BAND 556 #define WCD939X_CDC_REQ_CTL_TX1_WIDE_BAND 557 #define WCD939X_CDC_REQ_CTL_TX0_WIDE_BAND 558 #define WCD939X_CDC_REQ_CTL_FS_RATE_4P8 BIT(1) 559 #define WCD939X_CDC_REQ_CTL_NO_NOTCH BIT(0) 560 #define WCD939X_DIGITAL_CDC_RST 561 #define WCD939X_DIGITAL_CDC_AMIC_CTL 562 #define WCD939X_CDC_AMIC_CTL_AMIC5_IN_SEL 563 #define WCD939X_CDC_AMIC_CTL_AMIC4_IN_SEL 564 #define WCD939X_CDC_AMIC_CTL_AMIC3_IN_SEL 565 #define WCD939X_CDC_AMIC_CTL_AMIC1_IN_SEL 566 #define WCD939X_DIGITAL_CDC_DMIC_CTL 567 #define WCD939X_CDC_DMIC_CTL_DMIC_LEGACY_SW_MO 568 #define WCD939X_CDC_DMIC_CTL_DMIC_DIV_BAK_EN 569 #define WCD939X_CDC_DMIC_CTL_CLK_SCALE_EN 570 #define WCD939X_CDC_DMIC_CTL_SOFT_RESET BIT(0) 571 #define WCD939X_DIGITAL_CDC_DMIC1_CTL 572 #define WCD939X_CDC_DMIC1_CTL_DMIC_CLK_SCALE_S 573 #define WCD939X_CDC_DMIC1_CTL_DMIC_CLK_EN 574 #define WCD939X_CDC_DMIC1_CTL_DMIC_CLK_SEL 575 #define WCD939X_DIGITAL_CDC_DMIC2_CTL 576 #define WCD939X_CDC_DMIC2_CTL_DMIC_LEFT_EN 577 #define WCD939X_CDC_DMIC2_CTL_DMIC_CLK_SCALE_S 578 #define WCD939X_CDC_DMIC2_CTL_DMIC_CLK_EN 579 #define WCD939X_CDC_DMIC2_CTL_DMIC_CLK_SEL 580 #define WCD939X_DIGITAL_CDC_DMIC3_CTL 581 #define WCD939X_CDC_DMIC3_CTL_DMIC_CLK_SCALE_S 582 #define WCD939X_CDC_DMIC3_CTL_DMIC_CLK_EN 583 #define WCD939X_CDC_DMIC3_CTL_DMIC_CLK_SEL 584 #define WCD939X_DIGITAL_CDC_DMIC4_CTL 585 #define WCD939X_CDC_DMIC4_CTL_DMIC_CLK_SCALE_S 586 #define WCD939X_CDC_DMIC4_CTL_DMIC_CLK_EN 587 #define WCD939X_CDC_DMIC4_CTL_DMIC_CLK_SEL 588 #define WCD939X_DIGITAL_EFUSE_PRG_CTL 589 #define WCD939X_DIGITAL_EFUSE_CTL 590 #define WCD939X_DIGITAL_CDC_DMIC_RATE_1_2 591 #define WCD939X_CDC_DMIC_RATE_1_2_DMIC2_RATE 592 #define WCD939X_CDC_DMIC_RATE_1_2_DMIC1_RATE 593 #define WCD939X_DIGITAL_CDC_DMIC_RATE_3_4 594 #define WCD939X_CDC_DMIC_RATE_3_4_DMIC4_RATE 595 #define WCD939X_CDC_DMIC_RATE_3_4_DMIC3_RATE 596 #define WCD939X_DIGITAL_PDM_WD_CTL0 597 #define WCD939X_PDM_WD_CTL0_HOLD_OFF BIT(4) 598 #define WCD939X_PDM_WD_CTL0_TIME_OUT_SEL 599 #define WCD939X_PDM_WD_CTL0_PDM_WD_EN GENMAS 600 #define WCD939X_DIGITAL_PDM_WD_CTL1 601 #define WCD939X_PDM_WD_CTL1_HOLD_OFF BIT(4) 602 #define WCD939X_PDM_WD_CTL1_TIME_OUT_SEL 603 #define WCD939X_PDM_WD_CTL1_PDM_WD_EN GENMAS 604 #define WCD939X_DIGITAL_PDM_WD_CTL2 605 #define WCD939X_DIGITAL_INTR_MODE 606 #define WCD939X_DIGITAL_INTR_MASK_0 607 #define WCD939X_DIGITAL_INTR_MASK_1 608 #define WCD939X_DIGITAL_INTR_MASK_2 609 #define WCD939X_DIGITAL_INTR_STATUS_0 610 #define WCD939X_DIGITAL_INTR_STATUS_1 611 #define WCD939X_DIGITAL_INTR_STATUS_2 612 #define WCD939X_DIGITAL_INTR_CLEAR_0 613 #define WCD939X_DIGITAL_INTR_CLEAR_1 614 #define WCD939X_DIGITAL_INTR_CLEAR_2 615 #define WCD939X_DIGITAL_INTR_LEVEL_0 616 #define WCD939X_DIGITAL_INTR_LEVEL_1 617 #define WCD939X_DIGITAL_INTR_LEVEL_2 618 #define WCD939X_DIGITAL_INTR_SET_0 619 #define WCD939X_DIGITAL_INTR_SET_1 620 #define WCD939X_DIGITAL_INTR_SET_2 621 #define WCD939X_DIGITAL_INTR_TEST_0 622 #define WCD939X_DIGITAL_INTR_TEST_1 623 #define WCD939X_DIGITAL_INTR_TEST_2 624 #define WCD939X_DIGITAL_TX_MODE_DBG_EN 625 #define WCD939X_DIGITAL_TX_MODE_DBG_0_1 626 #define WCD939X_DIGITAL_TX_MODE_DBG_2_3 627 #define WCD939X_DIGITAL_LB_IN_SEL_CTL 628 #define WCD939X_DIGITAL_LOOP_BACK_MODE 629 #define WCD939X_DIGITAL_SWR_DAC_TEST 630 #define WCD939X_DIGITAL_SWR_HM_TEST_RX_0 631 #define WCD939X_DIGITAL_SWR_HM_TEST_TX_0 632 #define WCD939X_DIGITAL_SWR_HM_TEST_RX_1 633 #define WCD939X_DIGITAL_SWR_HM_TEST_TX_1 634 #define WCD939X_DIGITAL_SWR_HM_TEST_TX_2 635 #define WCD939X_DIGITAL_SWR_HM_TEST_0 636 #define WCD939X_DIGITAL_SWR_HM_TEST_1 637 #define WCD939X_DIGITAL_PAD_CTL_SWR_0 638 #define WCD939X_DIGITAL_PAD_CTL_SWR_1 639 #define WCD939X_DIGITAL_I2C_CTL 640 #define WCD939X_DIGITAL_CDC_TX_TANGGU_SW_MODE 641 #define WCD939X_DIGITAL_EFUSE_TEST_CTL_0 642 #define WCD939X_DIGITAL_EFUSE_TEST_CTL_1 643 #define WCD939X_DIGITAL_EFUSE_T_DATA_0 644 #define WCD939X_DIGITAL_EFUSE_T_DATA_1 645 #define WCD939X_DIGITAL_PAD_CTL_PDM_RX0 646 #define WCD939X_DIGITAL_PAD_CTL_PDM_RX1 647 #define WCD939X_DIGITAL_PAD_CTL_PDM_TX0 648 #define WCD939X_DIGITAL_PAD_CTL_PDM_TX1 649 #define WCD939X_DIGITAL_PAD_CTL_PDM_TX2 650 #define WCD939X_DIGITAL_PAD_INP_DIS_0 651 #define WCD939X_DIGITAL_PAD_INP_DIS_1 652 #define WCD939X_DIGITAL_DRIVE_STRENGTH_0 653 #define WCD939X_DIGITAL_DRIVE_STRENGTH_1 654 #define WCD939X_DIGITAL_DRIVE_STRENGTH_2 655 #define WCD939X_DIGITAL_RX_DATA_EDGE_CTL 656 #define WCD939X_DIGITAL_TX_DATA_EDGE_CTL 657 #define WCD939X_DIGITAL_GPIO_MODE 658 #define WCD939X_DIGITAL_PIN_CTL_OE 659 #define WCD939X_DIGITAL_PIN_CTL_DATA_0 660 #define WCD939X_DIGITAL_PIN_CTL_DATA_1 661 #define WCD939X_DIGITAL_PIN_STATUS_0 662 #define WCD939X_DIGITAL_PIN_STATUS_1 663 #define WCD939X_DIGITAL_DIG_DEBUG_CTL 664 #define WCD939X_DIGITAL_DIG_DEBUG_EN 665 #define WCD939X_DIGITAL_ANA_CSR_DBG_ADD 666 #define WCD939X_DIGITAL_ANA_CSR_DBG_CTL 667 #define WCD939X_DIGITAL_SSP_DBG 668 #define WCD939X_DIGITAL_MODE_STATUS_0 669 #define WCD939X_DIGITAL_MODE_STATUS_1 670 #define WCD939X_DIGITAL_SPARE_0 671 #define WCD939X_DIGITAL_SPARE_1 672 #define WCD939X_DIGITAL_SPARE_2 673 #define WCD939X_DIGITAL_EFUSE_REG_0 674 #define WCD939X_EFUSE_REG_0_WCD939X_ID GENMAS 675 #define WCD939X_EFUSE_REG_0_EFUSE_BLOWN BIT(0) 676 #define WCD939X_DIGITAL_EFUSE_REG_1 677 #define WCD939X_DIGITAL_EFUSE_REG_2 678 #define WCD939X_DIGITAL_EFUSE_REG_3 679 #define WCD939X_DIGITAL_EFUSE_REG_4 680 #define WCD939X_DIGITAL_EFUSE_REG_5 681 #define WCD939X_DIGITAL_EFUSE_REG_6 682 #define WCD939X_DIGITAL_EFUSE_REG_7 683 #define WCD939X_DIGITAL_EFUSE_REG_8 684 #define WCD939X_DIGITAL_EFUSE_REG_9 685 #define WCD939X_DIGITAL_EFUSE_REG_10 686 #define WCD939X_DIGITAL_EFUSE_REG_11 687 #define WCD939X_DIGITAL_EFUSE_REG_12 688 #define WCD939X_DIGITAL_EFUSE_REG_13 689 #define WCD939X_DIGITAL_EFUSE_REG_14 690 #define WCD939X_DIGITAL_EFUSE_REG_15 691 #define WCD939X_DIGITAL_EFUSE_REG_16 692 #define WCD939X_DIGITAL_EFUSE_REG_17 693 #define WCD939X_DIGITAL_EFUSE_REG_18 694 #define WCD939X_DIGITAL_EFUSE_REG_19 695 #define WCD939X_DIGITAL_EFUSE_REG_20 696 #define WCD939X_DIGITAL_EFUSE_REG_21 697 #define WCD939X_DIGITAL_EFUSE_REG_22 698 #define WCD939X_DIGITAL_EFUSE_REG_23 699 #define WCD939X_DIGITAL_EFUSE_REG_24 700 #define WCD939X_DIGITAL_EFUSE_REG_25 701 #define WCD939X_DIGITAL_EFUSE_REG_26 702 #define WCD939X_DIGITAL_EFUSE_REG_27 703 #define WCD939X_DIGITAL_EFUSE_REG_28 704 #define WCD939X_DIGITAL_EFUSE_REG_29 705 #define WCD939X_DIGITAL_EFUSE_REG_30 706 #define WCD939X_DIGITAL_EFUSE_REG_31 707 #define WCD939X_DIGITAL_TX_REQ_FB_CTL_0 708 #define WCD939X_DIGITAL_TX_REQ_FB_CTL_1 709 #define WCD939X_DIGITAL_TX_REQ_FB_CTL_2 710 #define WCD939X_DIGITAL_TX_REQ_FB_CTL_3 711 #define WCD939X_DIGITAL_TX_REQ_FB_CTL_4 712 #define WCD939X_DIGITAL_DEM_BYPASS_DATA0 713 #define WCD939X_DIGITAL_DEM_BYPASS_DATA1 714 #define WCD939X_DIGITAL_DEM_BYPASS_DATA2 715 #define WCD939X_DIGITAL_DEM_BYPASS_DATA3 716 #define WCD939X_DIGITAL_DEM_SECOND_ORDER 717 #define WCD939X_DIGITAL_DSM_CTRL 718 #define WCD939X_DIGITAL_DSM_0_STATIC_DATA_0 719 #define WCD939X_DIGITAL_DSM_0_STATIC_DATA_1 720 #define WCD939X_DIGITAL_DSM_0_STATIC_DATA_2 721 #define WCD939X_DIGITAL_DSM_0_STATIC_DATA_3 722 #define WCD939X_DIGITAL_DSM_1_STATIC_DATA_0 723 #define WCD939X_DIGITAL_DSM_1_STATIC_DATA_1 724 #define WCD939X_DIGITAL_DSM_1_STATIC_DATA_2 725 #define WCD939X_DIGITAL_DSM_1_STATIC_DATA_3 726 #define WCD939X_RX_TOP_PAGE 727 #define WCD939X_RX_TOP_TOP_CFG0 728 #define WCD939X_TOP_CFG0_HPH_DAC_RATE_SEL 729 #define WCD939X_TOP_CFG0_PGA_UPDATE BIT(0) 730 #define WCD939X_RX_TOP_HPHL_COMP_WR_LSB 731 #define WCD939X_RX_TOP_HPHL_COMP_WR_MSB 732 #define WCD939X_RX_TOP_HPHL_COMP_LUT 733 #define WCD939X_RX_TOP_HPHL_COMP_RD_LSB 734 #define WCD939X_RX_TOP_HPHL_COMP_RD_MSB 735 #define WCD939X_RX_TOP_HPHR_COMP_WR_LSB 736 #define WCD939X_RX_TOP_HPHR_COMP_WR_MSB 737 #define WCD939X_RX_TOP_HPHR_COMP_LUT 738 #define WCD939X_RX_TOP_HPHR_COMP_RD_LSB 739 #define WCD939X_RX_TOP_HPHR_COMP_RD_MSB 740 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG1 741 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG2 742 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG3 743 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG4 744 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG5 745 #define WCD939X_RX_TOP_DSD0_DEBUG_CFG6 746 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG1 747 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG2 748 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG3 749 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG4 750 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG5 751 #define WCD939X_RX_TOP_DSD1_DEBUG_CFG6 752 #define WCD939X_RX_TOP_HPHL_PATH_CFG0 753 #define WCD939X_HPHL_PATH_CFG0_INT_EN BIT(1) 754 #define WCD939X_HPHL_PATH_CFG0_DLY_ZN_EN 755 #define WCD939X_RX_TOP_HPHL_PATH_CFG1 756 #define WCD939X_HPHL_PATH_CFG1_DSM_SOFT_RST 757 #define WCD939X_HPHL_PATH_CFG1_INT_SOFT_RST 758 #define WCD939X_HPHL_PATH_CFG1_FMT_CONV BIT(3) 759 #define WCD939X_HPHL_PATH_CFG1_IDLE_OVRD_EN 760 #define WCD939X_HPHL_PATH_CFG1_RX_DC_DROOP_COE 761 #define WCD939X_RX_TOP_HPHR_PATH_CFG0 762 #define WCD939X_HPHR_PATH_CFG0_INT_EN BIT(2) 763 #define WCD939X_HPHR_PATH_CFG0_DLY_ZN_EN 764 #define WCD939X_RX_TOP_HPHR_PATH_CFG1 765 #define WCD939X_HPHR_PATH_CFG1_DSM_SOFT_RST 766 #define WCD939X_HPHR_PATH_CFG1_INT_SOFT_RST 767 #define WCD939X_HPHR_PATH_CFG1_FMT_CONV BIT(3) 768 #define WCD939X_HPHR_PATH_CFG1_IDLE_OVRD_EN 769 #define WCD939X_HPHR_PATH_CFG1_RX_DC_DROOP_COE 770 #define WCD939X_RX_TOP_PATH_CFG2 771 #define WCD939X_RX_TOP_HPHL_PATH_SEC0 772 #define WCD939X_RX_TOP_HPHL_PATH_SEC1 773 #define WCD939X_RX_TOP_HPHL_PATH_SEC2 774 #define WCD939X_RX_TOP_HPHL_PATH_SEC3 775 #define WCD939X_RX_TOP_HPHR_PATH_SEC0 776 #define WCD939X_RX_TOP_HPHR_PATH_SEC1 777 #define WCD939X_RX_TOP_HPHR_PATH_SEC2 778 #define WCD939X_RX_TOP_HPHR_PATH_SEC3 779 #define WCD939X_RX_TOP_PATH_SEC4 780 #define WCD939X_RX_TOP_PATH_SEC5 781 #define WCD939X_COMPANDER_HPHL_CTL0 782 #define WCD939X_COMPANDER_HPHL_CTL1 783 #define WCD939X_COMPANDER_HPHL_CTL2 784 #define WCD939X_COMPANDER_HPHL_CTL3 785 #define WCD939X_COMPANDER_HPHL_CTL4 786 #define WCD939X_COMPANDER_HPHL_CTL5 787 #define WCD939X_COMPANDER_HPHL_CTL6 788 #define WCD939X_COMPANDER_HPHL_CTL7 789 #define WCD939X_COMPANDER_HPHL_CTL8 790 #define WCD939X_COMPANDER_HPHL_CTL9 791 #define WCD939X_COMPANDER_HPHL_CTL10 792 #define WCD939X_COMPANDER_HPHL_CTL11 793 #define WCD939X_COMPANDER_HPHL_CTL12 794 #define WCD939X_COMPANDER_HPHL_CTL13 795 #define WCD939X_COMPANDER_HPHL_CTL14 796 #define WCD939X_COMPANDER_HPHL_CTL15 797 #define WCD939X_COMPANDER_HPHL_CTL16 798 #define WCD939X_COMPANDER_HPHL_CTL17 799 #define WCD939X_COMPANDER_HPHL_CTL18 800 #define WCD939X_COMPANDER_HPHL_CTL19 801 #define WCD939X_R_CTL0 802 #define WCD939X_R_CTL1 803 #define WCD939X_R_CTL2 804 #define WCD939X_R_CTL3 805 #define WCD939X_R_CTL4 806 #define WCD939X_R_CTL5 807 #define WCD939X_R_CTL6 808 #define WCD939X_R_CTL7 809 #define WCD939X_R_CTL8 810 #define WCD939X_R_CTL9 811 #define WCD939X_R_CTL10 812 #define WCD939X_R_CTL11 813 #define WCD939X_R_CTL12 814 #define WCD939X_R_CTL13 815 #define WCD939X_R_CTL14 816 #define WCD939X_R_CTL15 817 #define WCD939X_R_CTL16 818 #define WCD939X_R_CTL17 819 #define WCD939X_R_CTL18 820 #define WCD939X_R_CTL19 821 #define WCD939X_E_PATH_CTL 822 #define WCD939X_E_CFG0 823 #define WCD939X_CFG0_AUTO_DISABLE_ANC BIT(2) 824 #define WCD939X_CFG0_AUTO_DISABLE_DSD BIT(1) 825 #define WCD939X_CFG0_IDLE_STEREO BIT(0) 826 #define WCD939X_E_CFG1 827 #define WCD939X_E_CFG2 828 #define WCD939X_E_CFG3 829 #define WCD939X_DSD_HPHL_PATH_CTL 830 #define WCD939X_DSD_HPHL_CFG0 831 #define WCD939X_DSD_HPHL_CFG1 832 #define WCD939X_DSD_HPHL_CFG2 833 #define WCD939X_DSD_HPHL_CFG3 834 #define WCD939X_DSD_HPHL_CFG4 835 #define WCD939X_DSD_HPHL_CFG5 836 #define WCD939X_DSD_HPHR_PATH_CTL 837 #define WCD939X_DSD_HPHR_CFG0 838 #define WCD939X_DSD_HPHR_CFG1 839 #define WCD939X_DSD_HPHR_CFG2 840 #define WCD939X_DSD_HPHR_CFG3 841 #define WCD939X_DSD_HPHR_CFG4 842 #define WCD939X_DSD_HPHR_CFG5 843 #define WCD939X_MAX_REGISTER 844 845 #define WCD939X_MAX_SWR_CH_IDS (15) 846 847 struct wcd939x_sdw_ch_info { 848 int port_num; 849 unsigned int ch_mask; 850 }; 851 852 #define WCD_SDW_CH(id, pn, cmask) \ 853 [id] = { \ 854 .port_num = pn, \ 855 .ch_mask = cmask, \ 856 } 857 858 enum wcd939x_tx_sdw_ports { 859 WCD939X_ADC_1_4_PORT = 1, 860 WCD939X_ADC_DMIC_1_2_PORT, 861 WCD939X_DMIC_0_3_MBHC_PORT, 862 WCD939X_DMIC_3_7_PORT, 863 WCD939X_MAX_TX_SWR_PORTS = WCD939X_DMI 864 }; 865 866 enum wcd939x_tx_sdw_channels { 867 WCD939X_ADC1, 868 WCD939X_ADC2, 869 WCD939X_ADC3, 870 WCD939X_ADC4, 871 WCD939X_DMIC0, 872 WCD939X_DMIC1, 873 WCD939X_MBHC, 874 WCD939X_DMIC2, 875 WCD939X_DMIC3, 876 WCD939X_DMIC4, 877 WCD939X_DMIC5, 878 WCD939X_DMIC6, 879 WCD939X_DMIC7, 880 }; 881 882 enum wcd939x_rx_sdw_ports { 883 WCD939X_HPH_PORT = 1, 884 WCD939X_CLSH_PORT, 885 WCD939X_COMP_PORT, 886 WCD939X_LO_PORT, 887 WCD939X_DSD_PORT, 888 WCD939X_HIFI_PCM_PORT, 889 WCD939X_MAX_RX_SWR_PORTS = WCD939X_HIF 890 WCD939X_MAX_SWR_PORTS = WCD939X_MAX_RX 891 }; 892 893 enum wcd939x_rx_sdw_channels { 894 WCD939X_HPH_L, 895 WCD939X_HPH_R, 896 WCD939X_CLSH, 897 WCD939X_COMP_L, 898 WCD939X_COMP_R, 899 WCD939X_LO, 900 WCD939X_DSD_L, 901 WCD939X_DSD_R, 902 WCD939X_HIFI_PCM_L, 903 WCD939X_HIFI_PCM_R, 904 }; 905 906 struct wcd939x_priv; 907 struct wcd939x_sdw_priv { 908 struct sdw_slave *sdev; 909 struct sdw_stream_config sconfig; 910 struct sdw_stream_runtime *sruntime; 911 struct sdw_port_config port_config[WCD 912 const struct wcd939x_sdw_ch_info *ch_i 913 bool port_enable[WCD939X_MAX_SWR_CH_ID 914 int active_ports; 915 bool is_tx; 916 struct wcd939x_priv *wcd939x; 917 struct irq_domain *slave_irq; 918 struct regmap *regmap; 919 }; 920 921 #if IS_ENABLED(CONFIG_SND_SOC_WCD939X_SDW) 922 int wcd939x_sdw_free(struct wcd939x_sdw_priv * 923 struct snd_pcm_substream 924 struct snd_soc_dai *dai); 925 int wcd939x_sdw_set_sdw_stream(struct wcd939x_ 926 struct snd_soc_ 927 void *stream, i 928 int wcd939x_sdw_hw_params(struct wcd939x_sdw_p 929 struct snd_pcm_subst 930 struct snd_pcm_hw_pa 931 struct snd_soc_dai * 932 933 struct device *wcd939x_sdw_device_get(struct d 934 unsigned int wcd939x_swr_get_current_bank(stru 935 936 struct regmap *wcd939x_swr_get_regmap(struct w 937 #else 938 939 static inline int wcd939x_sdw_free(struct wcd9 940 struct snd_ 941 struct snd_ 942 { 943 return -EOPNOTSUPP; 944 } 945 946 static inline int wcd939x_sdw_set_sdw_stream(s 947 s 948 v 949 { 950 return -EOPNOTSUPP; 951 } 952 953 static inline int wcd939x_sdw_hw_params(struct 954 struct 955 struct 956 struct 957 { 958 return -EOPNOTSUPP; 959 } 960 961 static inline struct device *wcd939x_sdw_devic 962 { 963 return NULL; 964 } 965 966 static inline unsigned int wcd939x_swr_get_cur 967 { 968 return 0; 969 } 970 971 struct regmap *wcd939x_swr_get_regmap(struct w 972 { 973 return PTR_ERR(-EINVAL); 974 } 975 #endif /* CONFIG_SND_SOC_WCD939X_SDW */ 976 977 #endif /* __WCD939X_H__ */ 978
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.