Skip to content

Commit 2d0f973

Browse files
Bartosz Wawrzyniakvinodkoul
authored andcommitted
phy: cadence: Sierra: Fix offset of DEQ open eye algorithm control register
Fix the value of SIERRA_DEQ_OPENEYE_CTRL_PREG and add a definition for SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG. This fixes the SGMII single link register configuration. Fixes: 7a5ad9b ("phy: cadence: Sierra: Update single link PCIe register configuration") Signed-off-by: Bartosz Wawrzyniak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent cb4c7df commit 2d0f973

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

drivers/phy/cadence/phy-cadence-sierra.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@
174174
#define SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG 0x150
175175
#define SIERRA_DEQ_TAU_CTRL2_PREG 0x151
176176
#define SIERRA_DEQ_TAU_CTRL3_PREG 0x152
177-
#define SIERRA_DEQ_OPENEYE_CTRL_PREG 0x158
177+
#define SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG 0x158
178178
#define SIERRA_DEQ_CONCUR_EPIOFFSET_MODE_PREG 0x159
179+
#define SIERRA_DEQ_OPENEYE_CTRL_PREG 0x15C
179180
#define SIERRA_DEQ_PICTRL_PREG 0x161
180181
#define SIERRA_CPICAL_TMRVAL_MODE1_PREG 0x170
181182
#define SIERRA_CPICAL_TMRVAL_MODE0_PREG 0x171
@@ -1733,7 +1734,7 @@ static const struct cdns_reg_pairs ml_pcie_100_no_ssc_ln_regs[] = {
17331734
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
17341735
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
17351736
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
1736-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
1737+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
17371738
{0x002B, SIERRA_CPI_TRIM_PREG},
17381739
{0x0003, SIERRA_EPI_CTRL_PREG},
17391740
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -1797,7 +1798,7 @@ static const struct cdns_reg_pairs ti_ml_pcie_100_no_ssc_ln_regs[] = {
17971798
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
17981799
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
17991800
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
1800-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
1801+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
18011802
{0x002B, SIERRA_CPI_TRIM_PREG},
18021803
{0x0003, SIERRA_EPI_CTRL_PREG},
18031804
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -1874,7 +1875,7 @@ static const struct cdns_reg_pairs ml_pcie_100_int_ssc_ln_regs[] = {
18741875
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
18751876
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
18761877
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
1877-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
1878+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
18781879
{0x002B, SIERRA_CPI_TRIM_PREG},
18791880
{0x0003, SIERRA_EPI_CTRL_PREG},
18801881
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -1941,7 +1942,7 @@ static const struct cdns_reg_pairs ti_ml_pcie_100_int_ssc_ln_regs[] = {
19411942
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
19421943
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
19431944
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
1944-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
1945+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
19451946
{0x002B, SIERRA_CPI_TRIM_PREG},
19461947
{0x0003, SIERRA_EPI_CTRL_PREG},
19471948
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -2012,7 +2013,7 @@ static const struct cdns_reg_pairs ml_pcie_100_ext_ssc_ln_regs[] = {
20122013
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
20132014
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
20142015
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
2015-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
2016+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
20162017
{0x002B, SIERRA_CPI_TRIM_PREG},
20172018
{0x0003, SIERRA_EPI_CTRL_PREG},
20182019
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -2079,7 +2080,7 @@ static const struct cdns_reg_pairs ti_ml_pcie_100_ext_ssc_ln_regs[] = {
20792080
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
20802081
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
20812082
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
2082-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
2083+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
20832084
{0x002B, SIERRA_CPI_TRIM_PREG},
20842085
{0x0003, SIERRA_EPI_CTRL_PREG},
20852086
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -2140,7 +2141,7 @@ static const struct cdns_reg_pairs cdns_pcie_ln_regs_no_ssc[] = {
21402141
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
21412142
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
21422143
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
2143-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
2144+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
21442145
{0x002B, SIERRA_CPI_TRIM_PREG},
21452146
{0x0003, SIERRA_EPI_CTRL_PREG},
21462147
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -2215,7 +2216,7 @@ static const struct cdns_reg_pairs cdns_pcie_ln_regs_int_ssc[] = {
22152216
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
22162217
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
22172218
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
2218-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
2219+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
22192220
{0x002B, SIERRA_CPI_TRIM_PREG},
22202221
{0x0003, SIERRA_EPI_CTRL_PREG},
22212222
{0x803F, SIERRA_SDFILT_H2L_A_PREG},
@@ -2284,7 +2285,7 @@ static const struct cdns_reg_pairs cdns_pcie_ln_regs_ext_ssc[] = {
22842285
{0x3C0F, SIERRA_DEQ_TAU_CTRL1_SLOW_MAINT_PREG},
22852286
{0x1C0C, SIERRA_DEQ_TAU_CTRL2_PREG},
22862287
{0x0100, SIERRA_DEQ_TAU_CTRL3_PREG},
2287-
{0x5E82, SIERRA_DEQ_OPENEYE_CTRL_PREG},
2288+
{0x5E82, SIERRA_DEQ_TAU_EPIOFFSET_MODE_PREG},
22882289
{0x002B, SIERRA_CPI_TRIM_PREG},
22892290
{0x0003, SIERRA_EPI_CTRL_PREG},
22902291
{0x803F, SIERRA_SDFILT_H2L_A_PREG},

0 commit comments

Comments
 (0)