[U-Boot] [PATCH] arm: fsl-layerscape: Move QSGMII wriop_init to SoC file
york sun
york.sun at nxp.com
Mon Jan 30 17:27:36 CET 2017
On 01/30/2017 02:19 AM, Ashish Kumar wrote:
> From: Prabhakar Kushwaha <prabhakar.kushwaha at 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.kushwaha at 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
More information about the U-Boot
mailing list