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 <[email protected]>
---
Cc: [email protected]
---
 drivers/net/orion-gbe.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/orion-gbe.c b/drivers/net/orion-gbe.c
index 23c8346ec58f..991c8a80de31 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);
 
-- 
2.0.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to