1*41ad371fSDmitry Baryshkov /* SPDX-License-Identifier: GPL-2.0 */ 2*41ad371fSDmitry Baryshkov /* 3*41ad371fSDmitry Baryshkov * Copyright (c) 2017, The Linux Foundation. All rights reserved. 4*41ad371fSDmitry Baryshkov */ 5*41ad371fSDmitry Baryshkov 6*41ad371fSDmitry Baryshkov #ifndef QCOM_PHY_QMP_PCS_V4_H_ 7*41ad371fSDmitry Baryshkov #define QCOM_PHY_QMP_PCS_V4_H_ 8*41ad371fSDmitry Baryshkov 9*41ad371fSDmitry Baryshkov /* Only for QMP V4 PHY - USB/PCIe PCS registers */ 10*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_SW_RESET 0x000 11*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REVISION_ID0 0x004 12*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REVISION_ID1 0x008 13*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REVISION_ID2 0x00c 14*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REVISION_ID3 0x010 15*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS1 0x014 16*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS2 0x018 17*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS3 0x01c 18*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS4 0x020 19*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS5 0x024 20*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS6 0x028 21*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_STATUS7 0x02c 22*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_DEBUG_BUS_0_STATUS 0x030 23*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_DEBUG_BUS_1_STATUS 0x034 24*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_DEBUG_BUS_2_STATUS 0x038 25*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_DEBUG_BUS_3_STATUS 0x03c 26*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_POWER_DOWN_CONTROL 0x040 27*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_START_CONTROL 0x044 28*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL1 0x048 29*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL2 0x04c 30*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL3 0x050 31*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL4 0x054 32*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL5 0x058 33*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL6 0x05c 34*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL7 0x060 35*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_SW_CTRL8 0x064 36*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL1 0x068 37*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL2 0x06c 38*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL3 0x070 39*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL4 0x074 40*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL5 0x078 41*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL7 0x07c 42*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_INSIG_MX_CTRL8 0x080 43*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_OUTSIG_SW_CTRL1 0x084 44*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_OUTSIG_MX_CTRL1 0x088 45*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_CLAMP_ENABLE 0x08c 46*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_POWER_STATE_CONFIG1 0x090 47*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_POWER_STATE_CONFIG2 0x094 48*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FLL_CNTRL1 0x098 49*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FLL_CNTRL2 0x09c 50*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FLL_CNT_VAL_L 0x0a0 51*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FLL_CNT_VAL_H_TOL 0x0a4 52*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FLL_MAN_CODE 0x0a8 53*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL1 0x0ac 54*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL2 0x0b0 55*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL3 0x0b4 56*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL4 0x0b8 57*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL5 0x0bc 58*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TEST_CONTROL6 0x0c0 59*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG1 0x0c4 60*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG2 0x0c8 61*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG3 0x0cc 62*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG4 0x0d0 63*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG5 0x0d4 64*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_LOCK_DETECT_CONFIG6 0x0d8 65*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REFGEN_REQ_CONFIG1 0x0dc 66*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REFGEN_REQ_CONFIG2 0x0e0 67*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_REFGEN_REQ_CONFIG3 0x0e4 68*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_BIST_CTRL 0x0e8 69*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PRBS_POLY0 0x0ec 70*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PRBS_POLY1 0x0f0 71*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT0 0x0f4 72*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT1 0x0f8 73*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT2 0x0fc 74*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT3 0x100 75*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT4 0x104 76*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT5 0x108 77*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT6 0x10c 78*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT7 0x110 79*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT8 0x114 80*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT9 0x118 81*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT10 0x11c 82*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT11 0x120 83*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT12 0x124 84*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT13 0x128 85*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT14 0x12c 86*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_FIXED_PAT15 0x130 87*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TXMGN_CONFIG 0x134 88*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V0 0x138 89*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V1 0x13c 90*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V2 0x140 91*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V3 0x144 92*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V4 0x148 93*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V0_RS 0x14c 94*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V1_RS 0x150 95*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V2_RS 0x154 96*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V3_RS 0x158 97*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXMGN_V4_RS 0x15c 98*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_TXMGN_MAIN 0x160 99*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_TXMGN_MAIN_RS 0x164 100*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXDEEMPH_M6DB 0x168 101*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G12S1_TXDEEMPH_M3P5DB 0x16c 102*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_PRE_GAIN 0x170 103*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_POST_GAIN 0x174 104*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET 0x178 105*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_PRE_GAIN_RS 0x17c 106*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_POST_GAIN_RS 0x180 107*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET_RS 0x184 108*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RX_SIGDET_LVL 0x188 109*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RX_SIGDET_DTCT_CNTRL 0x18c 110*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_L 0x190 111*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_H 0x194 112*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RATE_SLEW_CNTRL1 0x198 113*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RATE_SLEW_CNTRL2 0x19c 114*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PWRUP_RESET_DLY_TIME_AUXCLK 0x1a0 115*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_L 0x1a4 116*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_H 0x1a8 117*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TSYNC_RSYNC_TIME 0x1ac 118*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_CDR_RESET_TIME 0x1b0 119*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_TSYNC_DLY_TIME 0x1b4 120*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_ELECIDLE_DLY_SEL 0x1b8 121*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_CMN_ACK_OUT_SEL 0x1bc 122*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG1 0x1c0 123*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG2 0x1c4 124*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG3 0x1c8 125*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG4 0x1cc 126*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_PCS_TX_RX_CONFIG 0x1d0 127*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RX_IDLE_DTCT_CNTRL 0x1d4 128*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_RX_DCC_CAL_CONFIG 0x1d8 129*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_EQ_CONFIG1 0x1dc 130*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_EQ_CONFIG2 0x1e0 131*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_EQ_CONFIG3 0x1e4 132*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_EQ_CONFIG4 0x1e8 133*41ad371fSDmitry Baryshkov #define QPHY_V4_PCS_EQ_CONFIG5 0x1ec 134*41ad371fSDmitry Baryshkov 135*41ad371fSDmitry Baryshkov #endif 136