@@ -75,24 +75,24 @@ enum qphy_reg_layout {
7575};
7676
7777static const unsigned int ipq_pciephy_gen3_regs_layout [QPHY_LAYOUT_SIZE ] = {
78- [QPHY_SW_RESET ] = 0x00 ,
79- [QPHY_START_CTRL ] = 0x44 ,
80- [QPHY_PCS_STATUS ] = 0x14 ,
81- [QPHY_PCS_POWER_DOWN_CONTROL ] = 0x40 ,
78+ [QPHY_SW_RESET ] = QPHY_V4_PCS_SW_RESET ,
79+ [QPHY_START_CTRL ] = QPHY_V4_PCS_START_CONTROL ,
80+ [QPHY_PCS_STATUS ] = QPHY_V4_PCS_PCS_STATUS1 ,
81+ [QPHY_PCS_POWER_DOWN_CONTROL ] = QPHY_V4_PCS_POWER_DOWN_CONTROL ,
8282};
8383
8484static const unsigned int pciephy_regs_layout [QPHY_LAYOUT_SIZE ] = {
85- [QPHY_SW_RESET ] = 0x00 ,
86- [QPHY_START_CTRL ] = 0x08 ,
87- [QPHY_PCS_STATUS ] = 0x174 ,
88- [QPHY_PCS_POWER_DOWN_CONTROL ] = 0x04 ,
85+ [QPHY_SW_RESET ] = QPHY_V2_PCS_SW_RESET ,
86+ [QPHY_START_CTRL ] = QPHY_V2_PCS_START_CONTROL ,
87+ [QPHY_PCS_STATUS ] = QPHY_V2_PCS_PCI_PCS_STATUS ,
88+ [QPHY_PCS_POWER_DOWN_CONTROL ] = QPHY_V2_PCS_POWER_DOWN_CONTROL ,
8989};
9090
9191static const unsigned int sdm845_qmp_pciephy_regs_layout [QPHY_LAYOUT_SIZE ] = {
92- [QPHY_SW_RESET ] = 0x00 ,
93- [QPHY_START_CTRL ] = 0x08 ,
94- [QPHY_PCS_STATUS ] = 0x174 ,
95- [QPHY_PCS_POWER_DOWN_CONTROL ] = 0x04 ,
92+ [QPHY_SW_RESET ] = QPHY_V3_PCS_SW_RESET ,
93+ [QPHY_START_CTRL ] = QPHY_V3_PCS_START_CONTROL ,
94+ [QPHY_PCS_STATUS ] = QPHY_V3_PCS_PCS_STATUS ,
95+ [QPHY_PCS_POWER_DOWN_CONTROL ] = QPHY_V3_PCS_POWER_DOWN_CONTROL ,
9696};
9797
9898static const unsigned int sdm845_qhp_pciephy_regs_layout [QPHY_LAYOUT_SIZE ] = {
@@ -103,10 +103,10 @@ static const unsigned int sdm845_qhp_pciephy_regs_layout[QPHY_LAYOUT_SIZE] = {
103103};
104104
105105static const unsigned int sm8250_pcie_regs_layout [QPHY_LAYOUT_SIZE ] = {
106- [QPHY_SW_RESET ] = 0x00 ,
107- [QPHY_START_CTRL ] = 0x44 ,
108- [QPHY_PCS_STATUS ] = 0x14 ,
109- [QPHY_PCS_POWER_DOWN_CONTROL ] = 0x40 ,
106+ [QPHY_SW_RESET ] = QPHY_V4_PCS_SW_RESET ,
107+ [QPHY_START_CTRL ] = QPHY_V4_PCS_START_CONTROL ,
108+ [QPHY_PCS_STATUS ] = QPHY_V4_PCS_PCS_STATUS1 ,
109+ [QPHY_PCS_POWER_DOWN_CONTROL ] = QPHY_V4_PCS_POWER_DOWN_CONTROL ,
110110};
111111
112112static const struct qmp_phy_init_tbl msm8998_pcie_serdes_tbl [] = {
0 commit comments