Lines Matching +full:sparx +full:- +full:g5e

1 // SPDX-License-Identifier: GPL-2.0+
137 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
178 return -E2BIG;
180 return -EINVAL;
190 cnt - 2);
204 switch (tuna->id) {
208 return -EOPNOTSUPP;
215 switch (tuna->id) {
219 return -EOPNOTSUPP;
236 /* Set Auto MDI-X by default */
237 phydev->mdix_ctrl = ETH_TP_MDI_AUTO;
293 /* bits 14-15 in extended register 0x14 controls DACG amplitude
294 * 6 = -8%, 2 is hardware default
308 /* This magic sequence appears in the VSC7395 SparX-G5e application
352 /* When MDI-X auto configuration is disabled, is possible
362 return -EINVAL;
376 ret = vsc73xx_mdix_set(phydev, phydev->mdix_ctrl);
400 ret = vsc73xx_mdix_get(phydev, &phydev->mdix);
408 * applied to "rgmii-id" interfaces. It may not work as expected
409 * on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces.
427 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
440 if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
445 (phydev->drv->phy_id == PHY_ID_VSC8234 ||
446 phydev->drv->phy_id == PHY_ID_VSC8244 ||
447 phydev->drv->phy_id == PHY_ID_VSC8572 ||
448 phydev->drv->phy_id == PHY_ID_VSC8601) ?
470 if (phydev->drv->phy_id == PHY_ID_VSC8244 ||
471 phydev->drv->phy_id == PHY_ID_VSC8572 ||
472 phydev->drv->phy_id == PHY_ID_VSC8601)
504 /* vsc82x4_config_autocross_enable - Enable auto MDI/MDI-X for forced links
507 * Enable auto MDI/MDI-X when in 10/100 forced link speeds by writing
514 if (phydev->autoneg == AUTONEG_ENABLE || phydev->speed > SPEED_100)
517 /* map extended registers set 0x10 - 0x1e */
525 /* map standard registers set 0x10 - 0x1e */
534 /* vsc82x4_config_aneg - restart auto-negotiation or write BMCR
537 * Description: If auto-negotiation is enabled, we configure the
538 * advertising, and then restart auto-negotiation. If it is not
540 * MDI/MDI-X feature
546 /* Enable auto MDI/MDI-X when in 10/100 forced link speeds by
549 if (phydev->autoneg != AUTONEG_ENABLE && phydev->speed <= SPEED_100) {