Skip to content

Commit dc32762

Browse files
lumagvinodkoul
authored andcommitted
phy: qcom-qmp: move PCS MISC V4 registers to separate header
Move PCS MISC V4 registers to the separate header. Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6e94022 commit dc32762

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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_MISC_V4_H_
7+
#define QCOM_PHY_QMP_PCS_MISC_V4_H_
8+
9+
/* Only for QMP V4 PHY - PCS_MISC registers */
10+
#define QPHY_V4_PCS_MISC_TYPEC_CTRL 0x00
11+
#define QPHY_V4_PCS_MISC_TYPEC_PWRDN_CTRL 0x04
12+
#define QPHY_V4_PCS_MISC_PCS_MISC_CONFIG1 0x08
13+
#define QPHY_V4_PCS_MISC_CLAMP_ENABLE 0x0c
14+
#define QPHY_V4_PCS_MISC_TYPEC_STATUS 0x10
15+
#define QPHY_V4_PCS_MISC_PLACEHOLDER_STATUS 0x14
16+
17+
#endif

drivers/phy/qualcomm/phy-qcom-qmp-usb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "phy-qcom-qmp.h"
2323
#include "phy-qcom-qmp-pcs-misc-v3.h"
24+
#include "phy-qcom-qmp-pcs-misc-v4.h"
2425
#include "phy-qcom-qmp-pcs-usb-v4.h"
2526
#include "phy-qcom-qmp-pcs-usb-v5.h"
2627

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@
126126
#define QSERDES_V4_DP_PHY_AUX_INTERRUPT_STATUS 0x0d8
127127
#define QSERDES_V4_DP_PHY_STATUS 0x0dc
128128

129-
/* Only for QMP V4 PHY - PCS_MISC registers */
130-
#define QPHY_V4_PCS_MISC_TYPEC_CTRL 0x00
131-
#define QPHY_V4_PCS_MISC_TYPEC_PWRDN_CTRL 0x04
132-
#define QPHY_V4_PCS_MISC_PCS_MISC_CONFIG1 0x08
133-
#define QPHY_V4_PCS_MISC_CLAMP_ENABLE 0x0c
134-
#define QPHY_V4_PCS_MISC_TYPEC_STATUS 0x10
135-
#define QPHY_V4_PCS_MISC_PLACEHOLDER_STATUS 0x14
136-
137129
#define QSERDES_V5_DP_PHY_STATUS 0x0dc
138130

139131
/* Only for QMP V6 PHY - DP PHY registers */

0 commit comments

Comments
 (0)