diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-18 13:30:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-21 09:36:27 +0200 |
commit | 2995752d758df5ba5fc41f69e4a61ebb51e4366f (patch) | |
tree | f561fe94e04f4c7cc063dfcbdb28f7bced10e6c9 /include/net.h | |
parent | 4cbec978bcc23c8c67eea713abdc2d132a9cd3dd (diff) | |
download | barebox-2995752d758df5ba5fc41f69e4a61ebb51e4366f.tar.gz barebox-2995752d758df5ba5fc41f69e4a61ebb51e4366f.tar.xz |
net: Add of_register_ethaddr
We already have a possibility to register a MAC address provider
based on a ethernet device id. This adds a similar functionality
for devices probed from devicetree. Code can register itself to
be a MAC address provider for a certain devicetree node.
This helps on i.MX to let the IIM unit provide a MAC address for
the FEC.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index bb6b8fa281..610a6e6795 100644 --- a/include/net.h +++ b/include/net.h @@ -76,8 +76,13 @@ int eth_rx(void); /* Check for received packets */ static inline void eth_register_ethaddr(int ethid, const char *ethaddr) { } +static inline void of_eth_register_ethaddr(struct device_node *node, + const char *ethaddr) +{ +} #else void eth_register_ethaddr(int ethid, const char *ethaddr); +void of_eth_register_ethaddr(struct device_node *node, const char *ethaddr); #endif /* * Ethernet header |