diff options
author | Tom Rini <trini@konsulko.com> | 2021-11-23 07:43:50 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-11-23 07:43:50 -0500 |
commit | 5a24e12f13e7af70fbb7687da09f377ecbe17b84 (patch) | |
tree | 6aeb94ed47e252474b0917a13505e1c533434629 /drivers/core/of_extra.c | |
parent | f9bab982ae9e459b4e64c8a4ca8569aac32bb3bf (diff) | |
parent | f11513d9978719820998ac05ed5a5da32465f926 (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/of_extra.c')
-rw-r--r-- | drivers/core/of_extra.c | 12 |
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; +} |