summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Peled <bpeled@marvell.com>2021-05-03 08:08:49 +0200
committerStefan Roese <sr@denx.de>2021-05-20 13:03:30 +0200
commit7589be8d3841062d933aa851186a7d3cb60f97b7 (patch)
tree30ce1c10f7b9b6382dc7eba651f3fa342492277d
parent08f462dd1eb86a81493e12e2bbb974158cee52b3 (diff)
downloadu-boot-7589be8d3841062d933aa851186a7d3cb60f97b7.tar.gz
u-boot-7589be8d3841062d933aa851186a7d3cb60f97b7.tar.bz2
u-boot-7589be8d3841062d933aa851186a7d3cb60f97b7.zip
net: mvpp2: AN Bypass in 1000 and 2500 basex mode
Signed-off-by: Ben Peled <bpeled@marvell.com> Reviewed-by: Stefan Chulski <stefanc@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--drivers/net/mvpp2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c
index ec7cb89a94..879289452b 100644
--- a/drivers/net/mvpp2.c
+++ b/drivers/net/mvpp2.c
@@ -3148,7 +3148,8 @@ static void gop_gmac_2500basex_cfg(struct mvpp2_port *port)
* bypass enabled (link interrupt storm risk
* otherwise).
*/
- val = MVPP2_GMAC_EN_PCS_AN |
+ val = MVPP2_GMAC_AN_BYPASS_EN |
+ MVPP2_GMAC_EN_PCS_AN |
MVPP2_GMAC_CONFIG_GMII_SPEED |
MVPP2_GMAC_CONFIG_FULL_DUPLEX |
MVPP2_GMAC_CHOOSE_SAMPLE_TX_CONFIG;
@@ -3188,7 +3189,8 @@ static void gop_gmac_1000basex_cfg(struct mvpp2_port *port)
* bypass enabled (link interrupt storm risk
* otherwise).
*/
- val = MVPP2_GMAC_EN_PCS_AN |
+ val = MVPP2_GMAC_AN_BYPASS_EN |
+ MVPP2_GMAC_EN_PCS_AN |
MVPP2_GMAC_CONFIG_GMII_SPEED |
MVPP2_GMAC_CONFIG_FULL_DUPLEX |
MVPP2_GMAC_CHOOSE_SAMPLE_TX_CONFIG;