linux/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 */

#ifndef QCOM_PHY_QMP_QSERDES_TXRX_H_
#define QCOM_PHY_QMP_QSERDES_TXRX_H_

/* Only for QMP V2 PHY - TX registers */
#define QSERDES_TX_BIST_MODE_LANENO
#define QSERDES_TX_BIST_INVERT
#define QSERDES_TX_CLKBUF_ENABLE
#define QSERDES_TX_CMN_CONTROL_ONE
#define QSERDES_TX_CMN_CONTROL_TWO
#define QSERDES_TX_CMN_CONTROL_THREE
#define QSERDES_TX_TX_EMP_POST1_LVL
#define QSERDES_TX_TX_POST2_EMPH
#define QSERDES_TX_TX_BOOST_LVL_UP_DN
#define QSERDES_TX_HP_PD_ENABLES
#define QSERDES_TX_TX_IDLE_LVL_LARGE_AMP
#define QSERDES_TX_TX_DRV_LVL
#define QSERDES_TX_TX_DRV_LVL_OFFSET
#define QSERDES_TX_RESET_TSYNC_EN
#define QSERDES_TX_PRE_STALL_LDO_BOOST_EN
#define QSERDES_TX_TX_BAND
#define QSERDES_TX_SLEW_CNTL
#define QSERDES_TX_INTERFACE_SELECT
#define QSERDES_TX_LPB_EN
#define QSERDES_TX_RES_CODE_LANE_TX
#define QSERDES_TX_RES_CODE_LANE_RX
#define QSERDES_TX_RES_CODE_LANE_OFFSET
#define QSERDES_TX_PERL_LENGTH1
#define QSERDES_TX_PERL_LENGTH2
#define QSERDES_TX_SERDES_BYP_EN_OUT
#define QSERDES_TX_DEBUG_BUS_SEL
#define QSERDES_TX_HIGHZ_TRANSCEIVEREN_BIAS_DRVR_EN
#define QSERDES_TX_TX_POL_INV
#define QSERDES_TX_PARRATE_REC_DETECT_IDLE_EN
#define QSERDES_TX_BIST_PATTERN1
#define QSERDES_TX_BIST_PATTERN2
#define QSERDES_TX_BIST_PATTERN3
#define QSERDES_TX_BIST_PATTERN4
#define QSERDES_TX_BIST_PATTERN5
#define QSERDES_TX_BIST_PATTERN6
#define QSERDES_TX_BIST_PATTERN7
#define QSERDES_TX_BIST_PATTERN8
#define QSERDES_TX_LANE_MODE
#define QSERDES_TX_IDAC_CAL_LANE_MODE
#define QSERDES_TX_IDAC_CAL_LANE_MODE_CONFIGURATION
#define QSERDES_TX_ATB_SEL1
#define QSERDES_TX_ATB_SEL2
#define QSERDES_TX_RCV_DETECT_LVL
#define QSERDES_TX_RCV_DETECT_LVL_2
#define QSERDES_TX_PRBS_SEED1
#define QSERDES_TX_PRBS_SEED2
#define QSERDES_TX_PRBS_SEED3
#define QSERDES_TX_PRBS_SEED4
#define QSERDES_TX_RESET_GEN
#define QSERDES_TX_RESET_GEN_MUXES
#define QSERDES_TX_TRAN_DRVR_EMP_EN
#define QSERDES_TX_TX_INTERFACE_MODE
#define QSERDES_TX_PWM_CTRL
#define QSERDES_TX_PWM_ENCODED_OR_DATA
#define QSERDES_TX_PWM_GEAR_1_DIVIDER_BAND2
#define QSERDES_TX_PWM_GEAR_2_DIVIDER_BAND2
#define QSERDES_TX_PWM_GEAR_3_DIVIDER_BAND2
#define QSERDES_TX_PWM_GEAR_4_DIVIDER_BAND2
#define QSERDES_TX_PWM_GEAR_1_DIVIDER_BAND0_1
#define QSERDES_TX_PWM_GEAR_2_DIVIDER_BAND0_1
#define QSERDES_TX_PWM_GEAR_3_DIVIDER_BAND0_1
#define QSERDES_TX_PWM_GEAR_4_DIVIDER_BAND0_1
#define QSERDES_TX_VMODE_CTRL1
#define QSERDES_TX_VMODE_CTRL2
#define QSERDES_TX_TX_ALOG_INTF_OBSV_CNTL
#define QSERDES_TX_BIST_STATUS
#define QSERDES_TX_BIST_ERROR_COUNT1
#define QSERDES_TX_BIST_ERROR_COUNT2
#define QSERDES_TX_TX_ALOG_INTF_OBSV

