mx7dsabresd: Retrieve the second MAC address from fuses
PATCH 1/1 mx7dsabresd: Retrieve the second MAC address from fuses
From: Fabio Estevam <[email protected]>
Currently, a random MAC address is assigned to eth1 in Linux.
Fix this behavor by retrieving the second MAC address from the fuses.
Signed-off-by Fabio Estevam <[email protected]>
--- board/freescale/mx7dsabresd/mx7dsabresd.c | 6 ++++++ 1 file changed, 6 insertions(+)
board/freescale/mx7dsabresd/mx7dsabresd.c +6 -0
@@ -292,6 +292,7 @@ int power_init_board(void)int board_late_init (void ) {struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR ; +unsigned char eth1addr[6 ];imx_iomux_v3_setup_multiple_pads (wdog_pads,ARRAY_SIZE (wdog_pads));
@@ -303,6 +304,11 @@ int board_late_init(void)*/ clrsetbits_le16 (&wdog->wcr,0 ,0x10 ); +/* Get the second MAC address */ +imx_get_mac_from_fuse (1 , eth1addr); +if (!env_get ("eth1addr" ) &&is_valid_ethaddr (eth1addr)) +eth_env_set_enetaddr ("eth1addr" , eth1addr); +return 0 ; }
Signature · 1 line
2.34.1
PATCH 1/1 mx7dsabresd: Retrieve the second MAC address from fuses
Quoted 4 lines
From: Fabio Estevam <[email protected]>
Currently, a random MAC address is assigned to eth1 in Linux. Fix this behavor by retrieving the second MAC address from the fuses.Signed-off-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================