]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: macb: take into account all RGMII interface types
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 19 Jan 2021 11:26:48 +0000 (13:26 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
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>
drivers/net/macb.c

index f71331827ca0ceae846337a2b10a3daa741dba6c..6e26467700a5d285cb63d5174d04815139a6c85a 100644 (file)
@@ -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;