diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 08:46:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-04 23:23:41 +0200 |
commit | f72a4fd3704cf246a1d12cdf500f484be0db05a0 (patch) | |
tree | ccf07995dedc450afa6fe54540fa3d097dd85b87 /include | |
parent | 0a637bcc3c66c647f52970ddd1dbae2d749dc969 (diff) | |
download | barebox-f72a4fd3704cf246a1d12cdf500f484be0db05a0.tar.gz barebox-f72a4fd3704cf246a1d12cdf500f484be0db05a0.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/of_net.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/of_net.h b/include/of_net.h new file mode 100644 index 0000000000..0f6ef200d5 --- /dev/null +++ b/include/of_net.h @@ -0,0 +1,14 @@ +/* + * 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 */ |