/u-boot/drivers/net/phy/ |
A D | broadcom.c | 60 phy_reset(phydev); in bcm5461_config() 75 phydev->speed = SPEED_10; in bcm54xx_parse_status() 79 phydev->speed = SPEED_10; in bcm54xx_parse_status() 100 phydev->speed = SPEED_10; in bcm54xx_parse_status() 216 phy_reset(phydev); in bcm_cygnus_config() 218 bcm_cygnus_afe(phydev); in bcm_cygnus_config() 278 phydev->link = 0; in bcm5482_parse_serdes_sr() 285 phydev->link = 1; in bcm5482_parse_serdes_sr() 288 phydev->speed = 10; in bcm5482_parse_serdes_sr() 291 phydev->speed = 100; in bcm5482_parse_serdes_sr() [all …]
|
A D | marvell.c | 170 phydev->link = 0; in m88e1xxx_parse_status() 184 phydev->link = 1; in m88e1xxx_parse_status() 186 phydev->link = 0; in m88e1xxx_parse_status() 228 reg = phy_read(phydev, in m88e1111s_config() 241 phy_write(phydev, in m88e1111s_config() 254 phy_write(phydev, in m88e1111s_config() 274 phy_write(phydev, in m88e1111s_config() 286 phy_reset(phydev); in m88e1111s_config() 299 phy_reset(phydev); in m88e1111s_config() 398 phy_reset(phydev); in m88e151x_config() [all …]
|
A D | realtek.c | 176 genphy_config_aneg(phydev); in rtl8211x_config() 199 genphy_config_aneg(phydev); in rtl8201f_config() 251 genphy_config_aneg(phydev); in rtl8211f_config() 267 phydev->link = 1; in rtl8211x_parse_status() 273 phydev->link = 0; in rtl8211x_parse_status() 287 phydev->link = 1; in rtl8211x_parse_status() 289 phydev->link = 0; in rtl8211x_parse_status() 307 phydev->speed = SPEED_10; in rtl8211x_parse_status() 322 phydev->link = 1; in rtl8211f_parse_status() 326 phydev->link = 0; in rtl8211f_parse_status() [all …]
|
A D | meson-gxl.c | 31 int meson_gxl_startup(struct phy_device *phydev) in meson_gxl_startup() argument 37 ret = genphy_update_link(phydev); in meson_gxl_startup() 41 if (phydev->autoneg == AUTONEG_ENABLE) { in meson_gxl_startup() 62 wol = phy_read(phydev, MDIO_DEVAD_NONE, 0x15); in meson_gxl_startup() 80 phydev->dev->name); in meson_gxl_startup() 85 phydev->dev->name); in meson_gxl_startup() 87 ret = genphy_restart_aneg(phydev); in meson_gxl_startup() 97 return genphy_parse_link(phydev); in meson_gxl_startup() 103 phy_write(phydev, MDIO_DEVAD_NONE, 0x14, 0x0000); in meson_gxl_phy_config() 104 phy_write(phydev, MDIO_DEVAD_NONE, 0x14, 0x0400); in meson_gxl_phy_config() [all …]
|
A D | micrel_ksz90x1.c | 57 phydev->duplex = DUPLEX_FULL; in ksz90xx_startup() 59 phydev->duplex = DUPLEX_HALF; in ksz90xx_startup() 62 phydev->speed = SPEED_1000; in ksz90xx_startup() 64 phydev->speed = SPEED_100; in ksz90xx_startup() 66 phydev->speed = SPEED_10; in ksz90xx_startup() 123 node = phydev->node; in ksz90x1_of_config_group() 286 genphy_config_aneg(phydev); in ksz9021_config() 287 genphy_restart_aneg(phydev); in ksz9021_config() 369 phydev->advertising = phydev->supported = features; in ksz9031_config() 478 phydev->advertising = phydev->supported = features; in ksz9131_config() [all …]
|
A D | vitesse.c | 80 genphy_config_aneg(phydev); in vitesse_config() 93 phydev->duplex = DUPLEX_FULL; in vitesse_parse_status() 95 phydev->duplex = DUPLEX_HALF; in vitesse_parse_status() 100 phydev->speed = SPEED_1000; in vitesse_parse_status() 103 phydev->speed = SPEED_100; in vitesse_parse_status() 106 phydev->speed = SPEED_10; in vitesse_parse_status() 129 genphy_config_aneg(phydev); in cis8204_config() 163 ret = vsc8601_add_skew(phydev); in vsc8601_config() 209 genphy_config_aneg(phydev); in vsc8574_config() 264 genphy_config_aneg(phydev); in vsc8514_config() [all …]
|
A D | natsemi.c | 31 genphy_config_aneg(phydev); in dp83630_config() 59 genphy_config_aneg(phydev); in dp838xx_config() 73 phydev->speed = SPEED_1000; in dp83865_parse_status() 77 phydev->speed = SPEED_100; in dp83865_parse_status() 81 phydev->speed = SPEED_10; in dp83865_parse_status() 87 phydev->duplex = DUPLEX_FULL; in dp83865_parse_status() 89 phydev->duplex = DUPLEX_HALF; in dp83865_parse_status() 124 phydev->speed = SPEED_100; in dp83848_parse_status() 126 phydev->speed = SPEED_10; in dp83848_parse_status() 130 phydev->duplex = DUPLEX_FULL; in dp83848_parse_status() [all …]
|
A D | phy.c | 46 phydev->advertising &= phydev->supported; in genphy_config_advert() 620 phydev->advertising = phydev->drv->features; in phy_probe() 621 phydev->supported = phydev->drv->features; in phy_probe() 623 phydev->mmds = phydev->drv->mmds; in phy_probe() 626 err = phydev->drv->probe(phydev); in phy_probe() 808 if (phydev) in get_phy_device_by_mask() 935 if (phydev->dev && phydev->dev != dev) { in phy_connect_dev() 937 phydev->bus->name, phydev->addr, in phy_connect_dev() 1083 return phydev->drv->startup(phydev); in phy_startup() 1091 return phydev->drv->config(phydev); in board_phy_config() [all …]
|
A D | ca_phy.c | 31 phydev->addr = phy_addr; in __internal_phy_init() 32 phy_write(phydev, MDIO_DEVAD_NONE, 31, 0x0BC6); in __internal_phy_init() 33 phy_write(phydev, MDIO_DEVAD_NONE, 16, 0x0053); in __internal_phy_init() 34 phy_write(phydev, MDIO_DEVAD_NONE, 18, 0x4003); in __internal_phy_init() 38 phy_write(phydev, MDIO_DEVAD_NONE, 0, 0x1140); in __internal_phy_init() 44 phydev->addr = phy_addr; in __internal_phy_init() 46 data = phy_read(phydev, MDIO_DEVAD_NONE, 19); in __internal_phy_init() 73 val = phy_read(phydev, MDIO_DEVAD_NONE, 27); in __external_phy_init() 75 phy_write(phydev, MDIO_DEVAD_NONE, 27, val); in __external_phy_init() 83 __external_phy_init(phydev, 0); in rtl8211_external_config() [all …]
|
A D | xilinx_phy.c | 52 phydev->duplex = DUPLEX_FULL; in xilinxphy_startup() 54 phydev->duplex = DUPLEX_HALF; in xilinxphy_startup() 58 phydev->speed = SPEED_1000; in xilinxphy_startup() 62 phydev->speed = SPEED_100; in xilinxphy_startup() 66 phydev->speed = SPEED_10; in xilinxphy_startup() 81 phydev->speed = SPEED_1000; in xilinxphy_startup() 83 phydev->speed = SPEED_100; in xilinxphy_startup() 85 phydev->speed = SPEED_10; in xilinxphy_startup() 93 phydev->duplex = DUPLEX_FULL; in xilinxphy_startup() 94 phydev->speed = SPEED_1000; in xilinxphy_startup() [all …]
|
A D | mv88e61xx.c | 365 priv = phydev->priv; in mv88e61xx_phy_read_indirect() 390 priv = phydev->priv; in mv88e61xx_phy_write_indirect() 494 phydev->link = 0; in mv88e61xx_parse_status() 508 phydev->link = 1; in mv88e61xx_parse_status() 510 phydev->link = 0; in mv88e61xx_parse_status() 983 phydev->priv = priv; in mv88e61xx_probe() 1046 phydev->addr = i; in mv88e61xx_phy_config() 1093 val = mv88e61xx_phy_read(phydev, phydev->addr, PHY_REG_STATUS1); in mv88e61xx_phy_is_connected() 1116 phydev->addr = i; in mv88e61xx_phy_startup() 1128 phydev->link = link; in mv88e61xx_phy_startup() [all …]
|
A D | generic_10g.c | 14 int gen10g_shutdown(struct phy_device *phydev) in gen10g_shutdown() argument 19 int gen10g_startup(struct phy_device *phydev) in gen10g_startup() argument 22 u32 mmd_mask = phydev->mmds & MDIO_DEVS_LINK; in gen10g_startup() 24 phydev->link = 1; in gen10g_startup() 27 phydev->speed = SPEED_10000; in gen10g_startup() 28 phydev->duplex = DUPLEX_FULL; in gen10g_startup() 40 phy_read(phydev, devad, MDIO_STAT1); in gen10g_startup() 43 phydev->link = 0; in gen10g_startup() 68 phydev->mmds = devs1 | (devs2 << 16); in gen10g_discover_mmds() 78 phydev->supported = phydev->advertising = SUPPORTED_10000baseT_Full; in gen10g_config() [all …]
|
A D | micrel_ksz8xxx.c | 44 return genphy_config(phydev); in ksz_genconfig_bcastoff() 72 return genphy_config(phydev); in ksz8051_config() 115 return genphy_config(phydev); in ksz8081_config() 144 phydev->bus->write(phydev->bus, smireg_to_phy(smireg), MDIO_DEVAD_NONE, in ksz8895_write_smireg() 151 return phydev->bus->read(phydev->bus, smireg_to_phy(smireg), 160 phydev->link = 1; in ksz8895_config() 161 phydev->duplex = DUPLEX_FULL; in ksz8895_config() 162 phydev->speed = SPEED_100; in ksz8895_config() 202 phydev->link = 1; in ksz886x_config() 203 phydev->duplex = DUPLEX_FULL; in ksz886x_config() [all …]
|
A D | atheros.c | 121 phydev->supported = phydev->drv->features; in ar8021_config() 200 node = phy_get_ofnode(phydev); in ar803x_of_init() 209 phydev->priv = priv; in ar803x_of_init() 266 dev_err(phydev->dev, in ar803x_of_init() 298 dev_err(phydev->dev, in ar803x_of_init() 318 ret = ar803x_of_init(phydev); in ar803x_config() 322 ret = ar803x_delay_config(phydev); in ar803x_config() 326 ret = ar803x_regs_config(phydev); in ar803x_config() 330 phydev->supported = phydev->drv->features; in ar803x_config() 332 genphy_config_aneg(phydev); in ar803x_config() [all …]
|
A D | aquantia.c | 342 ofnode node = phydev->node; in aquantia_dts_config() 489 phydev->supported = phydev->advertising; in aquantia_config() 500 phydev->supported = phydev->advertising; in aquantia_config() 515 phydev->dev->name); in aquantia_config() 519 phydev->dev->name); in aquantia_config() 528 phydev->supported = phydev->advertising; in aquantia_config() 536 phydev->supported = phydev->advertising; in aquantia_config() 547 phydev->drv->name, in aquantia_config() 565 phydev->dev->name); in aquantia_startup() 582 phydev->link = 0; in aquantia_startup() [all …]
|
A D | xilinx_gmii2rgmii.c | 21 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_config() 33 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_extread() 62 ext_phydev->dev = phydev->dev; in xilinxgmiitorgmii_startup() 66 val = phy_read(phydev, phydev->addr, ZYNQ_GMII2RGMII_REG); in xilinxgmiitorgmii_startup() 74 phy_write(phydev, phydev->addr, ZYNQ_GMII2RGMII_REG, val | in xilinxgmiitorgmii_startup() 77 phydev->duplex = ext_phydev->duplex; in xilinxgmiitorgmii_startup() 78 phydev->speed = ext_phydev->speed; in xilinxgmiitorgmii_startup() 79 phydev->link = ext_phydev->link; in xilinxgmiitorgmii_startup() 86 int ofnode = phydev->addr; in xilinxgmiitorgmii_probe() 118 phydev->priv = ext_phydev; in xilinxgmiitorgmii_probe() [all …]
|
A D | davicom.c | 27 static int dm9161_config(struct phy_device *phydev) in dm9161_config() argument 31 phy_write(phydev, MDIO_DEVAD_NONE, MIIM_DM9161_SCR, in dm9161_config() 34 phy_write(phydev, MDIO_DEVAD_NONE, MIIM_DM9161_10BTCSR, in dm9161_config() 37 genphy_config_aneg(phydev); in dm9161_config() 49 phydev->speed = SPEED_100; in dm9161_parse_status() 51 phydev->speed = SPEED_10; in dm9161_parse_status() 54 phydev->duplex = DUPLEX_FULL; in dm9161_parse_status() 56 phydev->duplex = DUPLEX_HALF; in dm9161_parse_status() 61 static int dm9161_startup(struct phy_device *phydev) in dm9161_startup() argument 65 ret = genphy_update_link(phydev); in dm9161_startup() [all …]
|
A D | dp83867.c | 132 (struct dp83867_private *)phydev->priv; in dp83867_config_port_mirroring() 159 node = phy_get_ofnode(phydev); in dp83867_of_init() 274 ret = dp83867_of_init(phydev); in dp83867_config() 288 phy_write_mmd(phydev, DP83867_DEVADDR, in dp83867_config() 292 if (phy_interface_is_rgmii(phydev)) { in dp83867_config() 340 phy_write_mmd(phydev, DP83867_DEVADDR, in dp83867_config() 344 if (phy_interface_is_sgmii(phydev)) { in dp83867_config() 352 cfg2 = phy_read(phydev, phydev->addr, MII_DP83867_CFG2); in dp83867_config() 374 val = phy_read_mmd(phydev, in dp83867_config() 404 genphy_config_aneg(phydev); in dp83867_config() [all …]
|
A D | teranetics.c | 16 int tn2020_config(struct phy_device *phydev) in tn2020_config() argument 18 if (phydev->port == PORT_FIBRE) { in tn2020_config() 32 phy_write(phydev, 30, 93, 2); in tn2020_config() 35 phy_write(phydev, 30, 93, 1); in tn2020_config() 60 "address %u\n", phydev->addr); in tn2020_startup() 73 "align.\n", phydev->addr); in tn2020_startup() 76 if (phydev->port != PORT_FIBRE) in tn2020_startup() 77 return gen10g_startup(phydev); in tn2020_startup() 84 phydev->link = 1; in tn2020_startup() 87 phydev->speed = SPEED_10000; in tn2020_startup() [all …]
|
A D | lxt.c | 31 phydev->speed = SPEED_10; in lxt971_parse_status() 32 phydev->duplex = DUPLEX_HALF; in lxt971_parse_status() 35 phydev->speed = SPEED_10; in lxt971_parse_status() 36 phydev->duplex = DUPLEX_FULL; in lxt971_parse_status() 39 phydev->speed = SPEED_100; in lxt971_parse_status() 40 phydev->duplex = DUPLEX_HALF; in lxt971_parse_status() 43 phydev->speed = SPEED_100; in lxt971_parse_status() 44 phydev->duplex = DUPLEX_FULL; in lxt971_parse_status() 50 static int lxt971_startup(struct phy_device *phydev) in lxt971_startup() argument 54 ret = genphy_update_link(phydev); in lxt971_startup() [all …]
|
A D | et1011c.c | 27 static int et1011c_config(struct phy_device *phydev) in et1011c_config() argument 30 ctl = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in et1011c_config() 38 return genphy_config_aneg(phydev); in et1011c_config() 49 phydev->duplex = DUPLEX_FULL; in et1011c_parse_status() 51 phydev->duplex = DUPLEX_HALF; in et1011c_parse_status() 56 phydev->speed = SPEED_1000; in et1011c_parse_status() 69 phydev->speed = SPEED_100; in et1011c_parse_status() 72 phydev->speed = SPEED_10; in et1011c_parse_status() 79 static int et1011c_startup(struct phy_device *phydev) in et1011c_startup() argument 83 ret = genphy_update_link(phydev); in et1011c_startup() [all …]
|
/u-boot/include/ |
A D | phy.h | 101 int (*probe)(struct phy_device *phydev); 105 int (*config)(struct phy_device *phydev); 108 int (*startup)(struct phy_device *phydev); 185 struct mii_dev *bus = phydev->bus; in phy_read() 206 struct mii_dev *bus = phydev->bus; in phy_write() 248 struct phy_driver *drv = phydev->drv; in phy_read_mmd() 260 return phy_read(phydev, devad, regnum); in phy_read_mmd() 281 struct phy_driver *drv = phydev->drv; in phy_write_mmd() 456 if (ofnode_valid(phydev->node)) in phy_get_ofnode() 457 return phydev->node; in phy_get_ofnode() [all …]
|
/u-boot/board/spear/x600/ |
A D | x600.c | 74 int board_phy_config(struct phy_device *phydev) in board_phy_config() argument 79 id1 = phy_read(phydev, MDIO_DEVAD_NONE, 2); in board_phy_config() 80 id2 = phy_read(phydev, MDIO_DEVAD_NONE, 3); in board_phy_config() 89 ksz9031_phy_extended_write(phydev, 0x02, in board_phy_config() 94 ksz9031_phy_extended_write(phydev, 0x02, in board_phy_config() 99 ksz9031_phy_extended_write(phydev, 0x02, in board_phy_config() 104 ksz9031_phy_extended_write(phydev, 0x02, in board_phy_config() 113 phy_write(phydev, MDIO_DEVAD_NONE, 23, 0x0020); in board_phy_config() 116 phy_reset(phydev); in board_phy_config() 135 if (phydev->drv->config) in board_phy_config() [all …]
|
/u-boot/board/k+p/kp_imx6q_tpc/ |
A D | kp_imx6q_tpc.c | 58 phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x7); in ar8031_phy_fixup() 59 phy_write(phydev, MDIO_DEVAD_NONE, 0xe, 0x8016); in ar8031_phy_fixup() 62 val = phy_read(phydev, MDIO_DEVAD_NONE, 0xe); in ar8031_phy_fixup() 65 phy_write(phydev, MDIO_DEVAD_NONE, 0xe, val); in ar8031_phy_fixup() 68 phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x5); in ar8031_phy_fixup() 69 val = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e); in ar8031_phy_fixup() 71 phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, val); in ar8031_phy_fixup() 76 int board_phy_config(struct phy_device *phydev) in board_phy_config() argument 78 ar8031_phy_fixup(phydev); in board_phy_config() 80 if (phydev->drv->config) in board_phy_config() [all …]
|
/u-boot/board/beacon/imx8mn/ |
A D | imx8mn_beacon.c | 29 int board_phy_config(struct phy_device *phydev) in board_phy_config() argument 32 phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x1f); in board_phy_config() 33 phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x8); in board_phy_config() 35 phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x00); in board_phy_config() 36 phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x82ee); in board_phy_config() 37 phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05); in board_phy_config() 38 phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100); in board_phy_config() 40 if (phydev->drv->config) in board_phy_config() 41 phydev->drv->config(phydev); in board_phy_config()
|