[U-Boot] [PATCH 02/14] arm: mx6: cm-fx6: change dtb node for ethaddr

Nikita Kiryanov nikita at compulab.co.il
Wed Jan 14 09:42:42 CET 2015


When passing eth address to Linux via dtb, the "local-mac-address"
property should be set for "/soc/aips-bus at 02100000/ethernet at 02188000",
not "/fec".

Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
Cc: Stefano Babic <sbabic at denx.de>
Cc: Igor Grinberg <grinberg at compulab.co.il>
---
 board/compulab/cm_fx6/cm_fx6.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index 84e3643..5ddf8c6 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -464,8 +464,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 	/* MAC addr */
 	if (eth_getenv_enetaddr("ethaddr", enetaddr)) {
-		fdt_find_and_setprop(blob, "/fec", "local-mac-address",
-				     enetaddr, 6, 1);
+		fdt_find_and_setprop(blob,
+				     "/soc/aips-bus at 02100000/ethernet at 02188000",
+				     "local-mac-address", enetaddr, 6, 1);
 	}
 
 	return 0;
-- 
1.9.1



More information about the U-Boot mailing list