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

phy: qcom-qmp-ufs: split UFS-specific v2 PCS registers to a separate header

Follow other QMP headers, split and rename UFS-specific PCS registers to
ease comparing regs differences.

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

authored by

Dmitry Baryshkov and committed by
Vinod Koul
cbd06cde 61f21e0e

+30 -20
+20
drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-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_UFS_V2_H_ 7 + #define QCOM_PHY_QMP_PCS_UFS_V2_H_ 8 + 9 + #define QPHY_V2_PCS_UFS_TX_LARGE_AMP_DRV_LVL 0x034 10 + #define QPHY_V2_PCS_UFS_TX_LARGE_AMP_POST_EMP_LVL 0x038 11 + #define QPHY_V2_PCS_UFS_TX_SMALL_AMP_DRV_LVL 0x03c 12 + #define QPHY_V2_PCS_UFS_TX_SMALL_AMP_POST_EMP_LVL 0x040 13 + 14 + #define QPHY_V2_PCS_UFS_RX_MIN_STALL_NOCONFIG_TIME_CAP 0x0cc 15 + #define QPHY_V2_PCS_UFS_RX_SYM_RESYNC_CTRL 0x13c 16 + #define QPHY_V2_PCS_UFS_RX_MIN_HIBERN8_TIME 0x140 17 + #define QPHY_V2_PCS_UFS_RX_SIGDET_CTRL2 0x148 18 + #define QPHY_V2_PCS_UFS_RX_PWM_GEAR_BAND 0x154 19 + 20 + #endif
-11
drivers/phy/qualcomm/phy-qcom-qmp-pcs-v2.h
··· 12 12 #define QPHY_V2_PCS_START_CONTROL 0x008 13 13 #define QPHY_V2_PCS_TXDEEMPH_M6DB_V0 0x024 14 14 #define QPHY_V2_PCS_TXDEEMPH_M3P5DB_V0 0x028 15 - #define QPHY_V2_PCS_TX_LARGE_AMP_DRV_LVL 0x034 16 - #define QPHY_V2_PCS_TX_LARGE_AMP_POST_EMP_LVL 0x038 17 - #define QPHY_V2_PCS_TX_SMALL_AMP_DRV_LVL 0x03c 18 - #define QPHY_V2_PCS_TX_SMALL_AMP_POST_EMP_LVL 0x040 19 15 #define QPHY_V2_PCS_ENDPOINT_REFCLK_DRIVE 0x054 20 16 #define QPHY_V2_PCS_RX_IDLE_DTCT_CNTRL 0x058 21 17 #define QPHY_V2_PCS_POWER_STATE_CONFIG1 0x060 ··· 28 32 #define QPHY_V2_PCS_FLL_CNT_VAL_L 0x0c8 29 33 #define QPHY_V2_PCS_FLL_CNT_VAL_H_TOL 0x0cc 30 34 #define QPHY_V2_PCS_FLL_MAN_CODE 0x0d0 31 - 32 - /* UFS only ? */ 33 - #define QPHY_V2_PCS_RX_MIN_STALL_NOCONFIG_TIME_CAP 0x0cc 34 - #define QPHY_V2_PCS_RX_SYM_RESYNC_CTRL 0x13c 35 - #define QPHY_V2_PCS_RX_MIN_HIBERN8_TIME 0x140 36 - #define QPHY_V2_PCS_RX_SIGDET_CTRL2 0x148 37 - #define QPHY_V2_PCS_RX_PWM_GEAR_BAND 0x154 38 35 #define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB 0x1a8 39 36 #define QPHY_V2_PCS_OSC_DTCT_ACTIONS 0x1ac 40 37 #define QPHY_V2_PCS_RX_SIGDET_LVL 0x1d8
+9 -9
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
··· 242 242 }; 243 243 244 244 static const struct qmp_phy_init_tbl sm6115_ufsphy_pcs_tbl[] = { 245 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_RX_PWM_GEAR_BAND, 0x15), 246 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_RX_SIGDET_CTRL2, 0x6d), 247 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_TX_LARGE_AMP_DRV_LVL, 0x0f), 248 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_TX_SMALL_AMP_DRV_LVL, 0x02), 249 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_RX_MIN_STALL_NOCONFIG_TIME_CAP, 0x28), 250 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_RX_SYM_RESYNC_CTRL, 0x03), 251 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_TX_LARGE_AMP_POST_EMP_LVL, 0x12), 252 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_TX_SMALL_AMP_POST_EMP_LVL, 0x0f), 253 - QMP_PHY_INIT_CFG(QPHY_V2_PCS_RX_MIN_HIBERN8_TIME, 0x9a), /* 8 us */ 245 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_RX_PWM_GEAR_BAND, 0x15), 246 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_RX_SIGDET_CTRL2, 0x6d), 247 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_TX_LARGE_AMP_DRV_LVL, 0x0f), 248 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_TX_SMALL_AMP_DRV_LVL, 0x02), 249 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_RX_MIN_STALL_NOCONFIG_TIME_CAP, 0x28), 250 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_RX_SYM_RESYNC_CTRL, 0x03), 251 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_TX_LARGE_AMP_POST_EMP_LVL, 0x12), 252 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_TX_SMALL_AMP_POST_EMP_LVL, 0x0f), 253 + QMP_PHY_INIT_CFG(QPHY_V2_PCS_UFS_RX_MIN_HIBERN8_TIME, 0x9a), /* 8 us */ 254 254 }; 255 255 256 256 static const struct qmp_phy_init_tbl sdm845_ufsphy_serdes_tbl[] = {
+1
drivers/phy/qualcomm/phy-qcom-qmp.h
··· 24 24 #include "phy-qcom-qmp-qserdes-pll.h" 25 25 26 26 #include "phy-qcom-qmp-pcs-v2.h" 27 + #include "phy-qcom-qmp-pcs-ufs-v2.h" 27 28 28 29 #include "phy-qcom-qmp-pcs-v3.h" 29 30 #include "phy-qcom-qmp-pcs-misc-v3.h"