9
0
Fork 0
barebox/net
Trent Piepho a5c51acab4 net: eth: Fixup OF tree with registered MAC addresses too
The eth code registers an OF tree fixup that looks for any nodes in
the Linux oftree that match eth devices loaded in barebox and sets the
mac-address property in those nodes.  The purpose is to pass MAC
addresses to the Linux kernel for drivers that expect the MAC address
to be in the device tree.

If barebox does not have a driver for the network device, either
because it has been disabled or because one does not exist, then the
OF tree will not be fixed up to include a MAC address.

The eth code also has a list of MAC addresses which board code has
registered, usually done when it reads the address from an EEPROM or
on-chip memory.  If an eth device is created later in the boot, it
will look here for an address.

The registered MAC address list is not used for the OF tree fix up,
and this patch changes that.  This way barebox can place a MAC address
in the device-tree without needing a driver for the network device.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-10-22 09:07:52 +02:00
..
Kconfig net: dhcp: Split dhcp funcionality & add dhcp command 2015-06-05 13:32:39 +02:00
Makefile net: Move library functions to net/lib.c 2015-07-02 09:39:57 +02:00
dhcp.c net: dhcp: Fix CONFIG variable name 2015-09-29 09:34:17 +02:00
dns.c dns: handle incoming packets in the separate dns_recv() function 2015-07-01 07:34:26 +02:00
eth.c net: eth: Fixup OF tree with registered MAC addresses too 2015-10-22 09:07:52 +02:00
ifup.c ifup: Add comment why xxx-discover files have to be skipped 2014-06-23 10:05:40 +02:00
lib.c net: Move library functions to net/lib.c 2015-07-02 09:39:57 +02:00
net.c treewide: fix 'new blank line at EOF' formatting error 2015-07-02 09:39:58 +02:00
netconsole.c console: allow to specify the device id 2015-01-13 08:48:59 +01:00
nfs.c treewide: fix 'new blank line at EOF' formatting error 2015-07-02 09:39:58 +02:00
nfs.h pass filename to nfs and tftp start functions 2009-10-19 10:18:51 +02:00
ping.c net: ping: return an error exit code when connection fails 2015-04-03 08:03:08 +02:00
rarp.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00