Searched refs:mdio_freq (Results 1 – 2 of 2) sorted by relevance
160 u32 mdio_freq = DEFAULT_MDIO_FREQ; in axienet_mdio_enable() local193 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()
1081 static int a5psw_mdio_config(struct a5psw *a5psw, u32 mdio_freq) in a5psw_mdio_config() argument1088 div = ((rate / mdio_freq) / 2); in a5psw_mdio_config()1106 u32 mdio_freq; in a5psw_probe_mdio() local1109 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()