[U-Boot] [PATCH 01/10] armv8: lsch3: Fix lane protocol parsing logic
Prabhakar Kushwaha
prabhakar at freescale.com
Wed Oct 28 09:05:00 CET 2015
Current implementation only consider SGMIIs for dpmac initialization.
XFI serdes protocols also uses dpmac.
So fix lan protocol parsing logic to consider both XFIs and SGMIIs.
Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>
---
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 2ab8da6..e931802 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
@@ -116,7 +116,7 @@ void serdes_init(u32 sd, u32 sd_addr, u32 sd_prctl_mask, u32 sd_prctl_shift,
wriop_init_dpmac(sd, 12, (int)lane_prtcl);
break;
default:
- if (lane_prtcl >= SGMII1 &&
+ if (lane_prtcl >= XFI1 &&
lane_prtcl <= SGMII16)
wriop_init_dpmac(sd, lane + 1,
(int)lane_prtcl);
--
1.9.1
More information about the U-Boot
mailing list