PHY芯片 CPU读写phy方法(待更新) mdio读写phy寄存器 phytool:https://github.com/wkz/phytool.git该方式需要网卡驱动提供支持 phytoolreadIFACE/ADDR/REG phytool write IFACE/ADDR/REG <0-0xffff> phytoolprintIFACE/ADDR[/REG] Clause 22: ADDR := <0-0x1f> REG := <0-0x1f> Clause 45 (not supp...
4. stmmac_init_phy初始化PHY设备,并将PHY和MAC绑定 5. request_irq 申请中断 ret = request_irq(dev->irq,stmmac_interrupt, IRQF_SHARED, dev->name, dev); 注册中断请求线IRQ,中断处理函数stmmac_interrupt用于接收DMA数据,配合NAPI处理。 static irqreturn_t stmmac_interrupt(int irq, void *dev_id) { ...
2,phy驱动流程 1.0 读取id以适配对应的phy驱动 1.1 初始化配置 配置延时,是否自动协商等 1.2 获取phy当前的速度、link状态 可以是如下这种获取link,也可以强制告诉mac当前phy的速度link状态... 2.2.9 HEA(Host Ethernet Adapter)/IVE(Integrated Vritual Ethernet) ...
When the MAC is connected to a 10 Mb/s PHY and the PTP clock is derived from the MAC reference clock (default), the clk_ptp_rate becomes too small and the calculated sub second increment becomes 0 when computed by the stmmac_config_sub_second_increment() function within stmmac_init_tstam...
int(*init)(structplatform_device*pdev,void*priv); void(*exit)(structplatform_device*pdev,void*priv); structmac_device_info*(*setup)(void*priv); void*bsp_priv; structclk*stmmac_clk; structclk*pclk; structclk*clk_ptp_ref; unsignedintclk_ptp_rate; ...
ethernet / stmicro / stmmac / stmmac_platform.c v6 v6.14 v6.13 v6.13.7 v6.13.6 v6.13.5 v6.13.4 v6.13.3 v6.13.2 v6.13.1 v6.13 v6.13-rc7 v6.13-rc6 v6.13-rc5 v6.13-rc4 v6.13-rc3 v6.13-rc2 v6.13-rc1 ...
sun8i_dwmac_power_internal_phy(netdev_priv(ndev)); if(ret) gotoerr_disable_regulator; } return0; err_disable_regulator: if(gmac->regulator) regulator_disable(gmac->regulator); returnret; } staticvoidsun8i_dwmac_core_init(structmac_device_info...
eee) { /* Check if the PHY supports EEE */ if (phy_init_eee(priv->phydev, 1)) goto out;priv->eee_active = 1; init_timer(&priv->eee_ctrl_timer); priv->eee_ctrl_timer.function = stmmac_eee_ctrl_timer; priv->eee_ctrl_timer.data = (unsigned long)priv;...
static int ethqos_rgmii_macro_init(struct qcom_ethqos *ethqos) { int phase_shift; int phy_mode; /* Determine if the PHY adds a 2 ns TX delay or the MAC handles it */ phy_mode = device_get_phy_mode(ðqos->pdev->dev); if (phy_mode == PHY_INTERFACE_MODE_RGMII_ID || phy...
net: stmmac: Rename phylink_get_caps() callback to update_caps()… e82acaa net: stmmac: Move MAC caps init to phylink MAC caps getter… 8d29420 net: stmmac: Move the atds flag to the stmmac_dma_cfg structure… 4f03638 net: stmmac: Add multi-channel support… ...