Commit 230c1846 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller

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: default avatarVladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 62c8a069
...@@ -466,6 +466,9 @@ static void sh_eth_select_mii(struct net_device *ndev) ...@@ -466,6 +466,9 @@ static void sh_eth_select_mii(struct net_device *ndev)
u32 value; u32 value;
switch (mdp->phy_interface) { switch (mdp->phy_interface) {
case PHY_INTERFACE_MODE_RGMII ... PHY_INTERFACE_MODE_RGMII_TXID:
value = 0x3;
break;
case PHY_INTERFACE_MODE_GMII: case PHY_INTERFACE_MODE_GMII:
value = 0x2; value = 0x2;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment