summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-11-23 07:43:50 -0500
committerTom Rini <[email protected]>2021-11-23 07:43:50 -0500
commit5a24e12f13e7af70fbb7687da09f377ecbe17b84 (patch)
tree6aeb94ed47e252474b0917a13505e1c533434629 /include/dm
parentf9bab982ae9e459b4e64c8a4ca8569aac32bb3bf (diff)
parentf11513d9978719820998ac05ed5a5da32465f926 (diff)
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net into next
- Various DSA additions - bootp: fix for VCI string - tsec: support for promiscuous mode - add Aspeed MDIO driver
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/of_extra.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dm/of_extra.h b/include/dm/of_extra.h
index f0d205491c1..c2498aa5859 100644
--- a/include/dm/of_extra.h
+++ b/include/dm/of_extra.h
@@ -114,4 +114,18 @@ int ofnode_decode_memory_region(ofnode config_node, const char *mem_type,
*/
bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node);
+/**
+ * ofnode_eth_uses_inband_aneg() - Detect whether MAC should use in-band autoneg
+ *
+ * This function detects whether the Ethernet controller should use IEEE 802.3
+ * clause 37 in-band autonegotiation for serial protocols such as 1000base-x,
+ * SGMII, USXGMII, etc. The property is relevant when the Ethernet controller
+ * is connected to an on-board PHY or an SFP cage, and is not relevant when it
+ * has a fixed link (in that case, in-band autoneg should not be used).
+ *
+ * @param eth_node ofnode belonging to the Ethernet controller
+ * @return true if in-band autoneg should be used, false otherwise
+ */
+bool ofnode_eth_uses_inband_aneg(ofnode eth_node);
+
#endif