Skip to contentSkip to conversation

ARM: imx6: Fetch MAC address in board_init_late() on DH iMX6 PDK2

PATCH New Marek Vasut 2 participants 2 messages May 14, 2020 – Jun 23, 2020 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: imx6: Fetch MAC address in board_init_late() on DH iMX6 PDK2

This is needed to obtain the MAC from EEPROM/OTP only after the final env is populated, otherwise the ethaddr might be overriden.

Cc Claudius Heine <[email protected]>
Cc Harald Seiler <[email protected]>
Cc Ludwig Zenz <[email protected]>
Cc Stefano Babic <[email protected]>
---
 board/dhelectronics/dh_imx6/dh_imx6.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/dhelectronics/dh_imx6/dh_imx6.c +2 -2
index b6f8b11a10..8735d583bd 100644
@@ -139,8 +139,6 @@ int board_init(void)
 	/* Enable eim_slow clocks */
 	setbits_le32(&mxc_ccm->CCGR6, 0x1 << MXC_CCM_CCGR6_EMI_SLOW_OFFSET);
 
-	setup_dhcom_mac_from_fuse();
-
 	setup_fec_clock();
 
 	return 0;
@@ -186,6 +184,8 @@ int board_late_init(void)
 	u32 hw_code;
 	char buf[16];
 
+	setup_dhcom_mac_from_fuse();
+
 	hw_code = board_get_hwcode();
 
 	switch (get_cpu_type()) {
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 ARM: imx6: Fetch MAC address in board_init_late() on DH iMX6 PDK2

Quoted 7 lines

This is needed to obtain the MAC from EEPROM/OTP only after the final env is populated, otherwise the ethaddr might be overriden.

Cc Claudius Heine <[email protected]>
Cc Harald Seiler <[email protected]>
Cc Ludwig Zenz <[email protected]>
Cc Stefano Babic <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================