diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-04 09:35:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-05 08:53:43 +0200 |
commit | f696692b8704ccfa3800e57c8b6261ff337b8efd (patch) | |
tree | 54dd6066e52af462a1d0898a1e30407626eae278 /include/net.h | |
parent | ebefdd4e0d4dde71cf4e7340de7c3a67a5dd36b5 (diff) | |
download | barebox-f696692b8704ccfa3800e57c8b6261ff337b8efd.tar.gz barebox-f696692b8704ccfa3800e57c8b6261ff337b8efd.tar.xz |
net: Set mac-address property
Linux normally has no idea how to retrieve MAC Addresses, but instead
expects the MAC address in the devicetree. This patch adds the MAC
address to the devicetree for Linux if we find a valid one in barebox.
This mechanism is limited of course to devices barebox has a driver for
and which are probed themselves from the devicetree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index fa3c05a987..a4cfec7123 100644 --- a/include/net.h +++ b/include/net.h @@ -52,6 +52,7 @@ struct eth_device { struct device_d dev; struct device_d *parent; + char *nodepath; struct list_head list; |