1a3a06415SNishad Kamdar /* SPDX-License-Identifier: GPL-2.0 */
2e2248617SManu Gautam /*
3e2248617SManu Gautam  * Copyright (c) 2017, The Linux Foundation. All rights reserved.
4e2248617SManu Gautam  */
5e2248617SManu Gautam 
6e2248617SManu Gautam #ifndef QCOM_PHY_QMP_H_
7e2248617SManu Gautam #define QCOM_PHY_QMP_H_
8e2248617SManu Gautam 
9520264dbSSelvam Sathappan Periakaruppan /* QMP V2 PHY for PCIE gen3 ports - QSERDES PLL registers */
10520264dbSSelvam Sathappan Periakaruppan 
11520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_BG_TIMER				0x00c
12520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_PER1				0x01c
13520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_PER2				0x020
14520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_STEP_SIZE1_MODE0		0x024
15520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_STEP_SIZE2_MODE0		0x028
16520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_STEP_SIZE1_MODE1		0x02c
17520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SSC_STEP_SIZE2_MODE1		0x030
18520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_BIAS_EN_CLKBUFLR_EN			0x03c
19520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CLK_ENABLE1				0x040
20520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SYS_CLK_CTRL			0x044
21520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SYSCLK_BUF_ENABLE			0x048
22520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_PLL_IVCO				0x050
23520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_LOCK_CMP1_MODE0			0x054
24520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_LOCK_CMP2_MODE0			0x058
25520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_LOCK_CMP1_MODE1			0x060
26520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_LOCK_CMP2_MODE1			0x064
27520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_BG_TRIM				0x074
28520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CLK_EP_DIV_MODE0			0x078
29520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CLK_EP_DIV_MODE1			0x07c
30520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CP_CTRL_MODE0			0x080
31520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CP_CTRL_MODE1			0x084
32520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_PLL_RCTRL_MODE0			0x088
33fe841d5bSJohan Hovold #define QSERDES_PLL_PLL_RCTRL_MODE1			0x08c
34520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_PLL_CCTRL_MODE0			0x090
35520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_PLL_CCTRL_MODE1			0x094
36520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_BIAS_EN_CTRL_BY_PSM			0x0a4
37520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SYSCLK_EN_SEL			0x0a8
38520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_RESETSM_CNTRL			0x0b0
39520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_LOCK_CMP_EN				0x0c4
40520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DEC_START_MODE0			0x0cc
41520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DEC_START_MODE1			0x0d0
42520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DIV_FRAC_START1_MODE0		0x0d8
43520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DIV_FRAC_START2_MODE0		0x0dc
44520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DIV_FRAC_START3_MODE0		0x0e0
45520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DIV_FRAC_START1_MODE1		0x0e4
46520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_DIV_FRAC_START2_MODE1		0x0e8
47fe841d5bSJohan Hovold #define QSERDES_PLL_DIV_FRAC_START3_MODE1		0x0ec
48520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_INTEGLOOP_GAIN0_MODE0		0x100
49520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_INTEGLOOP_GAIN1_MODE0		0x104
50520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_INTEGLOOP_GAIN0_MODE1		0x108
51520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_INTEGLOOP_GAIN1_MODE1		0x10c
52520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE_MAP			0x120
53520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE1_MODE0			0x124
54520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE2_MODE0			0x128
55520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE1_MODE1			0x12c
56520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE2_MODE1			0x130
57520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE_TIMER1			0x13c
58520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_VCO_TUNE_TIMER2			0x140
59520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CLK_SELECT				0x16c
60520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_HSCLK_SEL				0x170
61520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CORECLK_DIV				0x17c
62520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CORE_CLK_EN				0x184
63520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CMN_CONFIG				0x18c
64520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_SVS_MODE_CLK_SEL			0x194
65520264dbSSelvam Sathappan Periakaruppan #define QSERDES_PLL_CORECLK_DIV_MODE1			0x1b4
66520264dbSSelvam Sathappan Periakaruppan 
67520264dbSSelvam Sathappan Periakaruppan /* QMP V2 PHY for PCIE gen3 ports - QSERDES TX registers */
68520264dbSSelvam Sathappan Periakaruppan 
69520264dbSSelvam Sathappan Periakaruppan #define QSERDES_TX0_RES_CODE_LANE_OFFSET_TX		0x03c
70520264dbSSelvam Sathappan Periakaruppan #define QSERDES_TX0_HIGHZ_DRVR_EN			0x058
71520264dbSSelvam Sathappan Periakaruppan #define QSERDES_TX0_LANE_MODE_1				0x084
72520264dbSSelvam Sathappan Periakaruppan #define QSERDES_TX0_RCV_DETECT_LVL_2			0x09c
73520264dbSSelvam Sathappan Periakaruppan 
74520264dbSSelvam Sathappan Periakaruppan /* QMP V2 PHY for PCIE gen3 ports - QSERDES RX registers */
75520264dbSSelvam Sathappan Periakaruppan 
76520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_UCDR_FO_GAIN			0x008
77520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_UCDR_SO_GAIN			0x014
78520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_UCDR_SO_SATURATION_AND_ENABLE	0x034
79520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_UCDR_PI_CONTROLS			0x044
80520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_EQU_ADAPTOR_CNTRL2		0x0ec
81520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_EQU_ADAPTOR_CNTRL3		0x0f0
82520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_EQU_ADAPTOR_CNTRL4		0x0f4
83520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_IDAC_TSETTLE_LOW			0x0f8
84520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_IDAC_TSETTLE_HIGH		0x0fc
85520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_EQ_OFFSET_ADAPTOR_CNTRL1		0x110
86520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_OFFSET_ADAPTOR_CNTRL2		0x114
87520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_SIGDET_ENABLES			0x118
88520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_SIGDET_CNTRL			0x11c
89520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_SIGDET_DEGLITCH_CNTRL		0x124
90520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_00_LOW			0x170
91520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_00_HIGH			0x174
92520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_00_HIGH2			0x178
93520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_00_HIGH3			0x17c
94520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_00_HIGH4			0x180
95520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_01_LOW			0x184
96520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_01_HIGH			0x188
97520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_01_HIGH2			0x18c
98520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_01_HIGH3			0x190
99520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_01_HIGH4			0x194
100520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_10_LOW			0x198
101520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_10_HIGH			0x19c
102520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_10_HIGH2			0x1a0
103520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_10_HIGH3			0x1a4
104520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_RX_MODE_10_HIGH4			0x1a8
105520264dbSSelvam Sathappan Periakaruppan #define QSERDES_RX0_DFE_EN_TIMER			0x1b4
106520264dbSSelvam Sathappan Periakaruppan 
107520264dbSSelvam Sathappan Periakaruppan /* QMP V2 PHY for PCIE gen3 ports - PCS registers */
108520264dbSSelvam Sathappan Periakaruppan 
109520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_FLL_CNTRL1				0x098
110520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_FLL_CNTRL2				0x09c
111520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_FLL_CNT_VAL_L				0x0a0
112520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_FLL_CNT_VAL_H_TOL			0x0a4
113520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_FLL_MAN_CODE				0x0a8
114520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_REFGEN_REQ_CONFIG1			0x0dc
115520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_G12S1_TXDEEMPH_M3P5DB			0x16c
116520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_RX_SIGDET_LVL				0x188
117520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_P2U3_WAKEUP_DLY_TIME_AUXCLK_L		0x1a4
118520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_P2U3_WAKEUP_DLY_TIME_AUXCLK_H		0x1a8
119520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_RX_DCC_CAL_CONFIG			0x1d8
120520264dbSSelvam Sathappan Periakaruppan #define PCS_COM_EQ_CONFIG5				0x1ec
121520264dbSSelvam Sathappan Periakaruppan 
122520264dbSSelvam Sathappan Periakaruppan /* QMP V2 PHY for PCIE gen3 ports - PCS Misc registers */
123520264dbSSelvam Sathappan Periakaruppan 
124*af664324SDmitry Baryshkov #define PCS_PCIE_POWER_STATE_CONFIG2			0x00c
125*af664324SDmitry Baryshkov #define PCS_PCIE_POWER_STATE_CONFIG4			0x014
126*af664324SDmitry Baryshkov #define PCS_PCIE_ENDPOINT_REFCLK_DRIVE			0x01c
127*af664324SDmitry Baryshkov #define PCS_PCIE_L1P1_WAKEUP_DLY_TIME_AUXCLK_L		0x040
128*af664324SDmitry Baryshkov #define PCS_PCIE_L1P1_WAKEUP_DLY_TIME_AUXCLK_H		0x044
129*af664324SDmitry Baryshkov #define PCS_PCIE_L1P2_WAKEUP_DLY_TIME_AUXCLK_L		0x048
130*af664324SDmitry Baryshkov #define PCS_PCIE_L1P2_WAKEUP_DLY_TIME_AUXCLK_H		0x04c
131*af664324SDmitry Baryshkov #define PCS_PCIE_OSC_DTCT_CONFIG2			0x05c
132*af664324SDmitry Baryshkov #define PCS_PCIE_OSC_DTCT_MODE2_CONFIG2			0x078
133*af664324SDmitry Baryshkov #define PCS_PCIE_OSC_DTCT_MODE2_CONFIG4			0x080
134*af664324SDmitry Baryshkov #define PCS_PCIE_OSC_DTCT_MODE2_CONFIG5			0x084
135*af664324SDmitry Baryshkov #define PCS_PCIE_OSC_DTCT_ACTIONS			0x090
136*af664324SDmitry Baryshkov #define PCS_PCIE_EQ_CONFIG1				0x0a0
137*af664324SDmitry Baryshkov #define PCS_PCIE_EQ_CONFIG2				0x0a4
138*af664324SDmitry Baryshkov #define PCS_PCIE_PRESET_P10_PRE				0x0bc
139*af664324SDmitry Baryshkov #define PCS_PCIE_PRESET_P10_POST			0x0e0
140520264dbSSelvam Sathappan Periakaruppan 
141e2248617SManu Gautam /* Only for QMP V2 PHY - QSERDES COM registers */
142e2248617SManu Gautam #define QSERDES_COM_BG_TIMER				0x00c
143e2248617SManu Gautam #define QSERDES_COM_SSC_EN_CENTER			0x010
144e2248617SManu Gautam #define QSERDES_COM_SSC_ADJ_PER1			0x014
145e2248617SManu Gautam #define QSERDES_COM_SSC_ADJ_PER2			0x018
146e2248617SManu Gautam #define QSERDES_COM_SSC_PER1				0x01c
147e2248617SManu Gautam #define QSERDES_COM_SSC_PER2				0x020
148e2248617SManu Gautam #define QSERDES_COM_SSC_STEP_SIZE1			0x024
149e2248617SManu Gautam #define QSERDES_COM_SSC_STEP_SIZE2			0x028
150e2248617SManu Gautam #define QSERDES_COM_BIAS_EN_CLKBUFLR_EN			0x034
151e2248617SManu Gautam #define QSERDES_COM_CLK_ENABLE1				0x038
152e2248617SManu Gautam #define QSERDES_COM_SYS_CLK_CTRL			0x03c
153e2248617SManu Gautam #define QSERDES_COM_SYSCLK_BUF_ENABLE			0x040
154e2248617SManu Gautam #define QSERDES_COM_PLL_IVCO				0x048
155e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP1_MODE0			0x04c
156e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP2_MODE0			0x050
157e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP3_MODE0			0x054
158e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP1_MODE1			0x058
159e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP2_MODE1			0x05c
160e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP3_MODE1			0x060
161e2248617SManu Gautam #define QSERDES_COM_BG_TRIM				0x070
162e2248617SManu Gautam #define QSERDES_COM_CLK_EP_DIV				0x074
163e2248617SManu Gautam #define QSERDES_COM_CP_CTRL_MODE0			0x078
164e2248617SManu Gautam #define QSERDES_COM_CP_CTRL_MODE1			0x07c
165e2248617SManu Gautam #define QSERDES_COM_PLL_RCTRL_MODE0			0x084
166e2248617SManu Gautam #define QSERDES_COM_PLL_RCTRL_MODE1			0x088
167e2248617SManu Gautam #define QSERDES_COM_PLL_CCTRL_MODE0			0x090
168e2248617SManu Gautam #define QSERDES_COM_PLL_CCTRL_MODE1			0x094
169e2248617SManu Gautam #define QSERDES_COM_BIAS_EN_CTRL_BY_PSM			0x0a8
170e2248617SManu Gautam #define QSERDES_COM_SYSCLK_EN_SEL			0x0ac
171e2248617SManu Gautam #define QSERDES_COM_RESETSM_CNTRL			0x0b4
1728abe5e77SShawn Guo #define QSERDES_COM_RESETSM_CNTRL2			0x0b8
173e2248617SManu Gautam #define QSERDES_COM_RESTRIM_CTRL			0x0bc
174e2248617SManu Gautam #define QSERDES_COM_RESCODE_DIV_NUM			0x0c4
175e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP_EN				0x0c8
176e2248617SManu Gautam #define QSERDES_COM_LOCK_CMP_CFG			0x0cc
177e2248617SManu Gautam #define QSERDES_COM_DEC_START_MODE0			0x0d0
178e2248617SManu Gautam #define QSERDES_COM_DEC_START_MODE1			0x0d4
179e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START1_MODE0		0x0dc
180e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START2_MODE0		0x0e0
181e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START3_MODE0		0x0e4
182e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START1_MODE1		0x0e8
183e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START2_MODE1		0x0ec
184e2248617SManu Gautam #define QSERDES_COM_DIV_FRAC_START3_MODE1		0x0f0
1858abe5e77SShawn Guo #define QSERDES_COM_INTEGLOOP_INITVAL			0x100
186e2248617SManu Gautam #define QSERDES_COM_INTEGLOOP_GAIN0_MODE0		0x108
187e2248617SManu Gautam #define QSERDES_COM_INTEGLOOP_GAIN1_MODE0		0x10c
188e2248617SManu Gautam #define QSERDES_COM_INTEGLOOP_GAIN0_MODE1		0x110
189e2248617SManu Gautam #define QSERDES_COM_INTEGLOOP_GAIN1_MODE1		0x114
190e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE_CTRL			0x124
191e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE_MAP			0x128
192e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE1_MODE0			0x12c
193e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE2_MODE0			0x130
194e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE1_MODE1			0x134
195e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE2_MODE1			0x138
196152a810eSIskren Chernev #define QSERDES_COM_VCO_TUNE_INITVAL1			0x13c
197152a810eSIskren Chernev #define QSERDES_COM_VCO_TUNE_INITVAL2			0x140
198e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE_TIMER1			0x144
199e2248617SManu Gautam #define QSERDES_COM_VCO_TUNE_TIMER2			0x148
200e2248617SManu Gautam #define QSERDES_COM_BG_CTRL				0x170
201e2248617SManu Gautam #define QSERDES_COM_CLK_SELECT				0x174
202e2248617SManu Gautam #define QSERDES_COM_HSCLK_SEL				0x178
203e2248617SManu Gautam #define QSERDES_COM_CORECLK_DIV				0x184
204e2248617SManu Gautam #define QSERDES_COM_CORE_CLK_EN				0x18c
205e2248617SManu Gautam #define QSERDES_COM_C_READY_STATUS			0x190
206e2248617SManu Gautam #define QSERDES_COM_CMN_CONFIG				0x194
207e2248617SManu Gautam #define QSERDES_COM_SVS_MODE_CLK_SEL			0x19c
208e2248617SManu Gautam #define QSERDES_COM_DEBUG_BUS0				0x1a0
209e2248617SManu Gautam #define QSERDES_COM_DEBUG_BUS1				0x1a4
210e2248617SManu Gautam #define QSERDES_COM_DEBUG_BUS2				0x1a8
211e2248617SManu Gautam #define QSERDES_COM_DEBUG_BUS3				0x1ac
212e2248617SManu Gautam #define QSERDES_COM_DEBUG_BUS_SEL			0x1b0
213e2248617SManu Gautam #define QSERDES_COM_CORECLK_DIV_MODE1			0x1bc
214e2248617SManu Gautam 
215e2248617SManu Gautam /* Only for QMP V2 PHY - TX registers */
216afd55e6dSSivaprakash Murugesan #define QSERDES_TX_EMP_POST1_LVL			0x018
217afd55e6dSSivaprakash Murugesan #define QSERDES_TX_SLEW_CNTL				0x040
218e2248617SManu Gautam #define QSERDES_TX_RES_CODE_LANE_OFFSET			0x054
219e2248617SManu Gautam #define QSERDES_TX_DEBUG_BUS_SEL			0x064
220e2248617SManu Gautam #define QSERDES_TX_HIGHZ_TRANSCEIVEREN_BIAS_DRVR_EN	0x068
221e2248617SManu Gautam #define QSERDES_TX_LANE_MODE				0x094
222e2248617SManu Gautam #define QSERDES_TX_RCV_DETECT_LVL_2			0x0ac
223e2248617SManu Gautam 
224e2248617SManu Gautam /* Only for QMP V2 PHY - RX registers */
225e2248617SManu Gautam #define QSERDES_RX_UCDR_SO_GAIN_HALF			0x010
226e2248617SManu Gautam #define QSERDES_RX_UCDR_SO_GAIN				0x01c
227152a810eSIskren Chernev #define QSERDES_RX_UCDR_SVS_SO_GAIN_HALF		0x030
228152a810eSIskren Chernev #define QSERDES_RX_UCDR_SVS_SO_GAIN_QUARTER		0x034
229152a810eSIskren Chernev #define QSERDES_RX_UCDR_SVS_SO_GAIN_EIGHTH		0x038
230152a810eSIskren Chernev #define QSERDES_RX_UCDR_SVS_SO_GAIN			0x03c
231e2248617SManu Gautam #define QSERDES_RX_UCDR_FASTLOCK_FO_GAIN		0x040
232e2248617SManu Gautam #define QSERDES_RX_UCDR_SO_SATURATION_AND_ENABLE	0x048
233e2248617SManu Gautam #define QSERDES_RX_RX_TERM_BW				0x090
234e2248617SManu Gautam #define QSERDES_RX_RX_EQ_GAIN1_LSB			0x0c4
235e2248617SManu Gautam #define QSERDES_RX_RX_EQ_GAIN1_MSB			0x0c8
236e2248617SManu Gautam #define QSERDES_RX_RX_EQ_GAIN2_LSB			0x0cc
237e2248617SManu Gautam #define QSERDES_RX_RX_EQ_GAIN2_MSB			0x0d0
238e2248617SManu Gautam #define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL2		0x0d8
239e2248617SManu Gautam #define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL3		0x0dc
240e2248617SManu Gautam #define QSERDES_RX_RX_EQU_ADAPTOR_CNTRL4		0x0e0
241e2248617SManu Gautam #define QSERDES_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1		0x108
242e2248617SManu Gautam #define QSERDES_RX_RX_OFFSET_ADAPTOR_CNTRL2		0x10c
243e2248617SManu Gautam #define QSERDES_RX_SIGDET_ENABLES			0x110
244e2248617SManu Gautam #define QSERDES_RX_SIGDET_CNTRL				0x114
245e2248617SManu Gautam #define QSERDES_RX_SIGDET_LVL				0x118
246e2248617SManu Gautam #define QSERDES_RX_SIGDET_DEGLITCH_CNTRL		0x11c
247e2248617SManu Gautam #define QSERDES_RX_RX_BAND				0x120
248e2248617SManu Gautam #define QSERDES_RX_RX_INTERFACE_MODE			0x12c
249e2248617SManu Gautam 
250e2248617SManu Gautam /* Only for QMP V2 PHY - PCS registers */
251e2248617SManu Gautam #define QPHY_POWER_DOWN_CONTROL				0x04
252e2248617SManu Gautam #define QPHY_TXDEEMPH_M6DB_V0				0x24
253e2248617SManu Gautam #define QPHY_TXDEEMPH_M3P5DB_V0				0x28
254152a810eSIskren Chernev #define QPHY_TX_LARGE_AMP_DRV_LVL			0x34
255152a810eSIskren Chernev #define QPHY_TX_LARGE_AMP_POST_EMP_LVL			0x38
256152a810eSIskren Chernev #define QPHY_TX_SMALL_AMP_DRV_LVL			0x3c
257152a810eSIskren Chernev #define QPHY_TX_SMALL_AMP_POST_EMP_LVL			0x40
258e2248617SManu Gautam #define QPHY_ENDPOINT_REFCLK_DRIVE			0x54
259e2248617SManu Gautam #define QPHY_RX_IDLE_DTCT_CNTRL				0x58
260e2248617SManu Gautam #define QPHY_POWER_STATE_CONFIG1			0x60
261e2248617SManu Gautam #define QPHY_POWER_STATE_CONFIG2			0x64
262e2248617SManu Gautam #define QPHY_POWER_STATE_CONFIG4			0x6c
263e2248617SManu Gautam #define QPHY_LOCK_DETECT_CONFIG1			0x80
264e2248617SManu Gautam #define QPHY_LOCK_DETECT_CONFIG2			0x84
265e2248617SManu Gautam #define QPHY_LOCK_DETECT_CONFIG3			0x88
266e2248617SManu Gautam #define QPHY_PWRUP_RESET_DLY_TIME_AUXCLK		0xa0
267e2248617SManu Gautam #define QPHY_LP_WAKEUP_DLY_TIME_AUXCLK			0xa4
268152a810eSIskren Chernev #define QPHY_RX_MIN_STALL_NOCONFIG_TIME_CAP		0xcc
269152a810eSIskren Chernev #define QPHY_RX_SYM_RESYNC_CTRL				0x13c
270152a810eSIskren Chernev #define QPHY_RX_MIN_HIBERN8_TIME			0x140
271152a810eSIskren Chernev #define QPHY_RX_SIGDET_CTRL2				0x148
272152a810eSIskren Chernev #define QPHY_RX_PWM_GEAR_BAND				0x154
273fe841d5bSJohan Hovold #define QPHY_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB		0x1a8
274fe841d5bSJohan Hovold #define QPHY_OSC_DTCT_ACTIONS				0x1ac
275fe841d5bSJohan Hovold #define QPHY_RX_SIGDET_LVL				0x1d8
276fe841d5bSJohan Hovold #define QPHY_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB		0x1dc
277fe841d5bSJohan Hovold #define QPHY_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB		0x1e0
278e2248617SManu Gautam 
2799a24b929SJack Pham /* Only for QMP V3 & V4 PHY - DP COM registers */
2809c7761a3SManu Gautam #define QPHY_V3_DP_COM_PHY_MODE_CTRL			0x00
2819c7761a3SManu Gautam #define QPHY_V3_DP_COM_SW_RESET				0x04
2829c7761a3SManu Gautam #define QPHY_V3_DP_COM_POWER_DOWN_CTRL			0x08
2839c7761a3SManu Gautam #define QPHY_V3_DP_COM_SWI_CTRL				0x0c
2849c7761a3SManu Gautam #define QPHY_V3_DP_COM_TYPEC_CTRL			0x10
2859c7761a3SManu Gautam #define QPHY_V3_DP_COM_TYPEC_PWRDN_CTRL			0x14
2869c7761a3SManu Gautam #define QPHY_V3_DP_COM_RESET_OVRD_CTRL			0x1c
2879c7761a3SManu Gautam 
2889c7761a3SManu Gautam /* Only for QMP V3 PHY - QSERDES COM registers */
28952e013d0SStephen Boyd #define QSERDES_V3_COM_ATB_SEL1				0x000
29052e013d0SStephen Boyd #define QSERDES_V3_COM_ATB_SEL2				0x004
29152e013d0SStephen Boyd #define QSERDES_V3_COM_FREQ_UPDATE			0x008
2929c7761a3SManu Gautam #define QSERDES_V3_COM_BG_TIMER				0x00c
2939c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_EN_CENTER			0x010
2949c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_ADJ_PER1			0x014
2959c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_ADJ_PER2			0x018
2969c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_PER1				0x01c
2979c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_PER2				0x020
2989c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_STEP_SIZE1			0x024
2999c7761a3SManu Gautam #define QSERDES_V3_COM_SSC_STEP_SIZE2			0x028
300152a810eSIskren Chernev #define QSERDES_V3_COM_POST_DIV				0x02c
301152a810eSIskren Chernev #define QSERDES_V3_COM_POST_DIV_MUX			0x030
3029c7761a3SManu Gautam #define QSERDES_V3_COM_BIAS_EN_CLKBUFLR_EN		0x034
30352e013d0SStephen Boyd # define QSERDES_V3_COM_BIAS_EN				0x0001
30452e013d0SStephen Boyd # define QSERDES_V3_COM_BIAS_EN_MUX			0x0002
30552e013d0SStephen Boyd # define QSERDES_V3_COM_CLKBUF_R_EN			0x0004
30652e013d0SStephen Boyd # define QSERDES_V3_COM_CLKBUF_L_EN			0x0008
30752e013d0SStephen Boyd # define QSERDES_V3_COM_EN_SYSCLK_TX_SEL		0x0010
30852e013d0SStephen Boyd # define QSERDES_V3_COM_CLKBUF_RX_DRIVE_L		0x0020
30952e013d0SStephen Boyd # define QSERDES_V3_COM_CLKBUF_RX_DRIVE_R		0x0040
3109c7761a3SManu Gautam #define QSERDES_V3_COM_CLK_ENABLE1			0x038
3119c7761a3SManu Gautam #define QSERDES_V3_COM_SYS_CLK_CTRL			0x03c
3129c7761a3SManu Gautam #define QSERDES_V3_COM_SYSCLK_BUF_ENABLE		0x040
313152a810eSIskren Chernev #define QSERDES_V3_COM_PLL_EN				0x044
3149c7761a3SManu Gautam #define QSERDES_V3_COM_PLL_IVCO				0x048
3159c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP1_MODE0			0x098
3169c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP2_MODE0			0x09c
3179c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP3_MODE0			0x0a0
3189c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP1_MODE1			0x0a4
3199c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP2_MODE1			0x0a8
3209c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP3_MODE1			0x0ac
3219c7761a3SManu Gautam #define QSERDES_V3_COM_CLK_EP_DIV			0x05c
3229c7761a3SManu Gautam #define QSERDES_V3_COM_CP_CTRL_MODE0			0x060
3239c7761a3SManu Gautam #define QSERDES_V3_COM_CP_CTRL_MODE1			0x064
3249c7761a3SManu Gautam #define QSERDES_V3_COM_PLL_RCTRL_MODE0			0x068
3259c7761a3SManu Gautam #define QSERDES_V3_COM_PLL_RCTRL_MODE1			0x06c
3269c7761a3SManu Gautam #define QSERDES_V3_COM_PLL_CCTRL_MODE0			0x070
3279c7761a3SManu Gautam #define QSERDES_V3_COM_PLL_CCTRL_MODE1			0x074
3289c7761a3SManu Gautam #define QSERDES_V3_COM_SYSCLK_EN_SEL			0x080
3299c7761a3SManu Gautam #define QSERDES_V3_COM_RESETSM_CNTRL			0x088
3309c7761a3SManu Gautam #define QSERDES_V3_COM_RESETSM_CNTRL2			0x08c
3319c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP_EN			0x090
3329c7761a3SManu Gautam #define QSERDES_V3_COM_LOCK_CMP_CFG			0x094
3339c7761a3SManu Gautam #define QSERDES_V3_COM_DEC_START_MODE0			0x0b0
3349c7761a3SManu Gautam #define QSERDES_V3_COM_DEC_START_MODE1			0x0b4
3359c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START1_MODE0		0x0b8
3369c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START2_MODE0		0x0bc
3379c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START3_MODE0		0x0c0
3389c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START1_MODE1		0x0c4
3399c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START2_MODE1		0x0c8
3409c7761a3SManu Gautam #define QSERDES_V3_COM_DIV_FRAC_START3_MODE1		0x0cc
341a51969faSJeffrey Hugo #define QSERDES_V3_COM_INTEGLOOP_INITVAL		0x0d0
3429c7761a3SManu Gautam #define QSERDES_V3_COM_INTEGLOOP_GAIN0_MODE0		0x0d8
3439c7761a3SManu Gautam #define QSERDES_V3_COM_INTEGLOOP_GAIN1_MODE0		0x0dc
3449c7761a3SManu Gautam #define QSERDES_V3_COM_INTEGLOOP_GAIN0_MODE1		0x0e0
3459c7761a3SManu Gautam #define QSERDES_V3_COM_INTEGLOOP_GAIN1_MODE1		0x0e4
3469c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE_CTRL			0x0ec
3479c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE_MAP			0x0f0
3489c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE1_MODE0			0x0f4
3499c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE2_MODE0			0x0f8
3509c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE1_MODE1			0x0fc
3519c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE2_MODE1			0x100
352cc31cdbeSCan Guo #define QSERDES_V3_COM_VCO_TUNE_INITVAL1		0x104
353cc31cdbeSCan Guo #define QSERDES_V3_COM_VCO_TUNE_INITVAL2		0x108
3549c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE_TIMER1			0x11c
3559c7761a3SManu Gautam #define QSERDES_V3_COM_VCO_TUNE_TIMER2			0x120
3569c7761a3SManu Gautam #define QSERDES_V3_COM_CLK_SELECT			0x138
3579c7761a3SManu Gautam #define QSERDES_V3_COM_HSCLK_SEL			0x13c
3589c7761a3SManu Gautam #define QSERDES_V3_COM_CORECLK_DIV_MODE0		0x148
3599c7761a3SManu Gautam #define QSERDES_V3_COM_CORECLK_DIV_MODE1		0x14c
3609c7761a3SManu Gautam #define QSERDES_V3_COM_CORE_CLK_EN			0x154
3619c7761a3SManu Gautam #define QSERDES_V3_COM_C_READY_STATUS			0x158
3629c7761a3SManu Gautam #define QSERDES_V3_COM_CMN_CONFIG			0x15c
3639c7761a3SManu Gautam #define QSERDES_V3_COM_SVS_MODE_CLK_SEL			0x164
3649c7761a3SManu Gautam #define QSERDES_V3_COM_DEBUG_BUS0			0x168
3659c7761a3SManu Gautam #define QSERDES_V3_COM_DEBUG_BUS1			0x16c
3669c7761a3SManu Gautam #define QSERDES_V3_COM_DEBUG_BUS2			0x170
3679c7761a3SManu Gautam #define QSERDES_V3_COM_DEBUG_BUS3			0x174
3689c7761a3SManu Gautam #define QSERDES_V3_COM_DEBUG_BUS_SEL			0x178
369a51969faSJeffrey Hugo #define QSERDES_V3_COM_CMN_MODE				0x184
3709c7761a3SManu Gautam 
3719c7761a3SManu Gautam /* Only for QMP V3 PHY - TX registers */
37252e013d0SStephen Boyd #define QSERDES_V3_TX_BIST_MODE_LANENO			0x000
37352e013d0SStephen Boyd #define QSERDES_V3_TX_CLKBUF_ENABLE			0x008
37452e013d0SStephen Boyd #define QSERDES_V3_TX_TX_EMP_POST1_LVL			0x00c
37552e013d0SStephen Boyd # define DP_PHY_TXn_TX_EMP_POST1_LVL_MASK		0x001f
37652e013d0SStephen Boyd # define DP_PHY_TXn_TX_EMP_POST1_LVL_MUX_EN		0x0020
37752e013d0SStephen Boyd 
37852e013d0SStephen Boyd #define QSERDES_V3_TX_TX_DRV_LVL			0x01c
37952e013d0SStephen Boyd # define DP_PHY_TXn_TX_DRV_LVL_MASK			0x001f
38052e013d0SStephen Boyd # define DP_PHY_TXn_TX_DRV_LVL_MUX_EN			0x0020
38152e013d0SStephen Boyd 
38252e013d0SStephen Boyd #define QSERDES_V3_TX_RESET_TSYNC_EN			0x024
38352e013d0SStephen Boyd #define QSERDES_V3_TX_PRE_STALL_LDO_BOOST_EN		0x028
38452e013d0SStephen Boyd 
38552e013d0SStephen Boyd #define QSERDES_V3_TX_TX_BAND				0x02c
38652e013d0SStephen Boyd #define QSERDES_V3_TX_SLEW_CNTL				0x030
38752e013d0SStephen Boyd #define QSERDES_V3_TX_INTERFACE_SELECT			0x034
38852e013d0SStephen Boyd #define QSERDES_V3_TX_RES_CODE_LANE_TX			0x03c
38952e013d0SStephen Boyd #define QSERDES_V3_TX_RES_CODE_LANE_RX			0x040
3909c7761a3SManu Gautam #define QSERDES_V3_TX_RES_CODE_LANE_OFFSET_TX		0x044
3919c7761a3SManu Gautam #define QSERDES_V3_TX_RES_CODE_LANE_OFFSET_RX		0x048
3929c7761a3SManu Gautam #define QSERDES_V3_TX_DEBUG_BUS_SEL			0x058
39352e013d0SStephen Boyd #define QSERDES_V3_TX_TRANSCEIVER_BIAS_EN		0x05c
3949c7761a3SManu Gautam #define QSERDES_V3_TX_HIGHZ_DRVR_EN			0x060
39552e013d0SStephen Boyd #define QSERDES_V3_TX_TX_POL_INV			0x064
39652e013d0SStephen Boyd #define QSERDES_V3_TX_PARRATE_REC_DETECT_IDLE_EN	0x068
3979c7761a3SManu Gautam #define QSERDES_V3_TX_LANE_MODE_1			0x08c
3989c7761a3SManu Gautam #define QSERDES_V3_TX_RCV_DETECT_LVL_2			0x0a4
39952e013d0SStephen Boyd #define QSERDES_V3_TX_TRAN_DRVR_EMP_EN			0x0c0
40052e013d0SStephen Boyd #define QSERDES_V3_TX_TX_INTERFACE_MODE			0x0c4
40152e013d0SStephen Boyd #define QSERDES_V3_TX_VMODE_CTRL1			0x0f0
4029c7761a3SManu Gautam 
4039c7761a3SManu Gautam /* Only for QMP V3 PHY - RX registers */
404a51969faSJeffrey Hugo #define QSERDES_V3_RX_UCDR_FO_GAIN			0x008
4059c7761a3SManu Gautam #define QSERDES_V3_RX_UCDR_SO_GAIN_HALF			0x00c
4069c7761a3SManu Gautam #define QSERDES_V3_RX_UCDR_SO_GAIN			0x014
407cc31cdbeSCan Guo #define QSERDES_V3_RX_UCDR_SVS_SO_GAIN_HALF		0x024
408cc31cdbeSCan Guo #define QSERDES_V3_RX_UCDR_SVS_SO_GAIN_QUARTER		0x028
409cc31cdbeSCan Guo #define QSERDES_V3_RX_UCDR_SVS_SO_GAIN			0x02c
4109c7761a3SManu Gautam #define QSERDES_V3_RX_UCDR_FASTLOCK_FO_GAIN		0x030
4119c7761a3SManu Gautam #define QSERDES_V3_RX_UCDR_SO_SATURATION_AND_ENABLE	0x034
412cc31cdbeSCan Guo #define QSERDES_V3_RX_UCDR_FASTLOCK_COUNT_LOW		0x03c
413a51969faSJeffrey Hugo #define QSERDES_V3_RX_UCDR_FASTLOCK_COUNT_HIGH		0x040
414cc31cdbeSCan Guo #define QSERDES_V3_RX_UCDR_PI_CONTROLS			0x044
4159c7761a3SManu Gautam #define QSERDES_V3_RX_RX_TERM_BW			0x07c
416f6721e5cSManu Gautam #define QSERDES_V3_RX_VGA_CAL_CNTRL1			0x0bc
417f6721e5cSManu Gautam #define QSERDES_V3_RX_VGA_CAL_CNTRL2			0x0c0
4189c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQ_GAIN2_LSB			0x0c8
4199c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQ_GAIN2_MSB			0x0cc
4209c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL2		0x0d4
4219c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL3		0x0d8
4229c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL4		0x0dc
4239c7761a3SManu Gautam #define QSERDES_V3_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1	0x0f8
4249c7761a3SManu Gautam #define QSERDES_V3_RX_RX_OFFSET_ADAPTOR_CNTRL2		0x0fc
4259c7761a3SManu Gautam #define QSERDES_V3_RX_SIGDET_ENABLES			0x100
4269c7761a3SManu Gautam #define QSERDES_V3_RX_SIGDET_CNTRL			0x104
4279c7761a3SManu Gautam #define QSERDES_V3_RX_SIGDET_LVL			0x108
4289c7761a3SManu Gautam #define QSERDES_V3_RX_SIGDET_DEGLITCH_CNTRL		0x10c
4299c7761a3SManu Gautam #define QSERDES_V3_RX_RX_BAND				0x110
4309c7761a3SManu Gautam #define QSERDES_V3_RX_RX_INTERFACE_MODE			0x11c
431f6721e5cSManu Gautam #define QSERDES_V3_RX_RX_MODE_00			0x164
43273d7ec89SMarc Gonzalez #define QSERDES_V3_RX_RX_MODE_01			0x168
4339c7761a3SManu Gautam 
4349c7761a3SManu Gautam /* Only for QMP V3 PHY - PCS registers */
4359c7761a3SManu Gautam #define QPHY_V3_PCS_POWER_DOWN_CONTROL			0x004
4369c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_V0				0x00c
4379c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_V1				0x010
4389c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_V2				0x014
4399c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_V3				0x018
4409c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_V4				0x01c
4419c7761a3SManu Gautam #define QPHY_V3_PCS_TXMGN_LS				0x020
442cc31cdbeSCan Guo #define QPHY_V3_PCS_TX_LARGE_AMP_DRV_LVL		0x02c
443cc31cdbeSCan Guo #define QPHY_V3_PCS_TX_SMALL_AMP_DRV_LVL		0x034
4449c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_V0			0x024
4459c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V0			0x028
4469c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_V1			0x02c
4479c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V1			0x030
4489c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_V2			0x034
4499c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V2			0x038
4509c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_V3			0x03c
4519c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V3			0x040
4529c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_V4			0x044
4539c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V4			0x048
4549c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M6DB_LS			0x04c
4559c7761a3SManu Gautam #define QPHY_V3_PCS_TXDEEMPH_M3P5DB_LS			0x050
4569c7761a3SManu Gautam #define QPHY_V3_PCS_ENDPOINT_REFCLK_DRIVE		0x054
4579c7761a3SManu Gautam #define QPHY_V3_PCS_RX_IDLE_DTCT_CNTRL			0x058
4589c7761a3SManu Gautam #define QPHY_V3_PCS_RATE_SLEW_CNTRL			0x05c
4599c7761a3SManu Gautam #define QPHY_V3_PCS_POWER_STATE_CONFIG1			0x060
4609c7761a3SManu Gautam #define QPHY_V3_PCS_POWER_STATE_CONFIG2			0x064
4619c7761a3SManu Gautam #define QPHY_V3_PCS_POWER_STATE_CONFIG4			0x06c
4629c7761a3SManu Gautam #define QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_L		0x070
4639c7761a3SManu Gautam #define QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_H		0x074
4649c7761a3SManu Gautam #define QPHY_V3_PCS_RCVR_DTCT_DLY_U3_L			0x078
4659c7761a3SManu Gautam #define QPHY_V3_PCS_RCVR_DTCT_DLY_U3_H			0x07c
4669c7761a3SManu Gautam #define QPHY_V3_PCS_LOCK_DETECT_CONFIG1			0x080
4679c7761a3SManu Gautam #define QPHY_V3_PCS_LOCK_DETECT_CONFIG2			0x084
4689c7761a3SManu Gautam #define QPHY_V3_PCS_LOCK_DETECT_CONFIG3			0x088
4699c7761a3SManu Gautam #define QPHY_V3_PCS_TSYNC_RSYNC_TIME			0x08c
4709c7761a3SManu Gautam #define QPHY_V3_PCS_PWRUP_RESET_DLY_TIME_AUXCLK		0x0a0
4719c7761a3SManu Gautam #define QPHY_V3_PCS_LP_WAKEUP_DLY_TIME_AUXCLK		0x0a4
47273d7ec89SMarc Gonzalez #define QPHY_V3_PCS_PLL_LOCK_CHK_DLY_TIME		0x0a8
4739c7761a3SManu Gautam #define QPHY_V3_PCS_LFPS_TX_ECSTART_EQTLOCK		0x0b0
4749c7761a3SManu Gautam #define QPHY_V3_PCS_RXEQTRAINING_WAIT_TIME		0x0b8
4759c7761a3SManu Gautam #define QPHY_V3_PCS_RXEQTRAINING_RUN_TIME		0x0bc
4769c7761a3SManu Gautam #define QPHY_V3_PCS_FLL_CNTRL1				0x0c4
4779c7761a3SManu Gautam #define QPHY_V3_PCS_FLL_CNTRL2				0x0c8
4789c7761a3SManu Gautam #define QPHY_V3_PCS_FLL_CNT_VAL_L			0x0cc
4799c7761a3SManu Gautam #define QPHY_V3_PCS_FLL_CNT_VAL_H_TOL			0x0d0
4809c7761a3SManu Gautam #define QPHY_V3_PCS_FLL_MAN_CODE			0x0d4
481cc31cdbeSCan Guo #define QPHY_V3_PCS_RX_SYM_RESYNC_CTRL			0x134
482cc31cdbeSCan Guo #define QPHY_V3_PCS_RX_MIN_HIBERN8_TIME			0x138
483cc31cdbeSCan Guo #define QPHY_V3_PCS_RX_SIGDET_CTRL1			0x13c
484cc31cdbeSCan Guo #define QPHY_V3_PCS_RX_SIGDET_CTRL2			0x140
48573d7ec89SMarc Gonzalez #define QPHY_V3_PCS_LP_WAKEUP_DLY_TIME_AUXCLK_MSB	0x1a8
48673d7ec89SMarc Gonzalez #define QPHY_V3_PCS_OSC_DTCT_ACTIONS			0x1ac
48773d7ec89SMarc Gonzalez #define QPHY_V3_PCS_SIGDET_CNTRL			0x1b0
488cc31cdbeSCan Guo #define QPHY_V3_PCS_TX_MID_TERM_CTRL1			0x1bc
489cc31cdbeSCan Guo #define QPHY_V3_PCS_MULTI_LANE_CTRL1			0x1c4
4909c7761a3SManu Gautam #define QPHY_V3_PCS_RX_SIGDET_LVL			0x1d8
49173d7ec89SMarc Gonzalez #define QPHY_V3_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB	0x1dc
49273d7ec89SMarc Gonzalez #define QPHY_V3_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB	0x1e0
493f6721e5cSManu Gautam #define QPHY_V3_PCS_REFGEN_REQ_CONFIG1			0x20c
494f6721e5cSManu Gautam #define QPHY_V3_PCS_REFGEN_REQ_CONFIG2			0x210
4959c7761a3SManu Gautam 
496ac0d2399SManu Gautam /* Only for QMP V3 PHY - PCS_MISC registers */
497ac0d2399SManu Gautam #define QPHY_V3_PCS_MISC_CLAMP_ENABLE			0x0c
49873d7ec89SMarc Gonzalez #define QPHY_V3_PCS_MISC_OSC_DTCT_CONFIG2		0x2c
49973d7ec89SMarc Gonzalez #define QPHY_V3_PCS_MISC_PCIE_INT_AUX_CLK_CONFIG1	0x44
50073d7ec89SMarc Gonzalez #define QPHY_V3_PCS_MISC_OSC_DTCT_MODE2_CONFIG2		0x54
50173d7ec89SMarc Gonzalez #define QPHY_V3_PCS_MISC_OSC_DTCT_MODE2_CONFIG4		0x5c
50273d7ec89SMarc Gonzalez #define QPHY_V3_PCS_MISC_OSC_DTCT_MODE2_CONFIG5		0x60
503ac0d2399SManu Gautam 
5045c393917SDmitry Baryshkov /* QMP PHY - DP PHY registers */
5055c393917SDmitry Baryshkov #define QSERDES_DP_PHY_REVISION_ID0			0x000
5065c393917SDmitry Baryshkov #define QSERDES_DP_PHY_REVISION_ID1			0x004
5075c393917SDmitry Baryshkov #define QSERDES_DP_PHY_REVISION_ID2			0x008
5085c393917SDmitry Baryshkov #define QSERDES_DP_PHY_REVISION_ID3			0x00c
5095c393917SDmitry Baryshkov #define QSERDES_DP_PHY_CFG				0x010
5105c393917SDmitry Baryshkov #define QSERDES_DP_PHY_PD_CTL				0x018
51152e013d0SStephen Boyd # define DP_PHY_PD_CTL_PWRDN				0x001
51252e013d0SStephen Boyd # define DP_PHY_PD_CTL_PSR_PWRDN			0x002
51352e013d0SStephen Boyd # define DP_PHY_PD_CTL_AUX_PWRDN			0x004
51452e013d0SStephen Boyd # define DP_PHY_PD_CTL_LANE_0_1_PWRDN			0x008
51552e013d0SStephen Boyd # define DP_PHY_PD_CTL_LANE_2_3_PWRDN			0x010
51652e013d0SStephen Boyd # define DP_PHY_PD_CTL_PLL_PWRDN			0x020
51752e013d0SStephen Boyd # define DP_PHY_PD_CTL_DP_CLAMP_EN			0x040
5185c393917SDmitry Baryshkov #define QSERDES_DP_PHY_MODE				0x01c
5195c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG0				0x020
5205c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG1				0x024
5215c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG2				0x028
5225c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG3				0x02c
5235c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG4				0x030
5245c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG5				0x034
5255c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG6				0x038
5265c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG7				0x03c
5275c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG8				0x040
5285c393917SDmitry Baryshkov #define QSERDES_DP_PHY_AUX_CFG9				0x044
52952e013d0SStephen Boyd 
5305c393917SDmitry Baryshkov /* Only for QMP V3 PHY - DP PHY registers */
53152e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_AUX_INTERRUPT_MASK		0x048
53252e013d0SStephen Boyd # define PHY_AUX_STOP_ERR_MASK				0x01
53352e013d0SStephen Boyd # define PHY_AUX_DEC_ERR_MASK				0x02
53452e013d0SStephen Boyd # define PHY_AUX_SYNC_ERR_MASK				0x04
53552e013d0SStephen Boyd # define PHY_AUX_ALIGN_ERR_MASK				0x08
53652e013d0SStephen Boyd # define PHY_AUX_REQ_ERR_MASK				0x10
53752e013d0SStephen Boyd 
53852e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_AUX_INTERRUPT_CLEAR		0x04c
53952e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_AUX_BIST_CFG			0x050
54052e013d0SStephen Boyd 
54152e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_VCO_DIV			0x064
54252e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_TX0_TX1_LANE_CTL		0x06c
54352e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_TX2_TX3_LANE_CTL		0x088
54452e013d0SStephen Boyd 
54552e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_SPARE0			0x0ac
54652e013d0SStephen Boyd #define DP_PHY_SPARE0_MASK				0x0f
54752e013d0SStephen Boyd #define DP_PHY_SPARE0_ORIENTATION_INFO_SHIFT		0x04(0x0004)
54852e013d0SStephen Boyd 
54952e013d0SStephen Boyd #define QSERDES_V3_DP_PHY_STATUS			0x0c0
55052e013d0SStephen Boyd 
551a88c85eeSVinod Koul /* Only for QMP V4 PHY - QSERDES COM registers */
552aff188feSDmitry Baryshkov #define QSERDES_V4_COM_BG_TIMER				0x00c
5539a24b929SJack Pham #define QSERDES_V4_COM_SSC_EN_CENTER			0x010
554f199223cSBjorn Andersson #define QSERDES_V4_COM_SSC_ADJ_PER1			0x014
5559a24b929SJack Pham #define QSERDES_V4_COM_SSC_PER1				0x01c
5569a24b929SJack Pham #define QSERDES_V4_COM_SSC_PER2				0x020
5579a24b929SJack Pham #define QSERDES_V4_COM_SSC_STEP_SIZE1_MODE0		0x024
5589a24b929SJack Pham #define QSERDES_V4_COM_SSC_STEP_SIZE2_MODE0		0x028
5599a24b929SJack Pham #define QSERDES_V4_COM_SSC_STEP_SIZE1_MODE1		0x030
5609a24b929SJack Pham #define QSERDES_V4_COM_SSC_STEP_SIZE2_MODE1		0x034
561aff188feSDmitry Baryshkov #define QSERDES_V4_COM_BIAS_EN_CLKBUFLR_EN		0x044
5626edf7700SManivannan Sadhasivam #define QSERDES_V4_COM_CLK_ENABLE1			0x048
563aff188feSDmitry Baryshkov #define QSERDES_V4_COM_SYS_CLK_CTRL			0x04c
5649a24b929SJack Pham #define QSERDES_V4_COM_SYSCLK_BUF_ENABLE		0x050
565a88c85eeSVinod Koul #define QSERDES_V4_COM_PLL_IVCO				0x058
566a88c85eeSVinod Koul #define QSERDES_V4_COM_CMN_IPTRIM			0x060
567a88c85eeSVinod Koul #define QSERDES_V4_COM_CP_CTRL_MODE0			0x074
568a88c85eeSVinod Koul #define QSERDES_V4_COM_CP_CTRL_MODE1			0x078
569a88c85eeSVinod Koul #define QSERDES_V4_COM_PLL_RCTRL_MODE0			0x07c
570a88c85eeSVinod Koul #define QSERDES_V4_COM_PLL_RCTRL_MODE1			0x080
571a88c85eeSVinod Koul #define QSERDES_V4_COM_PLL_CCTRL_MODE0			0x084
572a88c85eeSVinod Koul #define QSERDES_V4_COM_PLL_CCTRL_MODE1			0x088
573a88c85eeSVinod Koul #define QSERDES_V4_COM_SYSCLK_EN_SEL			0x094
574aff188feSDmitry Baryshkov #define QSERDES_V4_COM_RESETSM_CNTRL			0x09c
575a88c85eeSVinod Koul #define QSERDES_V4_COM_LOCK_CMP_EN			0x0a4
576be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_LOCK_CMP_CFG			0x0a8
577a88c85eeSVinod Koul #define QSERDES_V4_COM_LOCK_CMP1_MODE0			0x0ac
578a88c85eeSVinod Koul #define QSERDES_V4_COM_LOCK_CMP2_MODE0			0x0b0
579a88c85eeSVinod Koul #define QSERDES_V4_COM_LOCK_CMP1_MODE1			0x0b4
580a88c85eeSVinod Koul #define QSERDES_V4_COM_LOCK_CMP2_MODE1			0x0b8
58174acf0eeSJohan Hovold #define QSERDES_V4_COM_DEC_START_MODE0			0x0bc
582a88c85eeSVinod Koul #define QSERDES_V4_COM_DEC_START_MODE1			0x0c4
5839a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START1_MODE0		0x0cc
5849a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START2_MODE0		0x0d0
5859a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START3_MODE0		0x0d4
5869a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START1_MODE1		0x0d8
5879a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START2_MODE1		0x0dc
5889a24b929SJack Pham #define QSERDES_V4_COM_DIV_FRAC_START3_MODE1		0x0e0
589aff188feSDmitry Baryshkov #define QSERDES_V4_COM_INTEGLOOP_GAIN0_MODE0		0x0ec
590aff188feSDmitry Baryshkov #define QSERDES_V4_COM_INTEGLOOP_GAIN1_MODE0		0x0f0
591be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_INTEGLOOP_GAIN0_MODE1		0x0f4
592be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_INTEGLOOP_GAIN1_MODE1		0x0f8
593aff188feSDmitry Baryshkov #define QSERDES_V4_COM_VCO_TUNE_CTRL			0x108
594a88c85eeSVinod Koul #define QSERDES_V4_COM_VCO_TUNE_MAP			0x10c
5959a24b929SJack Pham #define QSERDES_V4_COM_VCO_TUNE1_MODE0			0x110
5969a24b929SJack Pham #define QSERDES_V4_COM_VCO_TUNE2_MODE0			0x114
5979a24b929SJack Pham #define QSERDES_V4_COM_VCO_TUNE1_MODE1			0x118
5989a24b929SJack Pham #define QSERDES_V4_COM_VCO_TUNE2_MODE1			0x11c
599a88c85eeSVinod Koul #define QSERDES_V4_COM_VCO_TUNE_INITVAL2		0x124
600aff188feSDmitry Baryshkov #define QSERDES_V4_COM_CMN_STATUS			0x140
6016edf7700SManivannan Sadhasivam #define QSERDES_V4_COM_CLK_SELECT			0x154
602a88c85eeSVinod Koul #define QSERDES_V4_COM_HSCLK_SEL			0x158
603a88c85eeSVinod Koul #define QSERDES_V4_COM_HSCLK_HS_SWITCH_SEL		0x15c
604aff188feSDmitry Baryshkov #define QSERDES_V4_COM_CORECLK_DIV_MODE0		0x168
6059a24b929SJack Pham #define QSERDES_V4_COM_CORECLK_DIV_MODE1		0x16c
606aff188feSDmitry Baryshkov #define QSERDES_V4_COM_CORE_CLK_EN			0x174
607aff188feSDmitry Baryshkov #define QSERDES_V4_COM_C_READY_STATUS			0x178
608aff188feSDmitry Baryshkov #define QSERDES_V4_COM_CMN_CONFIG			0x17c
6099a24b929SJack Pham #define QSERDES_V4_COM_SVS_MODE_CLK_SEL			0x184
610be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_CMN_MISC1			0x19c
611be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_INTERNAL_DIG_CORECLK_DIV		0x1a0
612be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_CMN_MODE				0x1a4
613be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_VCO_DC_LEVEL_CTRL		0x1a8
614a88c85eeSVinod Koul #define QSERDES_V4_COM_BIN_VCOCAL_CMP_CODE1_MODE0	0x1ac
615a88c85eeSVinod Koul #define QSERDES_V4_COM_BIN_VCOCAL_CMP_CODE2_MODE0	0x1b0
616a88c85eeSVinod Koul #define QSERDES_V4_COM_BIN_VCOCAL_CMP_CODE1_MODE1	0x1b4
617a88c85eeSVinod Koul #define QSERDES_V4_COM_BIN_VCOCAL_CMP_CODE2_MODE1	0x1b8
618be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_COM_BIN_VCOCAL_HSCLK_SEL		0x1bc
619a88c85eeSVinod Koul 
620a88c85eeSVinod Koul /* Only for QMP V4 PHY - TX registers */
621aff188feSDmitry Baryshkov #define QSERDES_V4_TX_CLKBUF_ENABLE			0x08
622aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TX_EMP_POST1_LVL			0x0c
623aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TX_DRV_LVL			0x14
624aff188feSDmitry Baryshkov #define QSERDES_V4_TX_RESET_TSYNC_EN			0x1c
625aff188feSDmitry Baryshkov #define QSERDES_V4_TX_PRE_STALL_LDO_BOOST_EN		0x20
626aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TX_BAND				0x24
627aff188feSDmitry Baryshkov #define QSERDES_V4_TX_INTERFACE_SELECT			0x2c
6289a24b929SJack Pham #define QSERDES_V4_TX_RES_CODE_LANE_TX			0x34
6299a24b929SJack Pham #define QSERDES_V4_TX_RES_CODE_LANE_RX			0x38
6307b675ba1SJonathan Marek #define QSERDES_V4_TX_RES_CODE_LANE_OFFSET_TX		0x3c
63190b65347SJonathan Marek #define QSERDES_V4_TX_RES_CODE_LANE_OFFSET_RX		0x40
632aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TRANSCEIVER_BIAS_EN		0x54
633aff188feSDmitry Baryshkov #define QSERDES_V4_TX_HIGHZ_DRVR_EN			0x58
634aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TX_POL_INV			0x5c
635aff188feSDmitry Baryshkov #define QSERDES_V4_TX_PARRATE_REC_DETECT_IDLE_EN	0x60
636a88c85eeSVinod Koul #define QSERDES_V4_TX_LANE_MODE_1			0x84
63790b65347SJonathan Marek #define QSERDES_V4_TX_LANE_MODE_2			0x88
6389a24b929SJack Pham #define QSERDES_V4_TX_RCV_DETECT_LVL_2			0x9c
639aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TRAN_DRVR_EMP_EN			0xb8
640aff188feSDmitry Baryshkov #define QSERDES_V4_TX_TX_INTERFACE_MODE			0xbc
641a88c85eeSVinod Koul #define QSERDES_V4_TX_PWM_GEAR_1_DIVIDER_BAND0_1	0xd8
642fe841d5bSJohan Hovold #define QSERDES_V4_TX_PWM_GEAR_2_DIVIDER_BAND0_1	0xdc
643a88c85eeSVinod Koul #define QSERDES_V4_TX_PWM_GEAR_3_DIVIDER_BAND0_1	0xe0
644a88c85eeSVinod Koul #define QSERDES_V4_TX_PWM_GEAR_4_DIVIDER_BAND0_1	0xe4
645aff188feSDmitry Baryshkov #define QSERDES_V4_TX_VMODE_CTRL1			0xe8
6469a24b929SJack Pham #define QSERDES_V4_TX_PI_QEC_CTRL			0x104
647a88c85eeSVinod Koul 
648be0ddb5dSManivannan Sadhasivam /* Only for QMP V4_20 PHY - TX registers */
649be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_TX_LANE_MODE_1			0x88
650be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_TX_LANE_MODE_2			0x8c
651be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_TX_LANE_MODE_3			0x90
652be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_TX_VMODE_CTRL1			0xc4
653be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_TX_PI_QEC_CTRL			0xe0
654be0ddb5dSManivannan Sadhasivam 
655a88c85eeSVinod Koul /* Only for QMP V4 PHY - RX registers */
656a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_FO_GAIN			0x008
657a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_SO_GAIN			0x014
658a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_FASTLOCK_FO_GAIN		0x030
659a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_SO_SATURATION_AND_ENABLE	0x034
660a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_FASTLOCK_COUNT_LOW		0x03c
6619a24b929SJack Pham #define QSERDES_V4_RX_UCDR_FASTLOCK_COUNT_HIGH		0x040
662a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_PI_CONTROLS			0x044
663a88c85eeSVinod Koul #define QSERDES_V4_RX_UCDR_PI_CTRL2			0x048
6649a24b929SJack Pham #define QSERDES_V4_RX_UCDR_SB2_THRESH1			0x04c
6659a24b929SJack Pham #define QSERDES_V4_RX_UCDR_SB2_THRESH2			0x050
6669a24b929SJack Pham #define QSERDES_V4_RX_UCDR_SB2_GAIN1			0x054
6679a24b929SJack Pham #define QSERDES_V4_RX_UCDR_SB2_GAIN2			0x058
6689a24b929SJack Pham #define QSERDES_V4_RX_AUX_DATA_TCOARSE_TFINE		0x060
6696edf7700SManivannan Sadhasivam #define QSERDES_V4_RX_RCLK_AUXDATA_SEL			0x064
670a88c85eeSVinod Koul #define QSERDES_V4_RX_AC_JTAG_ENABLE			0x068
671a88c85eeSVinod Koul #define QSERDES_V4_RX_AC_JTAG_MODE			0x078
672a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_TERM_BW			0x080
6739a24b929SJack Pham #define QSERDES_V4_RX_VGA_CAL_CNTRL1			0x0d4
6749a24b929SJack Pham #define QSERDES_V4_RX_VGA_CAL_CNTRL2			0x0d8
6759a24b929SJack Pham #define QSERDES_V4_RX_GM_CAL				0x0dc
6766edf7700SManivannan Sadhasivam #define QSERDES_V4_RX_RX_EQU_ADAPTOR_CNTRL1		0x0e8
677a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_EQU_ADAPTOR_CNTRL2		0x0ec
678a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_EQU_ADAPTOR_CNTRL3		0x0f0
679a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_EQU_ADAPTOR_CNTRL4		0x0f4
680a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_IDAC_TSETTLE_LOW		0x0f8
681a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_IDAC_TSETTLE_HIGH		0x0fc
682a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_IDAC_MEASURE_TIME		0x100
6839a24b929SJack Pham #define QSERDES_V4_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1	0x110
684a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_OFFSET_ADAPTOR_CNTRL2		0x114
6856edf7700SManivannan Sadhasivam #define QSERDES_V4_RX_SIGDET_ENABLES			0x118
686a88c85eeSVinod Koul #define QSERDES_V4_RX_SIGDET_CNTRL			0x11c
687a88c85eeSVinod Koul #define QSERDES_V4_RX_SIGDET_LVL			0x120
688a88c85eeSVinod Koul #define QSERDES_V4_RX_SIGDET_DEGLITCH_CNTRL		0x124
689a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_BAND				0x128
690a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_00_LOW			0x170
691a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_00_HIGH			0x174
692a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_00_HIGH2			0x178
693a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_00_HIGH3			0x17c
694a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_00_HIGH4			0x180
695a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_01_LOW			0x184
696a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_01_HIGH			0x188
697a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_01_HIGH2			0x18c
698a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_01_HIGH3			0x190
699a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_01_HIGH4			0x194
700a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_10_LOW			0x198
701a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_10_HIGH			0x19c
702a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_10_HIGH2			0x1a0
703a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_10_HIGH3			0x1a4
704a88c85eeSVinod Koul #define QSERDES_V4_RX_RX_MODE_10_HIGH4			0x1a8
7059a24b929SJack Pham #define QSERDES_V4_RX_DFE_EN_TIMER			0x1b4
7069a24b929SJack Pham #define QSERDES_V4_RX_DFE_CTLE_POST_CAL_OFFSET		0x1b8
707a88c85eeSVinod Koul #define QSERDES_V4_RX_DCC_CTRL1				0x1bc
7089a24b929SJack Pham #define QSERDES_V4_RX_VTH_CODE				0x1c4
709a88c85eeSVinod Koul 
710aff188feSDmitry Baryshkov /* Only for QMP V4 PHY - DP PHY registers */
711aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_CFG_1				0x014
712aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_AUX_INTERRUPT_MASK		0x054
713aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_AUX_INTERRUPT_CLEAR		0x058
714aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_VCO_DIV			0x070
715aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_TX0_TX1_LANE_CTL		0x078
716aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_TX2_TX3_LANE_CTL		0x09c
717aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_SPARE0			0x0c8
718aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_AUX_INTERRUPT_STATUS		0x0d8
719aff188feSDmitry Baryshkov #define QSERDES_V4_DP_PHY_STATUS			0x0dc
720aff188feSDmitry Baryshkov 
721be0ddb5dSManivannan Sadhasivam /* Only for QMP V4_20 PHY - RX registers */
722be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_FO_GAIN_RATE2			0x008
723be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_UCDR_PI_CONTROLS		0x058
724be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_AUX_DATA_TCOARSE_TFINE		0x0ac
725be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_DFE_3				0x110
726be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_DFE_DAC_ENABLE1		0x134
727be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_DFE_DAC_ENABLE2		0x138
728be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_VGA_CAL_CNTRL2			0x150
729be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1	0x178
730be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE_0_1_B1		0x1c8
731be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE_0_1_B2		0x1cc
732be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE_0_1_B3		0x1d0
733be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE_0_1_B4		0x1d4
734be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE2_B0		0x1d8
735be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE2_B1		0x1dc
736be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE2_B2		0x1e0
737be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE2_B3		0x1e4
738be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE2_B4		0x1e8
739be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE3_B0		0x1ec
740be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE3_B1		0x1f0
741be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE3_B2		0x1f4
742be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE3_B3		0x1f8
743be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_RX_MODE_RATE3_B4		0x1fc
744be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_PHPRE_CTRL			0x200
745be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_DFE_CTLE_POST_CAL_OFFSET	0x20c
746be0ddb5dSManivannan Sadhasivam #define QSERDES_V4_20_RX_MARG_COARSE_CTRL2		0x23c
747be0ddb5dSManivannan Sadhasivam 
7489a24b929SJack Pham /* Only for QMP V4 PHY - UFS PCS registers */
74978c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_PHY_START			0x000
75078c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_POWER_DOWN_CONTROL		0x004
75178c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_SW_RESET			0x008
75278c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TIMER_20US_CORECLK_STEPS_MSB	0x00c
75378c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TIMER_20US_CORECLK_STEPS_LSB	0x010
75478c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_PLL_CNTL			0x02c
75578c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_LARGE_AMP_DRV_LVL		0x030
75678c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_SMALL_AMP_DRV_LVL		0x038
75778c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_BIST_FIXED_PAT_CTRL		0x060
75878c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_HSGEAR_CAPABILITY		0x074
75978c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_RX_HSGEAR_CAPABILITY		0x0b4
76078c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_DEBUG_BUS_CLKSEL		0x124
76178c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_LINECFG_DISABLE			0x148
76278c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_RX_MIN_HIBERN8_TIME		0x150
76378c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_RX_SIGDET_CTRL2			0x158
76478c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_PWM_GEAR_BAND		0x160
76578c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_HS_GEAR_BAND			0x168
76678c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_READY_STATUS			0x180
76778c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_TX_MID_TERM_CTRL1		0x1d8
76878c2aac2SWesley Cheng #define QPHY_V4_PCS_UFS_MULTI_LANE_CTRL1		0x1e0
769a88c85eeSVinod Koul 
770909a5c78SBjorn Andersson /* PCIE GEN3 COM registers */
771909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_EN_CENTER			0x14
772909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_PER1			0x20
773909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_PER2			0x24
774909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_STEP_SIZE1		0x28
775909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_STEP_SIZE2		0x2c
776909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_STEP_SIZE1_MODE1		0x34
777909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SSC_STEP_SIZE2_MODE1		0x38
778909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_BIAS_EN_CKBUFLR_EN		0x54
779909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CLK_ENABLE1			0x58
780909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_LOCK_CMP1_MODE0		0x6c
781909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_LOCK_CMP2_MODE0		0x70
782909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_LOCK_CMP1_MODE1		0x78
783909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_LOCK_CMP2_MODE1		0x7c
784909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_BGV_TRIM			0x98
785909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CP_CTRL_MODE0			0xb4
786909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CP_CTRL_MODE1			0xb8
787909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_PLL_RCTRL_MODE0		0xc0
788909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_PLL_RCTRL_MODE1		0xc4
789909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_PLL_CCTRL_MODE0		0xcc
790909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_PLL_CCTRL_MODE1		0xd0
791909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SYSCLK_EN_SEL			0xdc
792909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_RESTRIM_CTRL2			0xf0
793909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_LOCK_CMP_EN			0xf8
794909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DEC_START_MODE0		0x100
795909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DEC_START_MODE1		0x108
796909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START1_MODE0		0x11c
797909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START2_MODE0		0x120
798909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START3_MODE0		0x124
799909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START1_MODE1		0x128
800909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START2_MODE1		0x12c
801909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_DIV_FRAC_START3_MODE1		0x130
802909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_INTEGLOOP_GAIN0_MODE0		0x150
803909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_INTEGLOOP_GAIN0_MODE1		0x158
804909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_VCO_TUNE_MAP			0x178
805909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_BG_CTRL			0x1c8
806909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CLK_SELECT			0x1cc
807909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_HSCLK_SEL1			0x1d0
808909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CORECLK_DIV			0x1e0
809909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CORE_CLK_EN			0x1e8
810909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CMN_CONFIG			0x1f0
811909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_SVS_MODE_CLK_SEL		0x1fc
812909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CORECLK_DIV_MODE1		0x21c
813909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_CMN_MODE			0x224
814909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_VREGCLK_DIV1			0x228
815909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_COM_VREGCLK_DIV2			0x22c
816909a5c78SBjorn Andersson 
817909a5c78SBjorn Andersson /* PCIE GEN3 QHP Lane registers */
818909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DRVR_CTRL0			0xc
819909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DRVR_CTRL1			0x10
820909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DRVR_CTRL2			0x14
821909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DRVR_TAP_EN			0x18
822909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_TX_BAND_MODE			0x60
823909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_LANE_MODE			0x64
824909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_PARALLEL_RATE			0x7c
825909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CML_CTRL_MODE0			0xc0
826909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CML_CTRL_MODE1			0xc4
827909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CML_CTRL_MODE2			0xc8
828909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_PREAMP_CTRL_MODE1		0xd0
829909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_PREAMP_CTRL_MODE2		0xd4
830909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_MIXER_CTRL_MODE0		0xd8
831909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_MIXER_CTRL_MODE1		0xdc
832909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_MIXER_CTRL_MODE2		0xe0
833909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CTLE_THRESH_DFE		0xfc
834909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CGA_THRESH_DFE			0x100
835909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RXENGINE_EN0			0x108
836909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CTLE_TRAIN_TIME		0x114
837909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_CTLE_DFE_OVRLP_TIME		0x118
838909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DFE_REFRESH_TIME		0x11c
839909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DFE_ENABLE_TIME		0x120
840909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_VGA_GAIN			0x124
841909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DFE_GAIN			0x128
842909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_EQ_GAIN			0x130
843909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_OFFSET_GAIN			0x134
844909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_PRE_GAIN			0x138
845909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_VGA_INITVAL			0x13c
846909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_EQ_INTVAL			0x154
847909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_EDAC_INITVAL			0x160
848909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RXEQ_INITB0			0x168
849909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RXEQ_INITB1			0x16c
850909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RCVRDONE_THRESH1		0x178
851909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RXEQ_CTRL			0x180
852909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_FO_GAIN_MODE0		0x184
853909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_FO_GAIN_MODE1		0x188
854909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_FO_GAIN_MODE2		0x18c
855909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_SO_GAIN_MODE0		0x190
856909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_SO_GAIN_MODE1		0x194
857909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_SO_GAIN_MODE2		0x198
858909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_UCDR_SO_CONFIG			0x19c
859909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_BAND			0x1a4
860909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_RCVR_PATH1_MODE0		0x1c0
861909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_RCVR_PATH1_MODE1		0x1c4
862909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_RCVR_PATH1_MODE2		0x1c8
863909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_SIGDET_ENABLES			0x230
864909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_SIGDET_CNTRL			0x234
865909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_SIGDET_DEGLITCH_CNTRL		0x238
866909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DCC_GAIN			0x2a4
867909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RSM_START			0x2a8
868909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_EN_SIGNAL			0x2ac
869909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_PSM_RX_EN_CAL			0x2b0
870909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_MISC_CNTRL0			0x2b8
871909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_TS0_TIMER			0x2c0
872909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_DLL_HIGHDATARATE		0x2c4
873909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_L0_RX_RESETCODE_OFFSET		0x2cc
874909a5c78SBjorn Andersson 
875909a5c78SBjorn Andersson /* PCIE GEN3 PCS registers */
876909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_TXMGN_MAIN_V0_M3P5DB		0x2c
877909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_TXMGN_POST_V0_M3P5DB		0x40
878909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_TXMGN_MAIN_V0_M6DB		0x54
879909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_TXMGN_POST_V0_M6DB		0x68
880909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_POWER_STATE_CONFIG		0x15c
881909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_POWER_STATE_CONFIG5		0x16c
882909a5c78SBjorn Andersson #define PCIE_GEN3_QHP_PHY_PCS_TX_RX_CONFIG		0x174
883909a5c78SBjorn Andersson 
8849a24b929SJack Pham /* Only for QMP V4 PHY - USB/PCIe PCS registers */
8859a24b929SJack Pham #define QPHY_V4_PCS_SW_RESET				0x000
8869a24b929SJack Pham #define QPHY_V4_PCS_REVISION_ID0			0x004
8879a24b929SJack Pham #define QPHY_V4_PCS_REVISION_ID1			0x008
8889a24b929SJack Pham #define QPHY_V4_PCS_REVISION_ID2			0x00c
8899a24b929SJack Pham #define QPHY_V4_PCS_REVISION_ID3			0x010
8909a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS1				0x014
8919a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS2				0x018
8929a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS3				0x01c
8939a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS4				0x020
8949a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS5				0x024
8959a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS6				0x028
8969a24b929SJack Pham #define QPHY_V4_PCS_PCS_STATUS7				0x02c
8979a24b929SJack Pham #define QPHY_V4_PCS_DEBUG_BUS_0_STATUS			0x030
8989a24b929SJack Pham #define QPHY_V4_PCS_DEBUG_BUS_1_STATUS			0x034
8999a24b929SJack Pham #define QPHY_V4_PCS_DEBUG_BUS_2_STATUS			0x038
9009a24b929SJack Pham #define QPHY_V4_PCS_DEBUG_BUS_3_STATUS			0x03c
9019a24b929SJack Pham #define QPHY_V4_PCS_POWER_DOWN_CONTROL			0x040
9029a24b929SJack Pham #define QPHY_V4_PCS_START_CONTROL			0x044
9039a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL1			0x048
9049a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL2			0x04c
9059a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL3			0x050
9069a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL4			0x054
9079a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL5			0x058
9089a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL6			0x05c
9099a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL7			0x060
9109a24b929SJack Pham #define QPHY_V4_PCS_INSIG_SW_CTRL8			0x064
9119a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL1			0x068
9129a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL2			0x06c
9139a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL3			0x070
9149a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL4			0x074
9159a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL5			0x078
9169a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL7			0x07c
9179a24b929SJack Pham #define QPHY_V4_PCS_INSIG_MX_CTRL8			0x080
9189a24b929SJack Pham #define QPHY_V4_PCS_OUTSIG_SW_CTRL1			0x084
9199a24b929SJack Pham #define QPHY_V4_PCS_OUTSIG_MX_CTRL1			0x088
9209a24b929SJack Pham #define QPHY_V4_PCS_CLAMP_ENABLE			0x08c
9219a24b929SJack Pham #define QPHY_V4_PCS_POWER_STATE_CONFIG1			0x090
9229a24b929SJack Pham #define QPHY_V4_PCS_POWER_STATE_CONFIG2			0x094
9239a24b929SJack Pham #define QPHY_V4_PCS_FLL_CNTRL1				0x098
9249a24b929SJack Pham #define QPHY_V4_PCS_FLL_CNTRL2				0x09c
9259a24b929SJack Pham #define QPHY_V4_PCS_FLL_CNT_VAL_L			0x0a0
9269a24b929SJack Pham #define QPHY_V4_PCS_FLL_CNT_VAL_H_TOL			0x0a4
9279a24b929SJack Pham #define QPHY_V4_PCS_FLL_MAN_CODE			0x0a8
9289a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL1			0x0ac
9299a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL2			0x0b0
9309a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL3			0x0b4
9319a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL4			0x0b8
9329a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL5			0x0bc
9339a24b929SJack Pham #define QPHY_V4_PCS_TEST_CONTROL6			0x0c0
9349a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG1			0x0c4
9359a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG2			0x0c8
9369a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG3			0x0cc
9379a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG4			0x0d0
9389a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG5			0x0d4
9399a24b929SJack Pham #define QPHY_V4_PCS_LOCK_DETECT_CONFIG6			0x0d8
9409a24b929SJack Pham #define QPHY_V4_PCS_REFGEN_REQ_CONFIG1			0x0dc
9419a24b929SJack Pham #define QPHY_V4_PCS_REFGEN_REQ_CONFIG2			0x0e0
9429a24b929SJack Pham #define QPHY_V4_PCS_REFGEN_REQ_CONFIG3			0x0e4
9439a24b929SJack Pham #define QPHY_V4_PCS_BIST_CTRL				0x0e8
9449a24b929SJack Pham #define QPHY_V4_PCS_PRBS_POLY0				0x0ec
9459a24b929SJack Pham #define QPHY_V4_PCS_PRBS_POLY1				0x0f0
9469a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT0				0x0f4
9479a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT1				0x0f8
9489a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT2				0x0fc
9499a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT3				0x100
9509a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT4				0x104
9519a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT5				0x108
9529a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT6				0x10c
9539a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT7				0x110
9549a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT8				0x114
9559a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT9				0x118
9569a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT10				0x11c
9579a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT11				0x120
9589a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT12				0x124
9599a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT13				0x128
9609a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT14				0x12c
9619a24b929SJack Pham #define QPHY_V4_PCS_FIXED_PAT15				0x130
9629a24b929SJack Pham #define QPHY_V4_PCS_TXMGN_CONFIG			0x134
9639a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V0			0x138
9649a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V1			0x13c
9659a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V2			0x140
9669a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V3			0x144
9679a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V4			0x148
9689a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V0_RS			0x14c
9699a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V1_RS			0x150
9709a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V2_RS			0x154
9719a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V3_RS			0x158
9729a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXMGN_V4_RS			0x15c
9739a24b929SJack Pham #define QPHY_V4_PCS_G3S2_TXMGN_MAIN			0x160
9749a24b929SJack Pham #define QPHY_V4_PCS_G3S2_TXMGN_MAIN_RS			0x164
9759a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXDEEMPH_M6DB			0x168
9769a24b929SJack Pham #define QPHY_V4_PCS_G12S1_TXDEEMPH_M3P5DB		0x16c
9779a24b929SJack Pham #define QPHY_V4_PCS_G3S2_PRE_GAIN			0x170
9789a24b929SJack Pham #define QPHY_V4_PCS_G3S2_POST_GAIN			0x174
9799a24b929SJack Pham #define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET		0x178
9809a24b929SJack Pham #define QPHY_V4_PCS_G3S2_PRE_GAIN_RS			0x17c
9819a24b929SJack Pham #define QPHY_V4_PCS_G3S2_POST_GAIN_RS			0x180
9829a24b929SJack Pham #define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET_RS		0x184
9839a24b929SJack Pham #define QPHY_V4_PCS_RX_SIGDET_LVL			0x188
9849a24b929SJack Pham #define QPHY_V4_PCS_RX_SIGDET_DTCT_CNTRL		0x18c
9859a24b929SJack Pham #define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_L		0x190
9869a24b929SJack Pham #define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_H		0x194
9879a24b929SJack Pham #define QPHY_V4_PCS_RATE_SLEW_CNTRL1			0x198
9889a24b929SJack Pham #define QPHY_V4_PCS_RATE_SLEW_CNTRL2			0x19c
9899a24b929SJack Pham #define QPHY_V4_PCS_PWRUP_RESET_DLY_TIME_AUXCLK		0x1a0
9909a24b929SJack Pham #define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_L	0x1a4
9919a24b929SJack Pham #define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_H	0x1a8
9929a24b929SJack Pham #define QPHY_V4_PCS_TSYNC_RSYNC_TIME			0x1ac
9939a24b929SJack Pham #define QPHY_V4_PCS_CDR_RESET_TIME			0x1b0
9949a24b929SJack Pham #define QPHY_V4_PCS_TSYNC_DLY_TIME			0x1b4
9959a24b929SJack Pham #define QPHY_V4_PCS_ELECIDLE_DLY_SEL			0x1b8
9969a24b929SJack Pham #define QPHY_V4_PCS_CMN_ACK_OUT_SEL			0x1bc
9979a24b929SJack Pham #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG1		0x1c0
9989a24b929SJack Pham #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG2		0x1c4
9999a24b929SJack Pham #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG3		0x1c8
10009a24b929SJack Pham #define QPHY_V4_PCS_ALIGN_DETECT_CONFIG4		0x1cc
10019a24b929SJack Pham #define QPHY_V4_PCS_PCS_TX_RX_CONFIG			0x1d0
10029a24b929SJack Pham #define QPHY_V4_PCS_RX_IDLE_DTCT_CNTRL			0x1d4
10039a24b929SJack Pham #define QPHY_V4_PCS_RX_DCC_CAL_CONFIG			0x1d8
10049a24b929SJack Pham #define QPHY_V4_PCS_EQ_CONFIG1				0x1dc
10059a24b929SJack Pham #define QPHY_V4_PCS_EQ_CONFIG2				0x1e0
10069a24b929SJack Pham #define QPHY_V4_PCS_EQ_CONFIG3				0x1e4
10079a24b929SJack Pham #define QPHY_V4_PCS_EQ_CONFIG4				0x1e8
10089a24b929SJack Pham #define QPHY_V4_PCS_EQ_CONFIG5				0x1ec
1009fc646236SDmitry Baryshkov 
1010fc646236SDmitry Baryshkov /* Only for QMP V4 PHY - USB3 PCS registers */
1011fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_POWER_STATE_CONFIG1		0x000
1012fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_AUTONOMOUS_MODE_STATUS		0x004
1013fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_AUTONOMOUS_MODE_CTRL		0x008
1014fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_AUTONOMOUS_MODE_CTRL2		0x00c
1015fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_RXTERM_IRQ_SOURCE_STATUS	0x010
1016fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_RXTERM_IRQ_CLEAR		0x014
1017fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_DET_HIGH_COUNT_VAL	0x018
1018fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_TX_ECSTART		0x01c
1019fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_PER_TIMER_VAL		0x020
1020fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_LFPS_TX_END_CNT_U3_START	0x024
1021fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RXEQTRAINING_LOCK_TIME		0x028
1022fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RXEQTRAINING_WAIT_TIME		0x02c
1023fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RXEQTRAINING_CTLE_TIME		0x030
1024fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RXEQTRAINING_WAIT_TIME_S2	0x034
1025fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RXEQTRAINING_DFE_TIME_S2	0x038
1026fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RCVR_DTCT_DLY_U3_L		0x03c
1027fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_RCVR_DTCT_DLY_U3_H		0x040
1028fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_ARCVR_DTCT_EN_PERIOD		0x044
1029fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_ARCVR_DTCT_CM_DLY		0x048
1030fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_TXONESZEROS_RUN_LENGTH		0x04c
1031fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_ALFPS_DEGLITCH_VAL		0x050
1032fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_SIGDET_STARTUP_TIMER_VAL	0x054
1033fc646236SDmitry Baryshkov #define QPHY_V4_PCS_USB3_TEST_CONTROL			0x058
10349a24b929SJack Pham 
1035be0ddb5dSManivannan Sadhasivam /* Only for QMP V4_20 PHY - USB/PCIe PCS registers */
1036be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_RX_SIGDET_LVL			0x188
1037be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_EQ_CONFIG2			0x1d8
1038be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_EQ_CONFIG4			0x1e0
1039be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_EQ_CONFIG5			0x1e4
1040be0ddb5dSManivannan Sadhasivam 
10419a24b929SJack Pham /* Only for QMP V4 PHY - PCS_MISC registers */
10429a24b929SJack Pham #define QPHY_V4_PCS_MISC_TYPEC_CTRL			0x00
10439a24b929SJack Pham #define QPHY_V4_PCS_MISC_TYPEC_PWRDN_CTRL		0x04
10449a24b929SJack Pham #define QPHY_V4_PCS_MISC_PCS_MISC_CONFIG1		0x08
10459a24b929SJack Pham #define QPHY_V4_PCS_MISC_CLAMP_ENABLE			0x0c
10469a24b929SJack Pham #define QPHY_V4_PCS_MISC_TYPEC_STATUS			0x10
10479a24b929SJack Pham #define QPHY_V4_PCS_MISC_PLACEHOLDER_STATUS		0x14
10489a24b929SJack Pham 
10496edf7700SManivannan Sadhasivam /* Only for QMP V4 PHY - PCS_PCIE registers (same as PCS_MISC?) */
10506edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG2		0x0c
10516edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG4		0x14
10526edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_ENDPOINT_REFCLK_DRIVE		0x1c
10536edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_L1P1_WAKEUP_DLY_TIME_AUXCLK_L	0x40
10546edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_L1P2_WAKEUP_DLY_TIME_AUXCLK_L	0x48
10556edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_INT_AUX_CLK_CONFIG1		0x50
10566edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_OSC_DTCT_ACTIONS		0x90
10576edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_EQ_CONFIG2			0xa4
10586edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_PRESET_P6_P7_PRE		0xb4
10596edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_PRESET_P10_PRE			0xbc
10606edf7700SManivannan Sadhasivam #define QPHY_V4_PCS_PCIE_PRESET_P10_POST		0xe0
10616edf7700SManivannan Sadhasivam 
1062be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_PCIE_EQ_CONFIG1			0x0a0
1063be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_PCIE_G3_RXEQEVAL_TIME		0x0f0
1064be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_PCIE_G4_RXEQEVAL_TIME		0x0f4
1065be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_PCIE_G4_EQ_CONFIG2		0x0fc
1066be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_PCIE_G4_EQ_CONFIG5		0x108
1067be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_LANE1_INSIG_SW_CTRL2		0x824
1068be0ddb5dSManivannan Sadhasivam #define QPHY_V4_20_PCS_LANE1_INSIG_MX_CTRL2		0x828
1069be0ddb5dSManivannan Sadhasivam 
1070920abc10SVinod Koul /* Only for QMP V5 PHY - QSERDES COM registers */
1071107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_EN_CENTER			0x010
1072107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_PER1				0x01c
1073107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_PER2				0x020
1074107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_STEP_SIZE1_MODE0		0x024
1075107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_STEP_SIZE2_MODE0		0x028
1076107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_STEP_SIZE1_MODE1		0x030
1077107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SSC_STEP_SIZE2_MODE1		0x034
10782c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_BIAS_EN_CLKBUFLR_EN		0x044
1079107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_CLK_ENABLE1			0x048
1080107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_SYSCLK_BUF_ENABLE		0x050
1081920abc10SVinod Koul #define QSERDES_V5_COM_PLL_IVCO				0x058
1082920abc10SVinod Koul #define QSERDES_V5_COM_CP_CTRL_MODE0			0x074
1083920abc10SVinod Koul #define QSERDES_V5_COM_CP_CTRL_MODE1			0x078
1084920abc10SVinod Koul #define QSERDES_V5_COM_PLL_RCTRL_MODE0			0x07c
1085920abc10SVinod Koul #define QSERDES_V5_COM_PLL_RCTRL_MODE1			0x080
1086920abc10SVinod Koul #define QSERDES_V5_COM_PLL_CCTRL_MODE0			0x084
1087920abc10SVinod Koul #define QSERDES_V5_COM_PLL_CCTRL_MODE1			0x088
1088920abc10SVinod Koul #define QSERDES_V5_COM_SYSCLK_EN_SEL			0x094
1089920abc10SVinod Koul #define QSERDES_V5_COM_LOCK_CMP_EN			0x0a4
10902c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_LOCK_CMP_CFG			0x0a8
1091920abc10SVinod Koul #define QSERDES_V5_COM_LOCK_CMP1_MODE0			0x0ac
1092920abc10SVinod Koul #define QSERDES_V5_COM_LOCK_CMP2_MODE0			0x0b0
1093920abc10SVinod Koul #define QSERDES_V5_COM_LOCK_CMP1_MODE1			0x0b4
1094920abc10SVinod Koul #define QSERDES_V5_COM_LOCK_CMP2_MODE1			0x0b8
109574acf0eeSJohan Hovold #define QSERDES_V5_COM_DEC_START_MODE0			0x0bc
1096920abc10SVinod Koul #define QSERDES_V5_COM_DEC_START_MODE1			0x0c4
1097107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START1_MODE0		0x0cc
1098107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START2_MODE0		0x0d0
1099107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START3_MODE0		0x0d4
1100107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START1_MODE1		0x0d8
1101107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START2_MODE1		0x0dc
1102107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_DIV_FRAC_START3_MODE1		0x0e0
1103920abc10SVinod Koul #define QSERDES_V5_COM_VCO_TUNE_MAP			0x10c
1104107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_VCO_TUNE1_MODE0			0x110
1105107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_VCO_TUNE2_MODE0			0x114
1106107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_VCO_TUNE1_MODE1			0x118
1107107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_VCO_TUNE2_MODE1			0x11c
1108920abc10SVinod Koul #define QSERDES_V5_COM_VCO_TUNE_INITVAL2		0x124
1109107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_CLK_SELECT			0x154
1110920abc10SVinod Koul #define QSERDES_V5_COM_HSCLK_SEL			0x158
1111920abc10SVinod Koul #define QSERDES_V5_COM_HSCLK_HS_SWITCH_SEL		0x15c
11122c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_CORECLK_DIV_MODE0		0x168
1113107ba9bfSDmitry Baryshkov #define QSERDES_V5_COM_CORECLK_DIV_MODE1		0x16c
11142c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_CORE_CLK_EN			0x174
11152c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_CMN_CONFIG			0x17c
11162c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_CMN_MISC1			0x19c
1117488987b2SDmitry Baryshkov #define QSERDES_V5_COM_CMN_MODE				0x1a0
1118488987b2SDmitry Baryshkov #define QSERDES_V5_COM_CMN_MODE_CONTD			0x1a4
11192c91bf6bSDmitry Baryshkov #define QSERDES_V5_COM_VCO_DC_LEVEL_CTRL		0x1a8
1120920abc10SVinod Koul #define QSERDES_V5_COM_BIN_VCOCAL_CMP_CODE1_MODE0	0x1ac
1121920abc10SVinod Koul #define QSERDES_V5_COM_BIN_VCOCAL_CMP_CODE2_MODE0	0x1b0
1122920abc10SVinod Koul #define QSERDES_V5_COM_BIN_VCOCAL_CMP_CODE1_MODE1	0x1b4
1123920abc10SVinod Koul #define QSERDES_V5_COM_BIN_VCOCAL_CMP_CODE2_MODE1	0x1b8
112474acf0eeSJohan Hovold #define QSERDES_V5_COM_BIN_VCOCAL_HSCLK_SEL		0x1bc
1125920abc10SVinod Koul 
112610c744d4SJack Pham /* Only for QMP V5 PHY - TX registers */
112710c744d4SJack Pham #define QSERDES_V5_TX_RES_CODE_LANE_TX			0x34
112810c744d4SJack Pham #define QSERDES_V5_TX_RES_CODE_LANE_RX			0x38
112910c744d4SJack Pham #define QSERDES_V5_TX_RES_CODE_LANE_OFFSET_TX		0x3c
113010c744d4SJack Pham #define QSERDES_V5_TX_RES_CODE_LANE_OFFSET_RX		0x40
113110c744d4SJack Pham #define QSERDES_V5_TX_LANE_MODE_1			0x84
113210c744d4SJack Pham #define QSERDES_V5_TX_LANE_MODE_2			0x88
113310c744d4SJack Pham #define QSERDES_V5_TX_LANE_MODE_3			0x8c
113410c744d4SJack Pham #define QSERDES_V5_TX_LANE_MODE_4			0x90
113510c744d4SJack Pham #define QSERDES_V5_TX_LANE_MODE_5			0x94
113610c744d4SJack Pham #define QSERDES_V5_TX_RCV_DETECT_LVL_2			0xa4
113710c744d4SJack Pham #define QSERDES_V5_TX_TRAN_DRVR_EMP_EN			0xc0
113810c744d4SJack Pham #define QSERDES_V5_TX_PI_QEC_CTRL			0xe4
1139920abc10SVinod Koul #define QSERDES_V5_TX_PWM_GEAR_1_DIVIDER_BAND0_1	0x178
1140920abc10SVinod Koul #define QSERDES_V5_TX_PWM_GEAR_2_DIVIDER_BAND0_1	0x17c
1141920abc10SVinod Koul #define QSERDES_V5_TX_PWM_GEAR_3_DIVIDER_BAND0_1	0x180
1142920abc10SVinod Koul #define QSERDES_V5_TX_PWM_GEAR_4_DIVIDER_BAND0_1	0x184
114310c744d4SJack Pham 
11442c91bf6bSDmitry Baryshkov /* Only for QMP V5_20 PHY - TX registers */
11452c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_TX_RES_CODE_LANE_OFFSET_TX	0x30
11462c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_TX_RES_CODE_LANE_OFFSET_RX	0x34
11472c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_TX_LANE_MODE_1			0x78
11482c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_TX_LANE_MODE_2			0x7c
11492c91bf6bSDmitry Baryshkov 
115010c744d4SJack Pham /* Only for QMP V5 PHY - RX registers */
115110c744d4SJack Pham #define QSERDES_V5_RX_UCDR_FO_GAIN			0x008
115210c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SO_GAIN			0x014
115310c744d4SJack Pham #define QSERDES_V5_RX_UCDR_FASTLOCK_FO_GAIN		0x030
115410c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SO_SATURATION_AND_ENABLE	0x034
115510c744d4SJack Pham #define QSERDES_V5_RX_UCDR_FASTLOCK_COUNT_LOW		0x03c
115610c744d4SJack Pham #define QSERDES_V5_RX_UCDR_FASTLOCK_COUNT_HIGH		0x040
115710c744d4SJack Pham #define QSERDES_V5_RX_UCDR_PI_CONTROLS			0x044
115810c744d4SJack Pham #define QSERDES_V5_RX_UCDR_PI_CTRL2			0x048
115910c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SB2_THRESH1			0x04c
116010c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SB2_THRESH2			0x050
116110c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SB2_GAIN1			0x054
116210c744d4SJack Pham #define QSERDES_V5_RX_UCDR_SB2_GAIN2			0x058
116310c744d4SJack Pham #define QSERDES_V5_RX_AUX_DATA_TCOARSE_TFINE		0x060
116410c744d4SJack Pham #define QSERDES_V5_RX_RCLK_AUXDATA_SEL			0x064
116510c744d4SJack Pham #define QSERDES_V5_RX_AC_JTAG_ENABLE			0x068
116610c744d4SJack Pham #define QSERDES_V5_RX_AC_JTAG_MODE			0x078
116710c744d4SJack Pham #define QSERDES_V5_RX_RX_TERM_BW			0x080
1168107ba9bfSDmitry Baryshkov #define QSERDES_V5_RX_TX_ADAPT_POST_THRESH		0x0cc
116910c744d4SJack Pham #define QSERDES_V5_RX_VGA_CAL_CNTRL1			0x0d4
117010c744d4SJack Pham #define QSERDES_V5_RX_VGA_CAL_CNTRL2			0x0d8
117110c744d4SJack Pham #define QSERDES_V5_RX_GM_CAL				0x0dc
117210c744d4SJack Pham #define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL1		0x0e8
117310c744d4SJack Pham #define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL2		0x0ec
117410c744d4SJack Pham #define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL3		0x0f0
117510c744d4SJack Pham #define QSERDES_V5_RX_RX_EQU_ADAPTOR_CNTRL4		0x0f4
117610c744d4SJack Pham #define QSERDES_V5_RX_RX_IDAC_TSETTLE_LOW		0x0f8
117710c744d4SJack Pham #define QSERDES_V5_RX_RX_IDAC_TSETTLE_HIGH		0x0fc
117810c744d4SJack Pham #define QSERDES_V5_RX_RX_IDAC_MEASURE_TIME		0x100
117910c744d4SJack Pham #define QSERDES_V5_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1	0x110
118010c744d4SJack Pham #define QSERDES_V5_RX_RX_OFFSET_ADAPTOR_CNTRL2		0x114
118110c744d4SJack Pham #define QSERDES_V5_RX_SIGDET_ENABLES			0x118
118210c744d4SJack Pham #define QSERDES_V5_RX_SIGDET_CNTRL			0x11c
118310c744d4SJack Pham #define QSERDES_V5_RX_SIGDET_LVL			0x120
118410c744d4SJack Pham #define QSERDES_V5_RX_SIGDET_DEGLITCH_CNTRL		0x124
118510c744d4SJack Pham #define QSERDES_V5_RX_RX_BAND				0x128
118610c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_00_LOW			0x15c
118710c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_00_HIGH			0x160
118810c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_00_HIGH2			0x164
118910c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_00_HIGH3			0x168
119010c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_00_HIGH4			0x16c
119110c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_01_LOW			0x170
119210c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_01_HIGH			0x174
119310c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_01_HIGH2			0x178
119410c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_01_HIGH3			0x17c
119510c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_01_HIGH4			0x180
119610c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_10_LOW			0x184
119710c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_10_HIGH			0x188
119810c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_10_HIGH2			0x18c
119910c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_10_HIGH3			0x190
120010c744d4SJack Pham #define QSERDES_V5_RX_RX_MODE_10_HIGH4			0x194
120110c744d4SJack Pham #define QSERDES_V5_RX_DFE_EN_TIMER			0x1a0
120210c744d4SJack Pham #define QSERDES_V5_RX_DFE_CTLE_POST_CAL_OFFSET		0x1a4
120310c744d4SJack Pham #define QSERDES_V5_RX_DCC_CTRL1				0x1a8
120410c744d4SJack Pham #define QSERDES_V5_RX_VTH_CODE				0x1b0
120510c744d4SJack Pham 
12062c91bf6bSDmitry Baryshkov /* Only for QMP V5_20 PHY - RX registers */
12072c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE2		0x008
12082c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_UCDR_FO_GAIN_RATE3		0x00c
12092c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_UCDR_PI_CONTROLS		0x020
12102c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_0_1	0x02c
12112c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_AUX_DATA_THRESH_BIN_RATE_2_3	0x030
12122c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_IDAC_SAOFFSET		0x07c
12132c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_DFE_3				0x090
12142c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_DFE_DAC_ENABLE1		0x0b4
12152c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH1		0x0c4
12162c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_TX_ADAPT_POST_THRESH2		0x0c8
12172c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_VGA_CAL_MAN_VAL		0x0dc
12182c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_GM_CAL				0x0ec
12192c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_EQU_ADAPTOR_CNTRL4		0x108
12202c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B1		0x164
12212c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B2		0x168
12222c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B3		0x16c
12232c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B5		0x174
12242c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE_0_1_B6		0x178
12252c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B0		0x17c
12262c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B1		0x180
12272c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B2		0x184
12282c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B3		0x188
12292c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B4		0x18c
12302c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B5		0x190
12312c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE2_B6		0x194
12322c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B0		0x198
12332c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B1		0x19c
12342c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B2		0x1a0
12352c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B3		0x1a4
12362c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B4		0x1a8
12372c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B5		0x1ac
12382c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MODE_RATE3_B6		0x1b0
12392c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_PHPRE_CTRL			0x1b4
12402c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_DFE_CTLE_POST_CAL_OFFSET	0x1c0
12412c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE210	0x1f4
12422c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH1_RATE3	0x1f8
12432c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE210	0x1fc
12442c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH2_RATE3	0x200
12452c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE210	0x204
12462c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH3_RATE3	0x208
12472c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH4_RATE3	0x210
12482c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH5_RATE3	0x218
12492c91bf6bSDmitry Baryshkov #define QSERDES_V5_20_RX_RX_MARG_COARSE_THRESH6_RATE3	0x220
12502c91bf6bSDmitry Baryshkov 
1251107ba9bfSDmitry Baryshkov /* Only for QMP V5 PHY - USB/PCIe PCS registers */
1252107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_REFGEN_REQ_CONFIG1			0x0dc
12532c91bf6bSDmitry Baryshkov #define QPHY_V5_PCS_G3S2_PRE_GAIN			0x170
1254107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_RX_SIGDET_LVL			0x188
1255107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_RATE_SLEW_CNTRL1			0x198
12562c91bf6bSDmitry Baryshkov #define QPHY_V5_PCS_EQ_CONFIG2				0x1e0
12572c91bf6bSDmitry Baryshkov #define QPHY_V5_PCS_EQ_CONFIG3				0x1e4
1258107ba9bfSDmitry Baryshkov 
1259107ba9bfSDmitry Baryshkov /* Only for QMP V5 PHY - PCS_PCIE registers */
1260107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_PCIE_ENDPOINT_REFCLK_DRIVE		0x20
1261107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_PCIE_INT_AUX_CLK_CONFIG1		0x54
1262107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_PCIE_OSC_DTCT_ACTIONS		0x94
1263107ba9bfSDmitry Baryshkov #define QPHY_V5_PCS_PCIE_EQ_CONFIG2			0xa8
1264107ba9bfSDmitry Baryshkov 
12652c91bf6bSDmitry Baryshkov /* Only for QMP V5_20 PHY - PCIe PCS registers */
12662c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_ENDPOINT_REFCLK_DRIVE	0x01c
12672c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_OSC_DTCT_ACTIONS		0x090
12682c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_EQ_CONFIG1			0x0a0
12692c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_G4_EQ_CONFIG5		0x108
12702c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_G4_PRE_GAIN			0x15c
12712c91bf6bSDmitry Baryshkov #define QPHY_V5_20_PCS_PCIE_RX_MARGINING_CONFIG3	0x184
12722c91bf6bSDmitry Baryshkov 
1273920abc10SVinod Koul /* Only for QMP V5 PHY - UFS PCS registers */
1274920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TIMER_20US_CORECLK_STEPS_MSB	0x00c
1275920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TIMER_20US_CORECLK_STEPS_LSB	0x010
1276920abc10SVinod Koul #define QPHY_V5_PCS_UFS_PLL_CNTL			0x02c
1277920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_LARGE_AMP_DRV_LVL		0x030
1278920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_SMALL_AMP_DRV_LVL		0x038
1279920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_HSGEAR_CAPABILITY		0x074
1280920abc10SVinod Koul #define QPHY_V5_PCS_UFS_RX_HSGEAR_CAPABILITY		0x0b4
1281920abc10SVinod Koul #define QPHY_V5_PCS_UFS_DEBUG_BUS_CLKSEL		0x124
1282920abc10SVinod Koul #define QPHY_V5_PCS_UFS_RX_MIN_HIBERN8_TIME		0x150
1283920abc10SVinod Koul #define QPHY_V5_PCS_UFS_RX_SIGDET_CTRL1			0x154
1284920abc10SVinod Koul #define QPHY_V5_PCS_UFS_RX_SIGDET_CTRL2			0x158
1285920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_PWM_GEAR_BAND		0x160
1286920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_HS_GEAR_BAND			0x168
1287920abc10SVinod Koul #define QPHY_V5_PCS_UFS_TX_MID_TERM_CTRL1		0x1d8
1288920abc10SVinod Koul #define QPHY_V5_PCS_UFS_MULTI_LANE_CTRL1		0x1e0
1289920abc10SVinod Koul 
129010c744d4SJack Pham /* Only for QMP V5 PHY - USB3 have different offsets than V4 */
1291fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_POWER_STATE_CONFIG1		0x000
1292fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_AUTONOMOUS_MODE_STATUS		0x004
1293fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_AUTONOMOUS_MODE_CTRL		0x008
1294fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_AUTONOMOUS_MODE_CTRL2		0x00c
1295fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_RXTERM_IRQ_SOURCE_STATUS	0x010
1296fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_RXTERM_IRQ_CLEAR		0x014
1297fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_DET_HIGH_COUNT_VAL	0x018
1298fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_TX_ECSTART		0x01c
1299fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_PER_TIMER_VAL		0x020
1300fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_TX_END_CNT_U3_START	0x024
1301fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_LFPS_CONFIG1			0x028
1302fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXEQTRAINING_LOCK_TIME		0x02c
1303fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXEQTRAINING_WAIT_TIME		0x030
1304fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXEQTRAINING_CTLE_TIME		0x034
1305fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXEQTRAINING_WAIT_TIME_S2	0x038
1306fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXEQTRAINING_DFE_TIME_S2	0x03c
1307fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RCVR_DTCT_DLY_U3_L		0x040
1308fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RCVR_DTCT_DLY_U3_H		0x044
1309fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_ARCVR_DTCT_EN_PERIOD		0x048
1310fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_ARCVR_DTCT_CM_DLY		0x04c
1311fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_TXONESZEROS_RUN_LENGTH		0x050
1312fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_ALFPS_DEGLITCH_VAL		0x054
1313fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_SIGDET_STARTUP_TIMER_VAL	0x058
1314fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_TEST_CONTROL			0x05c
1315fc646236SDmitry Baryshkov #define QPHY_V5_PCS_USB3_RXTERMINATION_DLY_SEL		0x060
131610c744d4SJack Pham 
1317e2248617SManu Gautam #endif
1318