diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-05-18 21:30:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-19 23:24:46 -0400 |
commit | 230c184679d5517e9770275853cd3456d00d6599 (patch) | |
tree | c75477b12c4e9bba6359ea1a0d100b4f2c25afdc /drivers/net/ethernet/renesas | |
parent | 62c8a069b510d905039abd4097434f190a316941 (diff) | |
download | linux-stable-230c184679d5517e9770275853cd3456d00d6599.tar.gz linux-stable-230c184679d5517e9770275853cd3456d00d6599.tar.bz2 linux-stable-230c184679d5517e9770275853cd3456d00d6599.zip |
sh_eth: add RGMII support
The R-Car V3H (AKA R8A77980) GEther controller adds support for the RGMII
PHY interface mode as a new value for the RMII_MII register.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 8dd41e08a6c6..d214ec09d401 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -466,6 +466,9 @@ static void sh_eth_select_mii(struct net_device *ndev) u32 value; switch (mdp->phy_interface) { + case PHY_INTERFACE_MODE_RGMII ... PHY_INTERFACE_MODE_RGMII_TXID: + value = 0x3; + break; case PHY_INTERFACE_MODE_GMII: value = 0x2; break; |