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


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

#ifndef QCOM_PHY_QMP_QSERDES_TXRX_V5_H_
#define QCOM_PHY_QMP_QSERDES_TXRX_V5_H_

/* Only for QMP V5 PHY - TX registers */
#define QSERDES_V5_TX_BIST_MODE_LANENO
#define QSERDES_V5_TX_BIST_INVERT
#define QSERDES_V5_TX_CLKBUF_ENABLE
#define QSERDES_V5_TX_TX_EMP_POST1_LVL
#define QSERDES_V5_TX_TX_IDLE_LVL_LARGE_AMP
#define QSERDES_V5_TX_TX_DRV_LVL
#define QSERDES_V5_TX_TX_DRV_LVL_OFFSET
#define QSERDES_V5_TX_RESET_TSYNC_EN
#define QSERDES_V5_TX_PRE_STALL_LDO_BOOST_EN
#define QSERDES_V5_TX_TX_BAND
#define QSERDES_V5_TX_SLEW_CNTL
#define QSERDES_V5_TX_INTERFACE_SELECT
#define QSERDES_V5_TX_LPB_EN
#define QSERDES_V5_TX_RES_CODE_LANE_TX
#define QSERDES_V5_TX_RES_CODE_LANE_RX
#define QSERDES_V5_TX_RES_CODE_LANE_OFFSET_TX
#define QSERDES_V5_TX_RES_CODE_LANE_OFFSET_RX
#define QSERDES_V5_TX_PERL_LENGTH1
#define QSERDES_V5_TX_PERL_LENGTH2
#define QSERDES_V5_TX_SERDES_BYP_EN_OUT
#define QSERDES_V5_TX_DEBUG_BUS_SEL
#define QSERDES_V5_TX_TRANSCEIVER_BIAS_EN
#define QSERDES_V5_TX_HIGHZ_DRVR_EN
#define QSERDES_V5_TX_TX_POL_INV
#define QSERDES_V5_TX_PARRATE_REC_DETECT_IDLE_EN
#define QSERDES_V5_TX_BIST_PATTERN1
#define QSERDES_V5_TX_BIST_PATTERN2
#define QSERDES_V5_TX_BIST_PATTERN3
#define QSERDES_V5_TX_BIST_PATTERN4
#define QSERDES_V5_TX_BIST_PATTERN5
#define QSERDES_V5_TX_BIST_PATTERN6
#define QSERDES_V5_TX_BIST_PATTERN7
#define QSERDES_V5_TX_BIST_PATTERN8
#define QSERDES_V5_TX_LANE_MODE_1
#define QSERDES_V5_TX_LANE_MODE_2
#define QSERDES_V5_TX_LANE_MODE_3
#define QSERDES_V5_TX_LANE_MODE_4
#define QSERDES_V5_TX_LANE_MODE_5
#define QSERDES_V5_TX_ATB_SEL1
#define QSERDES_V5_TX_ATB_SEL2
#define QSERDES_V5_TX_RCV_DETECT_LVL
#define QSERDES_V5_TX_RCV_DETECT_LVL_2
#define QSERDES_V5_TX_PRBS_SEED1
#define QSERDES_V5_TX_PRBS_SEED2
#define QSERDES_V5_TX_PRBS_SEED3
#define QSERDES_V5_TX_PRBS_SEED4
#define QSERDES_V5_TX_RESET_GEN
#define QSERDES_V5_TX_RESET_GEN_MUXES
#define QSERDES_V5_TX_TRAN_DRVR_EMP_EN
#define QSERDES_V5_TX_TX_INTERFACE_MODE
#define QSERDES_V5_TX_VMODE_CTRL1
#define QSERDES_V5_TX_ALOG_OBSV_BUS_CTRL_1
#define QSERDES_V5_TX_BIST_STATUS
#define QSERDES_V5_TX_BIST_ERROR_COUNT1
#define QSERDES_V5_TX_BIST_ERROR_COUNT2
#define QSERDES_V5_TX_ALOG_OBSV_BUS_STATUS_1
#define QSERDES_V5_TX_LANE_DIG_CONFIG
#define QSERDES_V5_TX_PI_QEC_CTRL
#define QSERDES_V5_TX_PRE_EMPH
#define QSERDES_V5_TX_SW_RESET
#define QSERDES_V5_TX_DCC_OFFSET
#define QSERDES_V5_TX_DCC_CMUX_POSTCAL_OFFSET
#define QSERDES_V5_TX_DCC_CMUX_CAL_CTRL1
#define QSERDES_V5_TX_DCC_CMUX_CAL_CTRL2
#define QSERDES_V5_TX_DIG_BKUP_CTRL
#define QSERDES_V5_TX_DEBUG_BUS0
#define QSERDES_V5_TX_DEBUG_BUS1
#define QSERDES_V5_TX_DEBUG_BUS2
#define QSERDES_V5_TX_DEBUG_BUS3
#define QSERDES_V5_TX_READ_EQCODE
#define QSERDES_V5_TX_READ_OFFSETCODE
#define QSERDES_V5_TX_IA_ERROR_COUNTER_LOW
#define QSERDES_V5_TX_IA_ERROR_COUNTER_HIGH
#define QSERDES_V5_TX_VGA_READ_CODE
#define QSERDES_V5_TX_VTH_READ_CODE
#define QSERDES_V5_TX_DFE_TAP1_READ_CODE
#define QSERDES_V5_TX_DFE_TAP2_READ_CODE
#define QSERDES_V5_TX_IDAC_STATUS_I
#define QSERDES_V5_TX_IDAC_STATUS_IBAR
#define QSERDES_V5_TX_IDAC_STATUS_Q
#define QSERDES_V5_TX_IDAC_STATUS_QBAR
#define QSERDES_V5_TX_IDAC_STATUS_A
#define QSERDES_V5_TX_IDAC_STATUS_ABAR
#define QSERDES_V5_TX_IDAC_STATUS_SM_ON
#define QSERDES_V5_TX_IDAC_STATUS_CAL_DONE
#define QSERDES_V5_TX_IDAC_STATUS_SIGNERROR
#define QSERDES_V5_TX_DCC_CAL_STATUS
#define QSERDES_V5_TX_DCC_READ_CODE_STATUS

