From 9c2aee1b1943f538e3f38e4884f186033e29831c Mon Sep 17 00:00:00 2001 From: Alex Marginean Date: Tue, 10 Dec 2019 16:55:39 +0200 Subject: 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 Reviewed-by: Vladimir Oltean Reviewed-by: Priyanka Jain --- board/freescale/ls1028a/ls1028a.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/freescale/ls1028a') 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 #include #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 -- cgit v1.2.1