]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: ls1012a: RGMII ports require internal delay
authorChaitanya Sakinam <chaitanya.sakinam@nxp.com>
Tue, 9 Jun 2020 10:51:48 +0000 (16:21 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:28 +0000 (14:16 +0530)
The correct setting for the RGMII ports on LS1012ARDB is to
enable delay on both Rx and Tx so the interface mode used should
be PHY_INTERFACE_MODE_RGMII_ID

Signed-off-by: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
Signed-off-by: Anji J <anji.jagarlmudi@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/ls1012ardb/eth.c
drivers/net/pfe_eth/pfe_eth.c

index 63d40de2a3ec936e3aa10fdea370f0540d40a45d..a65ff4dc9c4f6e335452900da92f45300602746d 100644 (file)
@@ -113,7 +113,7 @@ int pfe_eth_board_init(struct udevice *dev)
                        /* MAC2 */
                        pfe_set_phy_address_mode(priv->gemac_port,
                                                 CONFIG_PFE_EMAC2_PHY_ADDR,
-                                                PHY_INTERFACE_MODE_RGMII_TXID);
+                                                PHY_INTERFACE_MODE_RGMII_ID);
                }
                break;
        case 0x2208:
index 718e24f14d357d15d86bf565be567e7b9853bc0d..e49bf4a6f3cf5dfc061eff3a5326960aabd50138 100644 (file)
@@ -33,7 +33,7 @@ struct gemac_s gem_info[] = {
 
                /* phy iface */
                .phy_address = CONFIG_PFE_EMAC2_PHY_ADDR,
-               .phy_mode = PHY_INTERFACE_MODE_RGMII_TXID,
+               .phy_mode = PHY_INTERFACE_MODE_RGMII_ID,
        },
 };