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>
This commit is contained in:
parent
724876deab
commit
47fc75bc77
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue