summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@oss.nxp.com>2020-04-23 16:25:19 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-04-29 11:10:54 +0530
commit6eb32a03e0da4b6bdd09d114738c5f2bfe011459 (patch)
treefeac69e18c277303ae08331be9beca8ca4cc8812 /arch/arm/cpu/armv8
parent20e0f629527f9cef0c2afb473f7978dc393f80ea (diff)
downloadu-boot-6eb32a03e0da4b6bdd09d114738c5f2bfe011459.tar.gz
u-boot-6eb32a03e0da4b6bdd09d114738c5f2bfe011459.tar.bz2
u-boot-6eb32a03e0da4b6bdd09d114738c5f2bfe011459.zip
driver: net: fm: add DM ETH support
Probe the FMan MACs based on the device tree while retaining the legacy code/functionality. One notable change introduced here is that, for DM_ETH, the name of the interfaces is corrected to the fmX-macY format, that avoids the referral to the MAC block names which were incorrect for FMan v3 devices (i.e. DTSEC, TGEC) and had weird formatting (i.e. FM1@DTSEC6, FM1@TGEC1). The legacy code is left unchanged in this respect. Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch/arm/cpu/armv8')
-rw-r--r--arch/arm/cpu/armv8/fsl-layerscape/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index 1b7729c046..b3f5c2f641 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -1156,8 +1156,10 @@ int arch_early_init_r(void)
fsl_rgmii_init();
#endif
#ifdef CONFIG_FMAN_ENET
+#ifndef CONFIG_DM_ETH
fman_enet_init();
#endif
+#endif
#ifdef CONFIG_SYS_DPAA_QBMAN
setup_qbman_portals();
#endif