Skip to content
Permalink
Browse files

armv8: fsl-lsch2: initialize pfe gemac

Call gemac_initialize to initialize both gemacs of pfe.

Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
  • Loading branch information
calvinjonxp authored and Prabhakar Kushwaha committed Oct 3, 2017
1 parent f0640ed commit 7b2f1c3981c1cd9cff3f80211b83f09e4bf22623
Showing with 8 additions and 0 deletions.
  1. +8 −0 arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -21,6 +21,9 @@
#include <efi_loader.h>
#include <fm_eth.h>
#include <fsl-mc/fsl_mc.h>
#ifdef CONFIG_FSL_PFE
#include <pfe_eth/pfe_eth.h>
#endif
#ifdef CONFIG_FSL_ESDHC
#include <fsl_esdhc.h>
#endif
@@ -476,6 +479,11 @@ int cpu_eth_init(bd_t *bis)
{
int error = 0;

#if defined(CONFIG_FSL_PFE)
gemac_initialize(bis, 0 , "pfe_eth0");
gemac_initialize(bis, 1 , "pfe_eth1");
#endif

#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
error = fsl_mc_ldpaa_init(bis);
#endif

0 comments on commit 7b2f1c3

Please sign in to comment.
You can’t perform that action at this time.