aboutsummaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-11-23 07:43:50 -0500
committerTom Rini <trini@konsulko.com>2021-11-23 07:43:50 -0500
commit5a24e12f13e7af70fbb7687da09f377ecbe17b84 (patch)
tree6aeb94ed47e252474b0917a13505e1c533434629 /drivers/core
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 'drivers/core')
-rw-r--r--drivers/core/of_extra.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c
index 632a1c2210..59ce9174ad 100644
--- a/drivers/core/of_extra.c
+++ b/drivers/core/of_extra.c
@@ -155,3 +155,15 @@ bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node)
return true;
}
+
+bool ofnode_eth_uses_inband_aneg(ofnode eth_node)
+{
+ bool inband_aneg = false;
+ const char *managed;
+
+ managed = ofnode_read_string(eth_node, "managed");
+ if (managed && !strcmp(managed, "in-band-status"))
+ inband_aneg = true;
+
+ return inband_aneg;
+}