Lines Matching refs:phymode
249 static int socfpga_set_phy_mode_common(int phymode, u32 *val)
251 switch (phymode) {
275 int phymode = socfpga_get_plat_phymode(dwmac);
280 if (socfpga_set_phy_mode_common(phymode, &val)) {
281 dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
285 /* Overwrite val to GMII if splitter core is enabled. The phymode here
301 phymode == PHY_INTERFACE_MODE_MII ||
302 phymode == PHY_INTERFACE_MODE_GMII ||
303 phymode == PHY_INTERFACE_MODE_SGMII) {
324 if (phymode == PHY_INTERFACE_MODE_SGMII)
333 int phymode = socfpga_get_plat_phymode(dwmac);
338 if (socfpga_set_phy_mode_common(phymode, &val))
341 /* Overwrite val to GMII if splitter core is enabled. The phymode here
357 phymode == PHY_INTERFACE_MODE_MII ||
358 phymode == PHY_INTERFACE_MODE_GMII ||
359 phymode == PHY_INTERFACE_MODE_SGMII) {
377 if (phymode == PHY_INTERFACE_MODE_SGMII)