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

phy: qcom-qmp: move PCS V2 registers to separate header

Move PCS V2 registers to the separate header.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220705094320.1313312-14-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dmitry Baryshkov and committed by
Vinod Koul
5ae11aa4 147924ff

+39 -28
+38
drivers/phy/qualcomm/phy-qcom-qmp-pcs-v2.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_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_RX_MIN_STALL_NOCONFIG_TIME_CAP 0x0cc 28 + #define QPHY_V2_PCS_RX_SYM_RESYNC_CTRL 0x13c 29 + #define QPHY_V2_PCS_RX_MIN_HIBERN8_TIME 0x140 30 + #define QPHY_V2_PCS_RX_SIGDET_CTRL2 0x148 31 + #define QPHY_V2_PCS_RX_PWM_GEAR_BAND 0x154 32 + #define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB 0x1a8 33 + #define QPHY_V2_PCS_OSC_DTCT_ACTIONS 0x1ac 34 + #define QPHY_V2_PCS_RX_SIGDET_LVL 0x1d8 35 + #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB 0x1dc 36 + #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB 0x1e0 37 + 38 + #endif
+1 -28
drivers/phy/qualcomm/phy-qcom-qmp.h
··· 20 20 21 21 #include "phy-qcom-qmp-qserdes-pll.h" 22 22 23 - /* Only for QMP V2 PHY - PCS registers */ 24 - #define QPHY_V2_PCS_POWER_DOWN_CONTROL 0x04 25 - #define QPHY_V2_PCS_TXDEEMPH_M6DB_V0 0x24 26 - #define QPHY_V2_PCS_TXDEEMPH_M3P5DB_V0 0x28 27 - #define QPHY_V2_PCS_TX_LARGE_AMP_DRV_LVL 0x34 28 - #define QPHY_V2_PCS_TX_LARGE_AMP_POST_EMP_LVL 0x38 29 - #define QPHY_V2_PCS_TX_SMALL_AMP_DRV_LVL 0x3c 30 - #define QPHY_V2_PCS_TX_SMALL_AMP_POST_EMP_LVL 0x40 31 - #define QPHY_V2_PCS_ENDPOINT_REFCLK_DRIVE 0x54 32 - #define QPHY_V2_PCS_RX_IDLE_DTCT_CNTRL 0x58 33 - #define QPHY_V2_PCS_POWER_STATE_CONFIG1 0x60 34 - #define QPHY_V2_PCS_POWER_STATE_CONFIG2 0x64 35 - #define QPHY_V2_PCS_POWER_STATE_CONFIG4 0x6c 36 - #define QPHY_V2_PCS_LOCK_DETECT_CONFIG1 0x80 37 - #define QPHY_V2_PCS_LOCK_DETECT_CONFIG2 0x84 38 - #define QPHY_V2_PCS_LOCK_DETECT_CONFIG3 0x88 39 - #define QPHY_V2_PCS_PWRUP_RESET_DLY_TIME_AUXCLK 0xa0 40 - #define QPHY_V2_PCS_LP_WAKEUP_DLY_TIME_AUXCLK 0xa4 41 - #define QPHY_V2_PCS_RX_MIN_STALL_NOCONFIG_TIME_CAP 0xcc 42 - #define QPHY_V2_PCS_RX_SYM_RESYNC_CTRL 0x13c 43 - #define QPHY_V2_PCS_RX_MIN_HIBERN8_TIME 0x140 44 - #define QPHY_V2_PCS_RX_SIGDET_CTRL2 0x148 45 - #define QPHY_V2_PCS_RX_PWM_GEAR_BAND 0x154 46 - #define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB 0x1a8 47 - #define QPHY_V2_PCS_OSC_DTCT_ACTIONS 0x1ac 48 - #define QPHY_V2_PCS_RX_SIGDET_LVL 0x1d8 49 - #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB 0x1dc 50 - #define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB 0x1e0 23 + #include "phy-qcom-qmp-pcs-v2.h" 51 24 52 25 /* Only for QMP V3 & V4 PHY - DP COM registers */ 53 26 #define QPHY_V3_DP_COM_PHY_MODE_CTRL 0x00