summaryrefslogtreecommitdiffstats
path: root/drivers/net/orion-gbe.c
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-06-24 12:18:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-25 08:31:26 +0200
commit47fc75bc77b0f7e467f53d627075daac7b2a9df2 (patch)
tree66deba243f856f3357a3fd88cd80d9bc0c0abd57 /drivers/net/orion-gbe.c
parent724876deab47f7d73ad9772464ff754bfe452846 (diff)
downloadbarebox-47fc75bc77b0f7e467f53d627075daac7b2a9df2.tar.gz
net: orion-gbe: extend RGMII detection to delayed modes
RGMII PHY modes include delayed interface modes RGMII_ID, RGMII_TXID, and RGMII_RXID. Also check for those modes when setup RGMII mode in port serial ctrl register. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/orion-gbe.c')
-rw-r--r--drivers/net/orion-gbe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/orion-gbe.c b/drivers/net/orion-gbe.c
index 23c8346..991c8a8 100644
--- a/drivers/net/orion-gbe.c
+++ b/drivers/net/orion-gbe.c
@@ -447,7 +447,10 @@ static int port_probe(struct device_d *parent, struct port_priv *port)
reg = SC1_RESERVED;
reg |= DEFAULT_COL_LIMIT | COL_ON_BACKPRESS | INBAND_ANEG_BYPASS;
- if (port->intf == PHY_INTERFACE_MODE_RGMII)
+ if (port->intf == PHY_INTERFACE_MODE_RGMII ||
+ port->intf == PHY_INTERFACE_MODE_RGMII_ID ||
+ port->intf == PHY_INTERFACE_MODE_RGMII_RXID ||
+ port->intf == PHY_INTERFACE_MODE_RGMII_TXID)
reg |= RGMII_ENABLE;
writel(reg, port->regs + PORT_SC1);