Skip to content

Commit 1a642ca

Browse files
saschahauerdavem330
authored andcommitted
net: ethernet: mvneta: Add 2500BaseX support for SoCs without comphy
The older SoCs like Armada XP support a 2500BaseX mode in the datasheets referred to as DR-SGMII (Double rated SGMII) or HS-SGMII (High Speed SGMII). This is an upclocked 1000BaseX mode, thus PHY_INTERFACE_MODE_2500BASEX is the appropriate mode define for it. adding support for it merely means writing the correct magic value into the MVNETA_SERDES_CFG register. Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b474855 commit 1a642ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
#define MVNETA_SERDES_CFG 0x24A0
111111
#define MVNETA_SGMII_SERDES_PROTO 0x0cc7
112112
#define MVNETA_QSGMII_SERDES_PROTO 0x0667
113+
#define MVNETA_HSGMII_SERDES_PROTO 0x1107
113114
#define MVNETA_TYPE_PRIO 0x24bc
114115
#define MVNETA_FORCE_UNI BIT(21)
115116
#define MVNETA_TXQ_CMD_1 0x24e4
@@ -3564,6 +3565,11 @@ static int mvneta_config_interface(struct mvneta_port *pp,
35643565
mvreg_write(pp, MVNETA_SERDES_CFG,
35653566
MVNETA_SGMII_SERDES_PROTO);
35663567
break;
3568+
3569+
case PHY_INTERFACE_MODE_2500BASEX:
3570+
mvreg_write(pp, MVNETA_SERDES_CFG,
3571+
MVNETA_HSGMII_SERDES_PROTO);
3572+
break;
35673573
default:
35683574
return -EINVAL;
35693575
}

0 commit comments

Comments
 (0)