Home
last modified time | relevance | path

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

/openbmc/u-boot/board/freescale/ls1012aqds/
H A Dls1012aqds.c185 prop_val.phy_mode, strlen(prop_val.phy_mode) + 1, 1); in pfe_set_properties()
214 prop_val.phy_mode = "sgmii"; in fdt_fsl_fixup_of_pfe()
226 prop_val.phy_mode = "rgmii"; in fdt_fsl_fixup_of_pfe()
241 prop_val.phy_mode = "sgmii-2500"; in fdt_fsl_fixup_of_pfe()
253 prop_val.phy_mode = "sgmii-2500"; in fdt_fsl_fixup_of_pfe()
H A Dls1012aqds_pfe.h43 char *phy_mode; member
/openbmc/u-boot/drivers/net/pfe_eth/
H A Dpfe_mdio.c162 if (gem->phy_mode == PHY_INTERFACE_MODE_SGMII_2500) in pfe_configure_serdes()
220 if (gem->phy_mode == PHY_INTERFACE_MODE_SGMII || in pfe_phy_configure()
221 gem->phy_mode == PHY_INTERFACE_MODE_SGMII_2500) { in pfe_phy_configure()
233 phydev = phy_connect(gem->bus, phy_id, dev, gem->phy_mode); in pfe_phy_configure()
285 void pfe_set_phy_address_mode(int dev_id, int phy_id, int phy_mode) in pfe_set_phy_address_mode() argument
288 gem_info[dev_id].phy_mode = phy_mode; in pfe_set_phy_address_mode()
H A Dpfe_eth.c23 .phy_mode = PHY_INTERFACE_MODE_SGMII,
33 .phy_mode = PHY_INTERFACE_MODE_RGMII_TXID,
/openbmc/u-boot/arch/arm/mach-socfpga/
H A Dmisc_s10.c80 const char *phy_mode; in socfpga_set_phymode() local
104 phy_mode = fdt_getprop(fdt, node, "phy-mode", NULL); in socfpga_set_phymode()
105 ret = socfpga_phymode_setup(gmac_index, phy_mode); in socfpga_set_phymode()
/openbmc/u-boot/drivers/net/
H A Dftgmac100.c86 u32 phy_mode; member
227 phydev = phy_connect(priv->bus, priv->phy_addr, dev, priv->phy_mode); in ftgmac100_phy_init()
539 const char *phy_mode; in ftgmac100_ofdata_to_platdata() local
544 phy_mode = dev_read_string(dev, "phy-mode"); in ftgmac100_ofdata_to_platdata()
546 if (phy_mode) in ftgmac100_ofdata_to_platdata()
547 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in ftgmac100_ofdata_to_platdata()
549 dev_err(dev, "Invalid PHY interface '%s'\n", phy_mode); in ftgmac100_ofdata_to_platdata()
584 const char *phy_mode; in ftgmac100_probe() local
587 phy_mode = dev_read_string(dev, "phy-mode"); in ftgmac100_probe()
589 (phy_mode && strcmp(phy_mode, "NC-SI") == 0); in ftgmac100_probe()
[all …]
H A Dsni_ave.c145 int phy_mode; member
387 phydev = phy_find_by_mask(priv->bus, mask, priv->phy_mode); in ave_phy_init()
477 if (priv->phy_mode != PHY_INTERFACE_MODE_RGMII) in ave_start()
627 switch (priv->phy_mode) { in ave_pro4_get_pinmode()
655 switch (priv->phy_mode) { in ave_ld11_get_pinmode()
682 switch (priv->phy_mode) { in ave_ld20_get_pinmode()
709 switch (priv->phy_mode) { in ave_pxs3_get_pinmode()
732 const char *phy_mode; in ave_ofdata_to_platdata() local
743 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in ave_ofdata_to_platdata()
745 if (phy_mode) in ave_ofdata_to_platdata()
[all …]
H A Dpic32_eth.c530 const char *phy_mode; in pic32_eth_probe() local
547 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in pic32_eth_probe()
549 if (phy_mode) in pic32_eth_probe()
550 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in pic32_eth_probe()
552 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in pic32_eth_probe()
H A Dbcm6348-eth.c416 const char *phy_mode; in bcm6348_eth_probe() local
427 phy_mode = dev_read_string(dev, "phy-mode"); in bcm6348_eth_probe()
428 if (phy_mode) in bcm6348_eth_probe()
429 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in bcm6348_eth_probe()
H A Dxilinx_axi_emac.c716 const char *phy_mode; in axi_emac_ofdata_to_platdata() local
742 phy_mode = fdt_getprop(gd->fdt_blob, node, "phy-mode", NULL); in axi_emac_ofdata_to_platdata()
743 if (phy_mode) in axi_emac_ofdata_to_platdata()
744 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in axi_emac_ofdata_to_platdata()
746 printf("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in axi_emac_ofdata_to_platdata()
H A Daltera_tse.c676 const char *phy_mode; in altera_tse_ofdata_to_platdata() local
679 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in altera_tse_ofdata_to_platdata()
681 if (phy_mode) in altera_tse_ofdata_to_platdata()
682 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in altera_tse_ofdata_to_platdata()
684 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in altera_tse_ofdata_to_platdata()
H A Dravb.c638 const char *phy_mode; in ravb_ofdata_to_platdata() local
644 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in ravb_ofdata_to_platdata()
646 if (phy_mode) in ravb_ofdata_to_platdata()
647 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in ravb_ofdata_to_platdata()
649 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in ravb_ofdata_to_platdata()
H A Dzynq_gem.c767 const char *phy_mode; in zynq_gem_ofdata_to_platdata() local
785 phy_mode = dev_read_prop(dev, "phy-mode", NULL); in zynq_gem_ofdata_to_platdata()
786 if (phy_mode) in zynq_gem_ofdata_to_platdata()
787 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in zynq_gem_ofdata_to_platdata()
789 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in zynq_gem_ofdata_to_platdata()
H A Ddesignware.c805 const char *phy_mode; in designware_eth_ofdata_to_platdata() local
813 phy_mode = dev_read_string(dev, "phy-mode"); in designware_eth_ofdata_to_platdata()
814 if (phy_mode) in designware_eth_ofdata_to_platdata()
815 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in designware_eth_ofdata_to_platdata()
817 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in designware_eth_ofdata_to_platdata()
H A Dsun8i_emac.c831 const char *phy_mode; in sun8i_emac_eth_ofdata_to_platdata() local
885 phy_mode = fdt_getprop(gd->fdt_blob, node, "phy-mode", NULL); in sun8i_emac_eth_ofdata_to_platdata()
887 if (phy_mode) in sun8i_emac_eth_ofdata_to_platdata()
888 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in sun8i_emac_eth_ofdata_to_platdata()
892 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in sun8i_emac_eth_ofdata_to_platdata()
H A Dtsec.c802 const char *phy_mode; in tsec_probe() local
837 phy_mode = dev_read_prop(dev, "phy-connection-type", NULL); in tsec_probe()
838 if (phy_mode) in tsec_probe()
839 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in tsec_probe()
841 debug("Invalid PHY interface '%s'\n", phy_mode); in tsec_probe()
H A Dag7xxx.c975 const char *phy_mode; in ag7xxx_eth_ofdata_to_platdata() local
986 phy_mode = fdt_getprop(gd->fdt_blob, ret, "phy-mode", NULL); in ag7xxx_eth_ofdata_to_platdata()
987 if (phy_mode) in ag7xxx_eth_ofdata_to_platdata()
988 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in ag7xxx_eth_ofdata_to_platdata()
990 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in ag7xxx_eth_ofdata_to_platdata()
H A Dsh_eth.c891 const char *phy_mode; in sh_ether_ofdata_to_platdata() local
897 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in sh_ether_ofdata_to_platdata()
899 if (phy_mode) in sh_ether_ofdata_to_platdata()
900 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in sh_ether_ofdata_to_platdata()
902 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in sh_ether_ofdata_to_platdata()
H A Dmvneta.c1345 static int mvneta_port_power_up(struct mvneta_port *pp, int phy_mode) in mvneta_port_power_up() argument
1357 switch (phy_mode) { in mvneta_port_power_up()
1789 const char *phy_mode; in mvneta_ofdata_to_platdata() local
1795 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in mvneta_ofdata_to_platdata()
1797 if (phy_mode) in mvneta_ofdata_to_platdata()
1798 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in mvneta_ofdata_to_platdata()
1800 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in mvneta_ofdata_to_platdata()
H A Dmvgbe.c993 const char *phy_mode; in mvgbe_ofdata_to_platdata() local
1005 phy_mode = fdt_getprop(gd->fdt_blob, pnode, "phy-mode", NULL); in mvgbe_ofdata_to_platdata()
1006 if (phy_mode) in mvgbe_ofdata_to_platdata()
1007 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in mvgbe_ofdata_to_platdata()
H A Dmacb.c1086 const char *phy_mode; in macb_eth_probe() local
1089 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in macb_eth_probe()
1091 if (phy_mode) in macb_eth_probe()
1092 macb->phy_interface = phy_get_interface_by_name(phy_mode); in macb_eth_probe()
1094 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in macb_eth_probe()
H A Dfec_mxc.c1442 const char *phy_mode; in fecmxc_ofdata_to_platdata() local
1448 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in fecmxc_ofdata_to_platdata()
1450 if (phy_mode) in fecmxc_ofdata_to_platdata()
1451 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in fecmxc_ofdata_to_platdata()
1453 debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode); in fecmxc_ofdata_to_platdata()
H A Dmvpp2.c4710 int phy_mode = -1; in phy_info_parse() local
4744 phy_mode = phy_get_interface_by_name(phy_mode_str); in phy_info_parse()
4745 if (phy_mode == -1) { in phy_info_parse()
4778 port->phy_interface = phy_mode; in phy_info_parse()
/openbmc/u-boot/include/net/pfe_eth/
H A Dpfe_eth.h75 int phy_mode; member
98 void pfe_set_phy_address_mode(int dev_id, int phy_id, int phy_mode);
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw.c1076 phy_interface_t phy_mode) in cpsw_gmii_sel_am3352() argument
1086 switch (phy_mode) { in cpsw_gmii_sel_am3352()
1131 phy_interface_t phy_mode) in cpsw_gmii_sel_dra7xx() argument
1140 switch (phy_mode) { in cpsw_gmii_sel_dra7xx()
1181 phy_interface_t phy_mode) in cpsw_phy_sel() argument
1184 cpsw_gmii_sel_am3352(priv, phy_mode); in cpsw_phy_sel()
1186 cpsw_gmii_sel_am3352(priv, phy_mode); in cpsw_phy_sel()
1188 cpsw_gmii_sel_dra7xx(priv, phy_mode); in cpsw_phy_sel()
1196 const char *phy_mode; in cpsw_eth_ofdata_to_platdata() local
1282 phy_mode = fdt_getprop(fdt, subnode, "phy-mode", NULL); in cpsw_eth_ofdata_to_platdata()
[all …]