Home
last modified time | relevance | path

Searched refs:enet_clk (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/freescale/
Dxgmac_mdio.c55 struct clk *enet_clk; member
337 priv->enet_clk = devm_clk_get(dev, NULL); in xgmac_mdio_set_mdc_freq()
338 if (IS_ERR(priv->enet_clk)) { in xgmac_mdio_set_mdc_freq()
340 return PTR_ERR(priv->enet_clk); in xgmac_mdio_set_mdc_freq()
343 div = ((clk_get_rate(priv->enet_clk) / priv->mdc_freq) - 1) / 2; in xgmac_mdio_set_mdc_freq()