Skip to contentSkip to conversation

armv8: fsl-layerscape: added XFI protocol support for fsl_lsch3

PATCH New shh.xie at gmail.com 2 participants 2 messages Nov 10, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: fsl-layerscape: added XFI protocol support for fsl_lsch3

From: Shaohui Xie <[email protected]>

This needed to init dpmac.

---
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c +4 -0
index 2ab8da6..67c3a45 100644
@@ -120,6 +120,10 @@ void serdes_init(u32 sd, u32 sd_addr, u32 sd_prctl_mask, u32 sd_prctl_shift,
 					   lane_prtcl <= SGMII16)
 					wriop_init_dpmac(sd, lane + 1,
 							 (int)lane_prtcl);
+				 if (lane_prtcl >= XFI1 &&
+				     lane_prtcl <= XFI8)
+					wriop_init_dpmac(sd, lane + 1,
+							 (int)lane_prtcl);
 				break;
 			}
 #endif
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 1/1 armv8: fsl-layerscape: added XFI protocol support for fsl_lsch3

Please ignore this patch, I just saw some Freescale internal changes, the patch is obsolete.

Best Regards,
Shaohui Xie

Quoted 36 lines

-----Original Message-----
From: shh.xie at gmail.com [mailto:shh.xie at gmail.com]
Sent: Tuesday, November 10, 2015 7:12 PM
To: u-boot at lists.denx.de; Sun York-R58495
Cc: Xie Shaohui-B21989
Subject: [PATCH] armv8: fsl-layerscape: added XFI protocol support for fsl_lsch3

From: Shaohui Xie <[email protected]>

This needed to init dpmac.

---
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c +4 -0
index 2ab8da6..67c3a45 100644
@@ -120,6 +120,10 @@ void serdes_init(u32 sd, u32 sd_addr, u32
 sd_prctl_mask, u32 sd_prctl_shift,
 					   lane_prtcl <= SGMII16)
 					wriop_init_dpmac(sd, lane + 1,
 							 (int)lane_prtcl);
+				 if (lane_prtcl >= XFI1 &&
+				     lane_prtcl <= XFI8)
+					wriop_init_dpmac(sd, lane + 1,
+							 (int)lane_prtcl);
 				break;
 			}

#endif
--
2.1.0.27.g96db324