From: Heiko Schocher <hs@denx.de>
Date: Wed, 14 Sep 2011 19:16:30 +0000 (+0000)
Subject: arm, fdt: update ethernet mac address before booting Linux
X-Git-Tag: v2025.01-rc5-pxa1908~18273
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B?a=commitdiff_plain;h=3ea11cacdd46226638184371ce5137caa33727ab;p=u-boot.git

arm, fdt: update ethernet mac address before booting Linux

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Gerald van Baren <gvb.uboot@gmail.com>
Acked-by: Wolfgang Denk <wd@denx.de>
---

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 802e833a2e..afa0093df7 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -206,6 +206,8 @@ static int bootm_linux_fdt(int machid, bootm_headers_t *images)
 
 	fixup_memory_node(*of_flat_tree);
 
+	fdt_fixup_ethernet(*of_flat_tree);
+
 	fdt_initrd(*of_flat_tree, *initrd_start, *initrd_end, 1);
 
 	announce_and_cleanup();