Lines Matching +full:sparx +full:- +full:5
1 // SPDX-License-Identifier: GPL-2.0+
71 #define MII_VSC73XX_DOWNSHIFT_MAX 5
78 #define MII_VSC73XX_PBC_PAIR_SWAP_DIS BIT(5)
137 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) in vsc824x_config_init()
178 return -E2BIG; in vsc73xx_set_downshift()
180 return -EINVAL; in vsc73xx_set_downshift()
190 cnt - 2); in vsc73xx_set_downshift()
204 switch (tuna->id) { in vsc73xx_get_tunable()
208 return -EOPNOTSUPP; in vsc73xx_get_tunable()
215 switch (tuna->id) { in vsc73xx_set_tunable()
219 return -EOPNOTSUPP; in vsc73xx_set_tunable()
236 /* Set Auto MDI-X by default */ in vsc73xx_config_init()
237 phydev->mdix_ctrl = ETH_TP_MDI_AUTO; in vsc73xx_config_init()
293 /* bits 14-15 in extended register 0x14 controls DACG amplitude in vsc738x_config_init()
294 * 6 = -8%, 2 is hardware default in vsc738x_config_init()
308 /* This magic sequence appears in the VSC7395 SparX-G5e application in vsc739x_config_init()
352 /* When MDI-X auto configuration is disabled, is possible in vsc73xx_mdix_set()
362 return -EINVAL; in vsc73xx_mdix_set()
376 ret = vsc73xx_mdix_set(phydev, phydev->mdix_ctrl); in vsc73xx_config_aneg()
400 ret = vsc73xx_mdix_get(phydev, &phydev->mdix); in vsc73xx_read_status()
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) in vsc8601_config_init()
440 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) in vsc82xx_config_intr()
445 (phydev->drv->phy_id == PHY_ID_VSC8234 || in vsc82xx_config_intr()
446 phydev->drv->phy_id == PHY_ID_VSC8244 || in vsc82xx_config_intr()
447 phydev->drv->phy_id == PHY_ID_VSC8572 || in vsc82xx_config_intr()
448 phydev->drv->phy_id == PHY_ID_VSC8601) ? in vsc82xx_config_intr()
470 if (phydev->drv->phy_id == PHY_ID_VSC8244 || in vsc82xx_handle_interrupt()
471 phydev->drv->phy_id == PHY_ID_VSC8572 || in vsc82xx_handle_interrupt()
472 phydev->drv->phy_id == PHY_ID_VSC8601) in vsc82xx_handle_interrupt()
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) in vsc82x4_config_autocross_enable()
517 /* map extended registers set 0x10 - 0x1e */ in vsc82x4_config_autocross_enable()
525 /* map standard registers set 0x10 - 0x1e */ in vsc82x4_config_autocross_enable()
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 in vsc82x4_config_aneg()
549 if (phydev->autoneg != AUTONEG_ENABLE && phydev->speed <= SPEED_100) { in vsc82x4_config_aneg()