linux/drivers/phy/qualcomm/phy-qcom-qmp-dp-phy.h

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

#ifndef QCOM_PHY_QMP_DP_PHY_H_
#define QCOM_PHY_QMP_DP_PHY_H_

/* QMP PHY - DP PHY registers */
#define QSERDES_DP_PHY_REVISION_ID0
#define QSERDES_DP_PHY_REVISION_ID1
#define QSERDES_DP_PHY_REVISION_ID2
#define QSERDES_DP_PHY_REVISION_ID3
#define QSERDES_DP_PHY_CFG
#define QSERDES_DP_PHY_CFG_1
#define QSERDES_DP_PHY_PD_CTL
#define QSERDES_DP_PHY_MODE
#define QSERDES_DP_PHY_AUX_CFG0
#define QSERDES_DP_PHY_AUX_CFG1
#define QSERDES_DP_PHY_AUX_CFG2
#define QSERDES_DP_PHY_AUX_CFG3
#define QSERDES_DP_PHY_AUX_CFG4
#define QSERDES_DP_PHY_AUX_CFG5
#define QSERDES_DP_PHY_AUX_CFG6
#define QSERDES_DP_PHY_AUX_CFG7
#define QSERDES_DP_PHY_AUX_CFG8
#define QSERDES_DP_PHY_AUX_CFG9

/* QSERDES COM_BIAS_EN_CLKBUFLR_EN bits */
#define QSERDES_V3_COM_BIAS_EN
#define QSERDES_V3_COM_BIAS_EN_MUX
#define QSERDES_V3_COM_CLKBUF_R_EN
#define QSERDES_V3_COM_CLKBUF_L_EN
#define QSERDES_V3_COM_EN_SYSCLK_TX_SEL
#define QSERDES_V3_COM_CLKBUF_RX_DRIVE_L
#define QSERDES_V3_COM_CLKBUF_RX_DRIVE_R

/* QPHY_TX_TX_EMP_POST1_LVL bits */
#define DP_PHY_TXn_TX_EMP_POST1_LVL_MASK
#define DP_PHY_TXn_TX_EMP_POST1_LVL_MUX_EN

/* QPHY_TX_TX_DRV_LVL bits */
#define DP_PHY_TXn_TX_DRV_LVL_MASK
#define DP_PHY_TXn_TX_DRV_LVL_MUX_EN

/* QSERDES_DP_PHY_PD_CTL bits */
#define DP_PHY_PD_CTL_PWRDN
#define DP_PHY_PD_CTL_PSR_PWRDN
#define DP_PHY_PD_CTL_AUX_PWRDN
#define DP_PHY_PD_CTL_LANE_0_1_PWRDN
#define DP_PHY_PD_CTL_LANE_2_3_PWRDN
#define DP_PHY_PD_CTL_PLL_PWRDN
#define DP_PHY_PD_CTL_DP_CLAMP_EN

/* QPHY_DP_PHY_AUX_INTERRUPT_STATUS bits */
#define PHY_AUX_STOP_ERR_MASK
#define PHY_AUX_DEC_ERR_MASK
#define PHY_AUX_SYNC_ERR_MASK
#define PHY_AUX_ALIGN_ERR_MASK
#define PHY_AUX_REQ_ERR_MASK

#endif