,[PHY_INTERFACE_MODE_RGMII] = "rgmii",[PHY_INTERFACE_MODE_RGMII_ID] = "rgmii-id",[PHY_INTERFACE_MODE_RGMII_RXID] = "rgmii-rxid",[PHY_INTERFACE_MODE_RGMII_TXID] = "rgmii-txid",[PHY_INTERFACE_MODE_RTBI] = "rtbi",[PHY_INTERFACE_MODE_SMII] = "smii",};
if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) mscr |= (MII_88E1121_PHY_MSCR_RX_DELAY | MII_88E1121_PHY_MSCR_TX_DELAY); else if (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) mscr |= MII_88E1121_PHY_MSCR_RX_DELAY; else if (phydev->interface == PHY_INTERFACE_MO...
if (phy_mode == PHY_INTERFACE_MODE_RGMII_ID || phy_mode == PHY_INTERFACE_MODE_RGMII_TXID) phase_shift = 0; else phase_shift = RGMII_CONFIG2_TX_CLK_PHASE_SHIFT_EN;/* Disable loopback mode */ rgmii_updatel(ethqos, RGMII_CONFIG2_TX_TO_RX_LOOPBACK_EN, ...
/* Interfaces can be PHY_INTERFACE_MODE_MII PHY_INTERFACE_MODE_GMII PHY_INTERFACE_MODE_SGMII PHY_INTERFACE_MODE_TBI PHY_INTERFACE_MODE_RMII PHY_INTERFACE_MODE_RGMII PHY_INTERFACE_MODE_RGMII_ID PHY_INTERFACE_MODE_RGMII_RXID PHY_INTERFACE_MODE_RGMII_TXID PHY_INTERFACE_MODE_RTB...