提交 230c1846 编写于 作者: S Sergei Shtylyov 提交者: 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: NVladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册