/* Only for QMP V5 PHY - RX registers */
#define QSERDES_V5_RX_UCDR_FO_GAIN_HALF
#define QSERDES_V5_RX_UCDR_FO_GAIN_QUARTER
#define QSERDES_V5_RX_UCDR_FO_GAIN
#define QSERDES_V5_RX_UCDR_SO_GAIN_HALF
#define QSERDES_V5_RX_UCDR_SO_GAIN_QUARTER
#define QSERDES_V5_RX_UCDR_SO_GAIN
#define QSERDES_V5_RX_UCDR_SVS_FO_GAIN_HALF
#define QSERDES_V5_RX_UCDR_SVS_FO_GAIN_QUARTER
#define QSERDES_V5_RX_UCDR_SVS_FO_GAIN
#define QSERDES_V5_RX_UCDR_SVS_SO_GAIN_HALF
#define QSERDES_V5_RX_UCDR_SVS_SO_GAIN_QUARTER
#define QSERDES_V5_RX_UCDR_SVS_SO_GAIN
#define QSERDES_V5_RX_UCDR_FASTLOCK_FO_GAIN
#define QSERDES_V5_RX_UCDR_SO_SATURATION_AND_ENABLE
#define QSERDES_V5_RX_UCDR_FO_TO_SO_DELAY
#define QSERDES_V5_RX_UCDR_FASTLOCK_COUNT_LOW
#define QSERDES_V5_RX_UCDR_FASTLOCK_COUNT_HIGH
#define QSERDES_V5_RX_UCDR_PI_CONTROLS
#define QSERDES_V5_RX_UCDR_PI_CTRL2
#define QSERDES_V5_RX_UCDR_SB2_THRESH1
#define QSERDES_V5_RX_UCDR_SB2_THRESH2
#define QSERDES_V5_RX_UCDR_SB2_GAIN1
#define QSERDES_V5_RX_UCDR_SB2_GAIN2
#define QSERDES_V5_RX_AUX_CONTROL
#define QSERDES_V5_RX_AUX_DATA_TCOARSE_TFINE
#define QSERDES_V5_RX_RCLK_AUXDATA_SEL
#define QSERDES_V5_RX_AC_JTAG_ENABLE
#define QSERDES_V5_RX_AC_JTAG_INITP
#define QSERDES_V5_RX_AC_JTAG_INITN
#define QSERDES_V5_RX_AC_JTAG_LVL
#define QSERDES_V5_RX_AC_JTAG_MODE
#define QSERDES_V5_RX_AC_JTAG_RESET
#define QSERDES_V5_RX_RX_TERM_BW
#define QSERDES_V5_RX_RX_RCVR_IQ_EN
#define QSERDES_V5_RX_RX_IDAC_I_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_IBAR_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_Q_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_QBAR_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_A_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_ABAR_DC_OFFSETS
#define QSERDES_V5_RX_RX_IDAC_EN
#define QSERDES_V5_RX_RX_IDAC_ENABLES
#define QSERDES_V5_RX_RX_IDAC_SIGN
#define QSERDES_V5_RX_RX_HIGHZ_HIGHRATE
#define QSERDES_V5_RX_RX_TERM_AC_BYPASS_DC_COUPLE_OFFSET
#define QSERDES_V5_RX_DFE_1
#define QSERDES_V5_RX_DFE_2
#define QSERDES_V5_RX_DFE_3
#define QSERDES_V5_RX_DFE_4
#define QSERDES_V5_RX_TX_ADAPT_PRE_THRESH1
#define QSERDES_V5_RX_TX_ADAPT_PRE_THRESH2
#define QSERDES_V5_RX_TX_ADAPT_POST_THRESH
#define QSERDES_V5_RX_TX_ADAPT_MAIN_THRESH
#define QSERDES_V5_RX_VGA_CAL_CNTRL1
#define QSERDES_V5_RX_VGA_CAL_CNTRL2
#define QSERDES_V5_RX_GM_CAL
#define QSERDES_V5_RX_RX_VGA_GAIN2_LSB
#define QSERDES_V5_RX_RX_VGA_GAIN2_MSB
#define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL1
#define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL2
#define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL3
#define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL4
#define QSERDES_V5_RX_RX_IDAC_TSETTLE_LOW
#define QSERDES_V5_RX_RX_IDAC_TSETTLE_HIGH
#define QSERDES_V5_RX_RX_IDAC_MEASURE_TIME
#define QSERDES_V5_RX_RX_IDAC_ACCUMULATOR
#define QSERDES_V5_RX_RX_EQ_OFFSET_LSB
#define QSERDES_V5_RX_RX_EQ_OFFSET_MSB
#define QSERDES_V5_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1
#define QSERDES_V5_RX_RX_OFFSET_ADAPTOR_CNTRL2
#define QSERDES_V5_RX_SIGDET_ENABLES
#define QSERDES_V5_RX_SIGDET_CNTRL
#define QSERDES_V5_RX_SIGDET_LVL
#define QSERDES_V5_RX_SIGDET_DEGLITCH_CNTRL
#define QSERDES_V5_RX_RX_BAND
#define QSERDES_V5_RX_CDR_FREEZE_UP_DN
#define QSERDES_V5_RX_CDR_RESET_OVERRIDE
#define QSERDES_V5_RX_RX_INTERFACE_MODE
#define QSERDES_V5_RX_JITTER_GEN_MODE
#define QSERDES_V5_RX_SJ_AMP1
#define QSERDES_V5_RX_SJ_AMP2
#define QSERDES_V5_RX_SJ_PER1
#define QSERDES_V5_RX_SJ_PER2
#define QSERDES_V5_RX_PPM_OFFSET1
#define QSERDES_V5_RX_PPM_OFFSET2
#define QSERDES_V5_RX_SIGN_PPM_PERIOD1
#define QSERDES_V5_RX_SIGN_PPM_PERIOD2
#define QSERDES_V5_RX_RX_MODE_00_LOW
#define QSERDES_V5_RX_RX_MODE_00_HIGH
#define QSERDES_V5_RX_RX_MODE_00_HIGH2
#define QSERDES_V5_RX_RX_MODE_00_HIGH3
#define QSERDES_V5_RX_RX_MODE_00_HIGH4
#define QSERDES_V5_RX_RX_MODE_01_LOW
#define QSERDES_V5_RX_RX_MODE_01_HIGH
#define QSERDES_V5_RX_RX_MODE_01_HIGH2
#define QSERDES_V5_RX_RX_MODE_01_HIGH3
#define QSERDES_V5_RX_RX_MODE_01_HIGH4
#define QSERDES_V5_RX_RX_MODE_10_LOW
#define QSERDES_V5_RX_RX_MODE_10_HIGH
#define QSERDES_V5_RX_RX_MODE_10_HIGH2
#define QSERDES_V5_RX_RX_MODE_10_HIGH3
#define QSERDES_V5_RX_RX_MODE_10_HIGH4
#define QSERDES_V5_RX_PHPRE_CTRL
#define QSERDES_V5_RX_PHPRE_INITVAL
#define QSERDES_V5_RX_DFE_EN_TIMER
#define QSERDES_V5_RX_DFE_CTLE_POST_CAL_OFFSET
#define QSERDES_V5_RX_DCC_CTRL1
#define QSERDES_V5_RX_DCC_CTRL2
#define QSERDES_V5_RX_VTH_CODE
#define QSERDES_V5_RX_VTH_MIN_THRESH
#define QSERDES_V5_RX_VTH_MAX_THRESH
#define QSERDES_V5_RX_ALOG_OBSV_BUS_CTRL_1
#define QSERDES_V5_RX_PI_CTRL1
#define QSERDES_V5_RX_PI_CTRL2
#define QSERDES_V5_RX_PI_QUAD
#define QSERDES_V5_RX_IDATA1
#define QSERDES_V5_RX_IDATA2
#define QSERDES_V5_RX_AUX_DATA1
#define QSERDES_V5_RX_AUX_DATA2
#define QSERDES_V5_RX_AC_JTAG_OUTP
#define QSERDES_V5_RX_AC_JTAG_OUTN
#define QSERDES_V5_RX_RX_SIGDET
#define QSERDES_V5_RX_ALOG_OBSV_BUS_STATUS_1

/* Only for QMP V5 UFS ? */
#define QSERDES_V5_TX_PWM_GEAR_1_DIVIDER_BAND0_1
#define QSERDES_V5_TX_PWM_GEAR_2_DIVIDER_BAND0_1
#define QSERDES_V5_TX_PWM_GEAR_3_DIVIDER_BAND0_1
#define QSERDES_V5_TX_PWM_GEAR_4_DIVIDER_BAND0_1

#endif