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

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom-qmp-combo: use v6 registers in v6 regs layout

Make sure that we use only v6 registers in qmp_v6_usb3phy_regs_layout.

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

authored by

Dmitry Baryshkov and committed by
Vinod Koul
b5ec2824 5077b136

+12 -7
+6 -6
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
··· 194 194 }; 195 195 196 196 static const unsigned int qmp_v6_usb3phy_regs_layout[QPHY_LAYOUT_SIZE] = { 197 - [QPHY_SW_RESET] = QPHY_V5_PCS_SW_RESET, 198 - [QPHY_START_CTRL] = QPHY_V5_PCS_START_CONTROL, 199 - [QPHY_PCS_STATUS] = QPHY_V5_PCS_PCS_STATUS1, 200 - [QPHY_PCS_POWER_DOWN_CONTROL] = QPHY_V5_PCS_POWER_DOWN_CONTROL, 197 + [QPHY_SW_RESET] = QPHY_V6_PCS_SW_RESET, 198 + [QPHY_START_CTRL] = QPHY_V6_PCS_START_CONTROL, 199 + [QPHY_PCS_STATUS] = QPHY_V6_PCS_PCS_STATUS1, 200 + [QPHY_PCS_POWER_DOWN_CONTROL] = QPHY_V6_PCS_POWER_DOWN_CONTROL, 201 201 202 202 /* In PCS_USB */ 203 - [QPHY_PCS_AUTONOMOUS_MODE_CTRL] = QPHY_V5_PCS_USB3_AUTONOMOUS_MODE_CTRL, 204 - [QPHY_PCS_LFPS_RXTERM_IRQ_CLEAR] = QPHY_V5_PCS_USB3_LFPS_RXTERM_IRQ_CLEAR, 203 + [QPHY_PCS_AUTONOMOUS_MODE_CTRL] = QPHY_V6_PCS_USB3_AUTONOMOUS_MODE_CTRL, 204 + [QPHY_PCS_LFPS_RXTERM_IRQ_CLEAR] = QPHY_V6_PCS_USB3_LFPS_RXTERM_IRQ_CLEAR, 205 205 206 206 [QPHY_COM_RESETSM_CNTRL] = QSERDES_V6_COM_RESETSM_CNTRL, 207 207 [QPHY_COM_C_READY_STATUS] = QSERDES_V6_COM_C_READY_STATUS,
+2 -1
drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h
··· 6 6 #ifndef QCOM_PHY_QMP_PCS_USB_V6_H_ 7 7 #define QCOM_PHY_QMP_PCS_USB_V6_H_ 8 8 9 - /* Only for QMP V6 PHY - USB3 have different offsets than V5 */ 10 9 #define QPHY_V6_PCS_USB3_POWER_STATE_CONFIG1 0x00 10 + #define QPHY_V6_PCS_USB3_AUTONOMOUS_MODE_CTRL 0x08 11 + #define QPHY_V6_PCS_USB3_LFPS_RXTERM_IRQ_CLEAR 0x14 11 12 #define QPHY_V6_PCS_USB3_LFPS_DET_HIGH_COUNT_VAL 0x18 12 13 #define QPHY_V6_PCS_USB3_RXEQTRAINING_DFE_TIME_S2 0x3c 13 14 #define QPHY_V6_PCS_USB3_RCVR_DTCT_DLY_U3_L 0x40
+4
drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h
··· 7 7 #define QCOM_PHY_QMP_PCS_V6_H_ 8 8 9 9 /* Only for QMP V6 PHY - USB/PCIe PCS registers */ 10 + #define QPHY_V6_PCS_SW_RESET 0x000 11 + #define QPHY_V6_PCS_PCS_STATUS1 0x014 12 + #define QPHY_V6_PCS_POWER_DOWN_CONTROL 0x040 13 + #define QPHY_V6_PCS_START_CONTROL 0x044 10 14 #define QPHY_V6_PCS_POWER_STATE_CONFIG1 0x090 11 15 #define QPHY_V6_PCS_LOCK_DETECT_CONFIG1 0x0c4 12 16 #define QPHY_V6_PCS_LOCK_DETECT_CONFIG2 0x0c8