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 /include/net/dsa.h | |
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 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index a339a49730..1b1068cd88 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -6,6 +6,7 @@ #ifndef __DSA_H__ #define __DSA_H__ +#include <dm/ofnode.h> #include <phy.h> #include <net.h> @@ -146,6 +147,17 @@ int dsa_set_tagging(struct udevice *dev, ushort headroom, ushort tailroom); struct udevice *dsa_get_master(struct udevice *dev); /** + * dsa_port_get_ofnode() - Return a reference to the given port's OF node + * + * Can be called at driver probe time or later. + * + * @dev: DSA switch udevice pointer + * @port: Port index + * @return OF node reference if OK, NULL on error + */ +ofnode dsa_port_get_ofnode(struct udevice *dev, int port); + +/** * dsa_port_get_pdata() - Helper that returns the platdata of an active * (non-CPU) DSA port device. * |