]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx9: scmi: Update get mac from fuse for iMX952
authorYe Li <ye.li@nxp.com>
Fri, 10 Jul 2026 10:27:21 +0000 (18:27 +0800)
committerFabio Estevam <festevam@gmail.com>
Mon, 27 Jul 2026 16:05:07 +0000 (13:05 -0300)
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 <ye.li@nxp.com>
arch/arm/mach-imx/imx9/scmi/soc.c

index 6561de205d01264787551aa7c2d09b7028fe5286..e8f739920beab7615f341eee5787bfb0822d2ca9 100644 (file)
@@ -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);