AnsweredAssumed Answered

u-boot: Invalid SRDS_MAX_LANES value for T1024

Question asked by Paulo Zaneti on May 4, 2017
Latest reply on May 7, 2017 by Yiping Wang

Hi,

 

Based on branch sdk-v2.0.x of repository git://git.freescale.com/ppc/sdk/u-boot.git

file: ./arch/powerpc/include/asm/immap_85xx.h, line 2530

SRDS_MAX_LANES is defined as value "8" for T1024 processor.

But according to T1024 reference manual, there are only 4 serdes lanes available.

Is it possible to apply the following patch on this file?

--------------------------------------------------------------------------

diff --git a/arch/powerpc/include/asm/immap_85xx.h b/arch/powerpc/include/asm/immap_85xx.h
index e90a6f2..fe05a89 100644
--- a/arch/powerpc/include/asm/immap_85xx.h
+++ b/arch/powerpc/include/asm/immap_85xx.h
@@ -2527,7 +2527,12 @@ typedef struct ccsr_gur {

#ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
#define MAX_SERDES 4
+#if defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) || \
+ defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
+#define SRDS_MAX_LANES 4
+#else
#define SRDS_MAX_LANES 8
+#endif
#define SRDS_MAX_BANK 2
typedef struct serdes_corenet {
struct {

--------------------------------------------------------------------------

Thanks and best regards,

Paulo Zaneti

Outcomes