Skip to content

Commit 99bf896

Browse files
abelvesavinodkoul
authored andcommitted
phy: qcom-qmp: pcs: Add missing v6 N4 register offsets
The new X1E80100 SoC bumps up the HW version of QMP phy to v6 N4 for combo USB and DP PHY. Currently, the X1E80100 uses the pure V6 PCS register offsets, which are different. Add the offsets so the mentioned platform can be fixed later on. Add the new PCS offsets in a dedicated header file. Fixes: d7b3579 ("phy: qcom-qmp-combo: Add x1e80100 USB/DP combo phys") Co-developed-by: Kuogee Hsieh <[email protected]> Signed-off-by: Kuogee Hsieh <[email protected]> Signed-off-by: Abel Vesa <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/20240527-x1e80100-phy-qualcomm-combo-fix-dp-v1-2-be8a0b882117@linaro.org Signed-off-by: Vinod Koul <[email protected]>
1 parent 5314e84 commit 99bf896

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Copyright (c) 2023, Linaro Limited
4+
*/
5+
6+
#ifndef QCOM_PHY_QMP_PCS_V6_N4_H_
7+
#define QCOM_PHY_QMP_PCS_V6_N4_H_
8+
9+
/* Only for QMP V6 N4 PHY - USB/PCIe PCS registers */
10+
#define QPHY_V6_N4_PCS_SW_RESET 0x000
11+
#define QPHY_V6_N4_PCS_PCS_STATUS1 0x014
12+
#define QPHY_V6_N4_PCS_POWER_DOWN_CONTROL 0x040
13+
#define QPHY_V6_N4_PCS_START_CONTROL 0x044
14+
#define QPHY_V6_N4_PCS_POWER_STATE_CONFIG1 0x090
15+
#define QPHY_V6_N4_PCS_LOCK_DETECT_CONFIG1 0x0c4
16+
#define QPHY_V6_N4_PCS_LOCK_DETECT_CONFIG2 0x0c8
17+
#define QPHY_V6_N4_PCS_LOCK_DETECT_CONFIG3 0x0cc
18+
#define QPHY_V6_N4_PCS_LOCK_DETECT_CONFIG6 0x0d8
19+
#define QPHY_V6_N4_PCS_REFGEN_REQ_CONFIG1 0x0dc
20+
#define QPHY_V6_N4_PCS_RX_SIGDET_LVL 0x188
21+
#define QPHY_V6_N4_PCS_RCVR_DTCT_DLY_P1U2_L 0x190
22+
#define QPHY_V6_N4_PCS_RCVR_DTCT_DLY_P1U2_H 0x194
23+
#define QPHY_V6_N4_PCS_RATE_SLEW_CNTRL1 0x198
24+
#define QPHY_V6_N4_PCS_RX_CONFIG 0x1b0
25+
#define QPHY_V6_N4_PCS_ALIGN_DETECT_CONFIG1 0x1c0
26+
#define QPHY_V6_N4_PCS_ALIGN_DETECT_CONFIG2 0x1c4
27+
#define QPHY_V6_N4_PCS_PCS_TX_RX_CONFIG 0x1d0
28+
#define QPHY_V6_N4_PCS_EQ_CONFIG1 0x1dc
29+
#define QPHY_V6_N4_PCS_EQ_CONFIG2 0x1e0
30+
#define QPHY_V6_N4_PCS_EQ_CONFIG5 0x1ec
31+
32+
#endif

0 commit comments

Comments
 (0)