Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230824211952.1397699-6-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dmitry Baryshkov and committed by
Vinod Koul
dc327622 6e940226

+18 -8
+17
drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v4.h
··· 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
+1
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
··· 21 21 22 22 #include "phy-qcom-qmp.h" 23 23 #include "phy-qcom-qmp-pcs-misc-v3.h" 24 + #include "phy-qcom-qmp-pcs-misc-v4.h" 24 25 #include "phy-qcom-qmp-pcs-usb-v4.h" 25 26 #include "phy-qcom-qmp-pcs-usb-v5.h" 26 27
-8
drivers/phy/qualcomm/phy-qcom-qmp.h
··· 126 126 #define QSERDES_V4_DP_PHY_AUX_INTERRUPT_STATUS 0x0d8 127 127 #define QSERDES_V4_DP_PHY_STATUS 0x0dc 128 128 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 - 137 129 #define QSERDES_V5_DP_PHY_STATUS 0x0dc 138 130 139 131 /* Only for QMP V6 PHY - DP PHY registers */