[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:
@@ -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 */
|
||||
Reference in New Issue
Block a user