On 01/30/2017 02:19 AM, Ashish Kumar wrote: > From: Prabhakar Kushwaha <prabhakar.kushw...@nxp.com> > > MAC number used per QSGMII is not fixed. It may wary from SoC to SoC. > > So move QSGMII wriop_init_dpmac() to SoC file. > > Signed-off-by: Prabhakar Kushwaha <prabhakar.kushw...@nxp.com> > --- > .../cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 27 +++++------------ > .../include/asm/arch-fsl-layerscape/fsl_serdes.h | 8 ++-- > drivers/net/ldpaa_eth/ls2080a.c | 30 > ++++++++++++++++++++ > include/fsl-mc/ldpaa_wriop.h | 1 + > 4 files changed, 43 insertions(+), 23 deletions(-) > > diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c > b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c > index 7faa86c..601651a 100644 > --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c > +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c > @@ -23,6 +23,13 @@ int xfi_dpmac[XFI8 + 1]; > int sgmii_dpmac[SGMII16 + 1]; > #endif > > +void __wriop_init_dpmac_qsgmii(int sd, int lane_prtcl) > +{ > + return; > +} > +void wriop_init_dpmac_qsgmii(int sd, int lane_prtcl) > + __attribute__((weak, alias("__wriop_init_dpmac_qsgmii"))); > +
This could be simplified as __weak void wriop_init_dpmac_qsgmii(int sd, int lane_prtcl) {} York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot