u-boot/include/net
Vladimir Oltean 0783b16509 net: dsa: allow drivers to get the port OF node
In the current DSA switch driver API, only the udevice of the switch
(belonging to UCLASS_DSA) is exposed, as well as an "int port" argument.
So drivers do not have access to the udevice of individual ports
(belonging to UCLASS_ETH), one of the reasons being that not all ports
have an associated UCLASS_ETH udevice.

However, all DSA ports have an OF node, and in some cases the driver
needs a handle to it, for all ports including the CPU port. Example: the
following Linux per-port device tree property:

	managed = "in-band-status";

states whether a port should operate with clause 37 in-band autoneg
enabled or not.

This patch exposes a function which can be called by individual drivers
as needed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
2021-11-23 09:57:55 +02:00
..
pfe_eth ls1012a: net: pfe: remove pfe stop from bootcmd 2021-06-16 18:14:08 +05:30
dsa.h net: dsa: allow drivers to get the port OF node 2021-11-23 09:57:55 +02:00
fastboot.h net: fastboot: Merge AOSP UDP fastboot 2018-05-30 11:59:21 +02:00
ncsi-pkt.h phy: Add support for the NC-SI protocol 2020-03-09 18:11:23 -05:00
ncsi.h phy: Add support for the NC-SI protocol 2020-03-09 18:11:23 -05:00
pcap.h net: introduce packet capture support 2019-09-04 11:37:19 -05:00
sntp.h sntp: use udp framework 2020-09-30 16:55:03 -04:00
tftp.h net: tftp: Move tftp.h file from ./net to ./include/net 2015-09-07 13:41:04 +02:00
udp.h net: add a generic udp protocol 2020-09-30 16:55:03 -04:00