All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] arm: mach-imx: Update MAC fuse for i.MX8MP
@ 2021-08-16 10:44 Ye Li
  2021-08-16 10:44 ` [PATCH 2/7] arm: mach-imx: Allow to build mac.c for EQoS driver Ye Li
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Ye Li @ 2021-08-16 10:44 UTC (permalink / raw)
  To: sbabic, u-boot, festevam, peng.fan; +Cc: uboot-imx, marex, rfried.dev, s.arendt

i.MX8MP has two ENET controllers, have to update the function to
enable loading two MAC addresses.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
 arch/arm/mach-imx/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mac.c b/arch/arm/mach-imx/mac.c
index 3b1496b..9bb63d2 100644
--- a/arch/arm/mach-imx/mac.c
+++ b/arch/arm/mach-imx/mac.c
@@ -31,7 +31,7 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
 
 	offset = is_mx6() ? MAC_FUSE_MX6_OFFSET : MAC_FUSE_MX7_OFFSET;
 	fuse = (struct imx_mac_fuse *)(ulong)(OCOTP_BASE_ADDR + offset);
-	has_second_mac = is_mx7() || is_mx6sx() || is_mx6ul() || is_mx6ull();
+	has_second_mac = is_mx7() || is_mx6sx() || is_mx6ul() || is_mx6ull() || is_imx8mp();
 
 	if (has_second_mac && dev_id == 1) {
 		u32 value = readl(&fuse->mac_addr2);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-10-21 14:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 10:44 [PATCH 1/7] arm: mach-imx: Update MAC fuse for i.MX8MP Ye Li
2021-08-16 10:44 ` [PATCH 2/7] arm: mach-imx: Allow to build mac.c for EQoS driver Ye Li
2021-10-21 14:13   ` sbabic
2021-08-16 10:44 ` [PATCH 3/7] arm: dts: imx8mp-evk: Enable the EQoS ethernet port Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 4/7] imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 5/7] imx8mp_evk: Remove EQoS PHY reset codes Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 6/7] imx8mp_evk: Delete noncached memory config Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 7/7] imx8mp_evk: Enable the DWC EQoS iMX driver Ye Li
2021-10-21 14:12   ` sbabic
2021-10-10  8:35 ` [PATCH 1/7] arm: mach-imx: Update MAC fuse for i.MX8MP Marcel Ziswiler
2021-10-21 14:13 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.