xref: /linux/drivers/phy/qualcomm/phy-qcom-qmp-pcs-v2.h (revision 4359a011e259a4608afc7fb3635370c9d4ba5943)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2017, The Linux Foundation. All rights reserved.
4  */
5 
6 #ifndef QCOM_PHY_QMP_PCS_V2_H_
7 #define QCOM_PHY_QMP_PCS_V2_H_
8 
9 /* Only for QMP V2 PHY - PCS registers */
10 #define QPHY_V2_PCS_POWER_DOWN_CONTROL			0x004
11 #define QPHY_V2_PCS_TXDEEMPH_M6DB_V0			0x024
12 #define QPHY_V2_PCS_TXDEEMPH_M3P5DB_V0			0x028
13 #define QPHY_V2_PCS_TX_LARGE_AMP_DRV_LVL		0x034
14 #define QPHY_V2_PCS_TX_LARGE_AMP_POST_EMP_LVL		0x038
15 #define QPHY_V2_PCS_TX_SMALL_AMP_DRV_LVL		0x03c
16 #define QPHY_V2_PCS_TX_SMALL_AMP_POST_EMP_LVL		0x040
17 #define QPHY_V2_PCS_ENDPOINT_REFCLK_DRIVE		0x054
18 #define QPHY_V2_PCS_RX_IDLE_DTCT_CNTRL			0x058
19 #define QPHY_V2_PCS_POWER_STATE_CONFIG1			0x060
20 #define QPHY_V2_PCS_POWER_STATE_CONFIG2			0x064
21 #define QPHY_V2_PCS_POWER_STATE_CONFIG4			0x06c
22 #define QPHY_V2_PCS_LOCK_DETECT_CONFIG1			0x080
23 #define QPHY_V2_PCS_LOCK_DETECT_CONFIG2			0x084
24 #define QPHY_V2_PCS_LOCK_DETECT_CONFIG3			0x088
25 #define QPHY_V2_PCS_PWRUP_RESET_DLY_TIME_AUXCLK		0x0a0
26 #define QPHY_V2_PCS_LP_WAKEUP_DLY_TIME_AUXCLK		0x0a4
27 #define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME		0x0a8
28 #define QPHY_V2_PCS_FLL_CNTRL1				0x0c0
29 #define QPHY_V2_PCS_FLL_CNTRL2				0x0c4
30 #define QPHY_V2_PCS_FLL_CNT_VAL_L			0x0c8
31 #define QPHY_V2_PCS_FLL_CNT_VAL_H_TOL			0x0cc
32 #define QPHY_V2_PCS_FLL_MAN_CODE			0x0d0
33 
34 /* UFS only ? */
35 #define QPHY_V2_PCS_RX_MIN_STALL_NOCONFIG_TIME_CAP	0x0cc
36 #define QPHY_V2_PCS_RX_SYM_RESYNC_CTRL			0x13c
37 #define QPHY_V2_PCS_RX_MIN_HIBERN8_TIME			0x140
38 #define QPHY_V2_PCS_RX_SIGDET_CTRL2			0x148
39 #define QPHY_V2_PCS_RX_PWM_GEAR_BAND			0x154
40 #define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB	0x1a8
41 #define QPHY_V2_PCS_OSC_DTCT_ACTIONS			0x1ac
42 #define QPHY_V2_PCS_RX_SIGDET_LVL			0x1d8
43 #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB	0x1dc
44 #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB	0x1e0
45 
46 #endif
47