diff options
| author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2021-01-19 13:26:48 +0200 |
|---|---|---|
| committer | Eugen Hristev <eugen.hristev@microchip.com> | 2021-01-22 15:09:59 +0200 |
| commit | 1ae8f0a3b2d882ca5b233cd482a50de523fdd182 (patch) | |
| tree | 7df7b9ac6a4c96b76f9b168b84c696a3ce75e95e /drivers/net | |
| parent | 3d3475c8b79567dabc0bf06f85119115fa849167 (diff) | |
| download | u-boot-1ae8f0a3b2d882ca5b233cd482a50de523fdd182.tar.gz u-boot-1ae8f0a3b2d882ca5b233cd482a50de523fdd182.tar.xz u-boot-1ae8f0a3b2d882ca5b233cd482a50de523fdd182.zip | |
net: macb: take into account all RGMII interface types
Take into account all RGMII interface types. Depending on it
the RGMII PHY's timings are setup.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/macb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f71331827c..6e26467700 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -947,7 +947,10 @@ static int _macb_init(struct macb_device *macb, const char *name) * to select interface between RMII and MII. */ #ifdef CONFIG_DM_ETH - if (macb->phy_interface == PHY_INTERFACE_MODE_RGMII) + if (macb->phy_interface == PHY_INTERFACE_MODE_RGMII || + macb->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || + macb->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID || + macb->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) val = macb->config->usrio->rgmii; else if (macb->phy_interface == PHY_INTERFACE_MODE_RMII) val = macb->config->usrio->rmii; |
