Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_mdio.c160 u32 mdio_freq = DEFAULT_MDIO_FREQ; in axienet_mdio_enable() local
193 of_property_read_u32(np, "clock-frequency", &mdio_freq); in axienet_mdio_enable()
194 if (mdio_freq != DEFAULT_MDIO_FREQ) in axienet_mdio_enable()
196 mdio_freq); in axienet_mdio_enable()
223 clk_div = (host_clock / (mdio_freq * 2)) - 1; in axienet_mdio_enable()
229 if (host_clock % (mdio_freq * 2)) in axienet_mdio_enable()
/openbmc/linux/drivers/net/dsa/
H A Drzn1_a5psw.c1081 static int a5psw_mdio_config(struct a5psw *a5psw, u32 mdio_freq) in a5psw_mdio_config() argument
1088 div = ((rate / mdio_freq) / 2); in a5psw_mdio_config()
1106 u32 mdio_freq; in a5psw_probe_mdio() local
1109 if (of_property_read_u32(node, "clock-frequency", &mdio_freq)) in a5psw_probe_mdio()
1110 mdio_freq = A5PSW_MDIO_DEF_FREQ; in a5psw_probe_mdio()
1112 ret = a5psw_mdio_config(a5psw, mdio_freq); in a5psw_probe_mdio()