u-boot: Invalid SRDS_MAX_LANES value for T1024

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

u-boot: Invalid SRDS_MAX_LANES value for T1024

Jump to solution
698 Views
paulozaneti
Contributor II

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

Labels (1)
Tags (3)
0 Kudos
1 Solution
553 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paulo Zaneti,

The macro SRDS_MAX_LANES is not used in T1024 serdes configuration file, please refer to arch/powerpc/cpu/mpc85xx/t1024_serdes.c, I have attached it for you. Only 4 serdes lanes are used in the serdes configuration file for T1024.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
554 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paulo Zaneti,

The macro SRDS_MAX_LANES is not used in T1024 serdes configuration file, please refer to arch/powerpc/cpu/mpc85xx/t1024_serdes.c, I have attached it for you. Only 4 serdes lanes are used in the serdes configuration file for T1024.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos