barebox/include/of_net.h
Sascha Hauer f72a4fd370 of/net: Add net related of helpers
of_get_phy_mode to parse the phy mode from the devicetree and
of_get_mac_address to parse a MAC address from the devicetree.
Directly taken from the Kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-04-04 23:23:41 +02:00

15 lines
286 B
C

/*
* OF helpers for network devices.
*
* This file is released under the GPLv2
*/
#ifndef __LINUX_OF_NET_H
#define __LINUX_OF_NET_H
#include <of.h>
int of_get_phy_mode(struct device_node *np);
const void *of_get_mac_address(struct device_node *np);
#endif /* __LINUX_OF_NET_H */