summaryrefslogtreecommitdiff
path: root/board/freescale/ls1028a
diff options
context:
space:
mode:
authorAlex Marginean <alexandru.marginean@nxp.com>2019-12-10 17:55:39 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-01-24 11:58:26 +0300
commit9c2aee1b1943f538e3f38e4884f186033e29831c (patch)
tree1f78df4a86d5bd4e7a2ace2a01d4f82139c654c9 /board/freescale/ls1028a
parent2c871f9e084b2c03d1961884228a6901387ab8d6 (diff)
downloadu-boot-9c2aee1b1943f538e3f38e4884f186033e29831c.tar.xz
drivers: net: fsl_enetc: Pass on primary MAC address to Linux
Passes on the primary address used by u-boot to Linux. The code does a DT fix-up for ENETC PFs and sets the primary MAC address in IERB. The address in IERB is restored on ENETC PCI functions at FLR. Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale/ls1028a')
-rw-r--r--board/freescale/ls1028a/ls1028a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
index 1151e77531..c080a6b22e 100644
--- a/board/freescale/ls1028a/ls1028a.c
+++ b/board/freescale/ls1028a/ls1028a.c
@@ -25,6 +25,7 @@
#include <fdtdec.h>
#include <miiphy.h>
#include "../common/qixis.h"
+#include "../drivers/net/fsl_enetc.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -162,6 +163,10 @@ int ft_board_setup(void *blob, bd_t *bd)
fdt_fixup_icid(blob);
+#ifdef CONFIG_FSL_ENETC
+ fdt_fixup_enetc_mac(blob);
+#endif
+
return 0;
}
#endif