/* Only for QMP V2 PHY - RX registers */
#define QSERDES_RX_UCDR_FO_GAIN_HALF
#define QSERDES_RX_UCDR_FO_GAIN_QUARTER
#define QSERDES_RX_UCDR_FO_GAIN_EIGHTH
#define QSERDES_RX_UCDR_FO_GAIN
#define QSERDES_RX_UCDR_SO_GAIN_HALF
#define QSERDES_RX_UCDR_SO_GAIN_QUARTER
#define QSERDES_RX_UCDR_SO_GAIN_EIGHTH
#define QSERDES_RX_UCDR_SO_GAIN
#define QSERDES_RX_UCDR_SVS_FO_GAIN_HALF
#define QSERDES_RX_UCDR_SVS_FO_GAIN_QUARTER
#define QSERDES_RX_UCDR_SVS_FO_GAIN_EIGHTH
#define QSERDES_RX_UCDR_SVS_FO_GAIN
#define QSERDES_RX_UCDR_SVS_SO_GAIN_HALF
#define QSERDES_RX_UCDR_SVS_SO_GAIN_QUARTER
#define QSERDES_RX_UCDR_SVS_SO_GAIN_EIGHTH
#define QSERDES_RX_UCDR_SVS_SO_GAIN
#define QSERDES_RX_UCDR_FASTLOCK_FO_GAIN
#define QSERDES_RX_UCDR_FD_GAIN
#define QSERDES_RX_UCDR_SO_SATURATION_AND_ENABLE
#define QSERDES_RX_UCDR_FO_TO_SO_DELAY
#define QSERDES_RX_UCDR_FASTLOCK_COUNT_LOW
#define QSERDES_RX_UCDR_FASTLOCK_COUNT_HIGH
#define QSERDES_RX_UCDR_MODULATE
#define QSERDES_RX_UCDR_PI_CONTROLS
#define QSERDES_RX_RBIST_CONTROL
#define QSERDES_RX_AUX_CONTROL
#define QSERDES_RX_AUX_DATA_TCOARSE
#define QSERDES_RX_AUX_DATA_TFINE_LSB
#define QSERDES_RX_AUX_DATA_TFINE_MSB
#define QSERDES_RX_RCLK_AUXDATA_SEL
#define QSERDES_RX_AC_JTAG_ENABLE
#define QSERDES_RX_AC_JTAG_INITP
#define QSERDES_RX_AC_JTAG_INITN
#define QSERDES_RX_AC_JTAG_LVL
#define QSERDES_RX_AC_JTAG_MODE
#define QSERDES_RX_AC_JTAG_RESET
#define QSERDES_RX_RX_TERM_BW
#define QSERDES_RX_RX_RCVR_IQ_EN
#define QSERDES_RX_RX_IDAC_I_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_IBAR_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_Q_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_QBAR_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_A_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_ABAR_DC_OFFSETS
#define QSERDES_RX_RX_IDAC_EN
#define QSERDES_RX_RX_IDAC_ENABLES
#define QSERDES_RX_RX_IDAC_SIGN
#define QSERDES_RX_RX_HIGHZ_HIGHRATE
#define QSERDES_RX_RX_TERM_AC_BYPASS_DC_COUPLE_OFFSET
#define QSERDES_RX_RX_EQ_GAIN1_LSB
#define QSERDES_RX_RX_EQ_GAIN1_MSB
#define QSERDES_RX_RX_EQ_GAIN2_LSB
#define QSERDES_RX_RX_EQ_GAIN2_MSB
#define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL1
#define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL2
#define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL3
#define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL4
#define QSERDES_RX_RX_IDAC_CAL_CONFIGURATION
#define QSERDES_RX_RX_IDAC_TSETTLE_LOW
#define QSERDES_RX_RX_IDAC_TSETTLE_HIGH
#define QSERDES_RX_RX_IDAC_ENDSAMP_LOW
#define QSERDES_RX_RX_IDAC_ENDSAMP_HIGH
#define QSERDES_RX_RX_IDAC_MIDPOINT_LOW
#define QSERDES_RX_RX_IDAC_MIDPOINT_HIGH
#define QSERDES_RX_RX_EQ_OFFSET_LSB
#define QSERDES_RX_RX_EQ_OFFSET_MSB
#define QSERDES_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1
#define QSERDES_RX_RX_OFFSET_ADAPTOR_CNTRL2
#define QSERDES_RX_SIGDET_ENABLES
#define QSERDES_RX_SIGDET_CNTRL
#define QSERDES_RX_SIGDET_LVL
#define QSERDES_RX_SIGDET_DEGLITCH_CNTRL
#define QSERDES_RX_RX_BAND
#define QSERDES_RX_CDR_FREEZE_UP_DN
#define QSERDES_RX_CDR_RESET_OVERRIDE
#define QSERDES_RX_RX_INTERFACE_MODE
#define QSERDES_RX_JITTER_GEN_MODE
#define QSERDES_RX_BUJ_AMP
#define QSERDES_RX_SJ_AMP1
#define QSERDES_RX_SJ_AMP2
#define QSERDES_RX_SJ_PER1
#define QSERDES_RX_SJ_PER2
#define QSERDES_RX_BUJ_STEP_FREQ1
#define QSERDES_RX_BUJ_STEP_FREQ2
#define QSERDES_RX_PPM_OFFSET1
#define QSERDES_RX_PPM_OFFSET2
#define QSERDES_RX_SIGN_PPM_PERIOD1
#define QSERDES_RX_SIGN_PPM_PERIOD2
#define QSERDES_RX_SSC_CTRL
#define QSERDES_RX_SSC_COUNT1
#define QSERDES_RX_SSC_COUNT2
#define QSERDES_RX_RX_ALOG_INTF_OBSV_CNTL
#define QSERDES_RX_RX_PWM_ENABLE_AND_DATA
#define QSERDES_RX_RX_PWM_GEAR1_TIMEOUT_COUNT
#define QSERDES_RX_RX_PWM_GEAR2_TIMEOUT_COUNT
#define QSERDES_RX_RX_PWM_GEAR3_TIMEOUT_COUNT
#define QSERDES_RX_RX_PWM_GEAR4_TIMEOUT_COUNT
#define QSERDES_RX_PI_CTRL1
#define QSERDES_RX_PI_CTRL2
#define QSERDES_RX_PI_QUAD
#define QSERDES_RX_IDATA1
#define QSERDES_RX_IDATA2
#define QSERDES_RX_AUX_DATA1
#define QSERDES_RX_AUX_DATA2
#define QSERDES_RX_AC_JTAG_OUTP
#define QSERDES_RX_AC_JTAG_OUTN
#define QSERDES_RX_RX_SIGDET
#define QSERDES_RX_RX_VDCOFF
#define QSERDES_RX_IDAC_CAL_ON
#define QSERDES_RX_IDAC_STATUS_I
#define QSERDES_RX_IDAC_STATUS_IBAR
#define QSERDES_RX_IDAC_STATUS_Q
#define QSERDES_RX_IDAC_STATUS_QBAR
#define QSERDES_RX_IDAC_STATUS_A
#define QSERDES_RX_IDAC_STATUS_ABAR
#define QSERDES_RX_CALST_STATUS_I
#define QSERDES_RX_CALST_STATUS_Q
#define QSERDES_RX_CALST_STATUS_A
#define QSERDES_RX_RX_ALOG_INTF_OBSV
#define QSERDES_RX_READ_EQCODE
#define QSERDES_RX_READ_OFFSETCODE
#define QSERDES_RX_IA_ERROR_COUNTER_LOW
#define QSERDES_RX_IA_ERROR_COUNTER_HIGH

#endif