summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <[email protected]>2026-07-10 18:27:21 +0800
committerFabio Estevam <[email protected]>2026-07-27 13:05:07 -0300
commitbb4b0925d48c51c2e5241e3d058aae3d3f486e9c (patch)
treefd264fac07a7d6cb1d52757171ff3ac959b3aa20
parent099fc6eda5448dc9c112cbb0f5c78a858a6b1180 (diff)
imx9: scmi: Update get mac from fuse for iMX952
Since iMX952 only has 2 pf and 2 vf, update the imx_get_mac_from_fuse to adapt this layout. Signed-off-by: Ye Li <[email protected]>
-rw-r--r--arch/arm/mach-imx/imx9/scmi/soc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx9/scmi/soc.c b/arch/arm/mach-imx/imx9/scmi/soc.c
index 6561de205d0..e8f739920be 100644
--- a/arch/arm/mach-imx/imx9/scmi/soc.c
+++ b/arch/arm/mach-imx/imx9/scmi/soc.c
@@ -662,6 +662,18 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
eth_addr_add(mac, 8); /* enetc1 */
if (dev_id == 2)
eth_addr_add(mac, 9); /* enetc2 */
+ } else if (is_imx952()) {
+ /*
+ * i.MX952 uses the following mac address offset list:
+ * | No. | Mac address user |
+ * |-----|----------------------|
+ * | 0 | enetc mac pf0 |
+ * | 1 | enetc mac vf0 |
+ * | 2 | enetc mac pf1 |
+ * | 3 | enetc mac vf1 |
+ */
+ if (dev_id == 1)
+ eth_addr_add(mac, 2);
} else {
if (dev_id == 1)
eth_addr_add(mac, 3);