data = PHY_READ(sc, BRGPHY_MII_AUXCTL);PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data |0x0400);/* Set FFE gamma override to -0.125 */PHY_WRITE(sc, BRGPHY_MII_AUXCTL,0x0007); data = PHY_READ(sc, BRGPHY_MII_AUXCTL);PHY_WRITE(sc, BRGPHY_MII_AUXCTL, data |0x0800);PHY_WRITE(sc, ...
phy_ht->idle_tssi[2] = rssi_buf[4] &0xff;for(core =0; core <3; core++) {b43_phy_write(dev, base[core] +0, save_regs[core][0]);b43_phy_write(dev, base[core] +6, save_regs[core][1]);b43_phy_write(dev, base[core] +7, save_regs[core][2]); } } 开发者ID:5138554...
int gfar_local_mdio_write(struct gfar_mii *regs, int mii_id, int regnum, u16 value) { /* Set the PHY address and the register address we want to write */ gfar_write(®s->miimadd, (mii_id << 8) | regnum); /* Write out the value we want */ gfar_write(®s->miimcon...
int gfar_local_mdio_write(struct gfar_mii *regs, int mii_id, int regnum, u16 value) { /* Set the PHY address and the register address we want to write */ gfar_write(®s->miimadd, (mii_id << 8) | regnum); /* Write out the value we want */ gfar_write(®s->miimcon...
在drivers/net/ethernet/allwinner/sunxi-gmac.c 中 geth_phy_init函数中 phy_connect_direct 之前加入phy_write(phydev, 0x0, 0x2100)。以上是我们在A40i开发过程中常见网卡设计问题,有些可能是因为大家在参考方案时出现了配置问题,或者是因为芯片输出的信号不正常导致。大家在参考飞凌A40i的双网口方案时,可以...
| new_bus->read = &stmmac_xgmac2_mdio_read;// mdio 读写函数 | new_bus->write = &stmmac_xgmac2_mdio_write; | | of_mdiobus_register(new_bus, mdio_node); `-| of_mdiobus_register_phy(mdio, child, addr); `-| get_phy_device() ...
||---bus->write=mdiobb_write---|--mdiobb_read/mdiobb_write/mdiobb_reset函数的实现-|ctrl->ops->set_mdio_dir|--| ||---bus->reset=mdiobb_reset---|/|ctrl->ops->set_mdio_data| ||---bus->priv=ctrl<--- | ctrl->ops->get_mdio_data| | |---fs_mii_bitbang_init//设置用来...
+ phy_write(dev, 0x1c, value1); + phy_write(dev, 0x1a, value2); + phy_write(dev, 0x1f, 0x0000); + + return 0; +} + static int __init phy_init(void) { int rc; @@ -1482,6 +1513,8 @@ static int __init phy_init(void) ...
47.err = phy_write(phydev, MII_CTRL1000, adv); 48. 49.if (err < 0) 50.return err; 51.changed = 1; 52.} 53.} 54. 55.return changed; 56.} 重启自动协商 1.int genphy_restart_aneg(struct phy_device *phydev) 2.{ 3.int ctl; ...
我正尝试在我的定制板上运行marvellphylinux驱动程序。驱动程序使用的是mdio接口,但我的主板上有i2c。我将marvell.c文件中的phy_read()/phy_write()替换为i2c读/写函数。它不起作用。未调用探测函数,phy子系统使用mdio检测marvell,无法检测。如何在phylinuxsysbsystem中使用i2c?