[fdt] Add ability to parse a MAC address from a flattened device tree

The Raspberry Pi NIC has no EEPROM to hold the MAC address.  The
platform firmware (e.g. UEFI or U-Boot) will typically obtain the MAC
address from the VideoCore firmware and add it to the device tree,
which is then made available to subsequent programs such as iPXE or
the Linux kernel.

Add the ability to parse a flattened device tree and to extract the
MAC address.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2019-07-19 17:35:39 +01:00
parent a385e23768
commit e520a51df1
5 changed files with 643 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef CONFIG_FDT_H
#define CONFIG_FDT_H
/** @file
*
* Flattened Device Tree configuration
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <config/defaults.h>
#include <config/local/fdt.h>
#endif /* CONFIG_FDT_H */