Skip to contentSkip to conversation

armv8: Remove dependency of SERDES for LS CHASIS3

PATCH New Sriram Dash 2 participants 3 messages Sep 4, 2017 – Sep 15, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: Remove dependency of SERDES for LS CHASIS3

Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3.

---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++--
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c   | 2 ++
 arch/arm/cpu/armv8/fsl-layerscape/soc.c   | 2 ++
 3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +2 -2
index cdeef26..355f8bb 100644
@@ -58,6 +58,8 @@ config ARCH_LS2080A
 	select ARM_ERRATA_829520
 	select ARM_ERRATA_833471
 	select FSL_LSCH3
+	select SYS_FSL_SRDS_1
+	select SYS_HAS_SERDES
 	select SYS_FSL_DDR
 	select SYS_FSL_DDR_LE
 	select SYS_FSL_DDR_VER_50
@@ -93,8 +95,6 @@ config FSL_LSCH2
 
 config FSL_LSCH3
 	bool
-	select SYS_FSL_SRDS_1
-	select SYS_HAS_SERDES
 
 config FSL_MC_ENET
 	bool "Management Complex network"
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +2 -0
index c6fede3..3ce2ffc 100644
@@ -12,7 +12,9 @@
 #include <asm/system.h>
 #include <asm/armv8/mmu.h>
 #include <asm/io.h>
+#ifdef CONFIG_SYS_HAS_SERDES
 #include <asm/arch/fsl_serdes.h>
+#endif
 #include <asm/arch/soc.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/speed.h>
arch/arm/cpu/armv8/fsl-layerscape/soc.c +2 -0
index 639e9d2..72acb45 100644
@@ -8,7 +8,9 @@
 #include <fsl_ifc.h>
 #include <ahci.h>
 #include <scsi.h>
+#ifdef CONFIG_SYS_HAS_SERDES
 #include <asm/arch/fsl_serdes.h>
+#endif
 #include <asm/arch/soc.h>
 #include <asm/io.h>
 #include <asm/global_data.h>
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 armv8: Remove dependency of SERDES for LS CHASIS3

Quoted 36 lines · Sriram Dash

Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3.

---
  arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++--
  arch/arm/cpu/armv8/fsl-layerscape/cpu.c   | 2 ++
  arch/arm/cpu/armv8/fsl-layerscape/soc.c   | 2 ++
  3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +2 -2
index cdeef26..355f8bb 100644
@@ -58,6 +58,8 @@ config ARCH_LS2080A
  	select ARM_ERRATA_829520
  	select ARM_ERRATA_833471
  	select FSL_LSCH3
+	select SYS_FSL_SRDS_1
+	select SYS_HAS_SERDES
  	select SYS_FSL_DDR
  	select SYS_FSL_DDR_LE
  	select SYS_FSL_DDR_VER_50
@@ -93,8 +95,6 @@ config FSL_LSCH2
 
  config FSL_LSCH3
  	bool
-	select SYS_FSL_SRDS_1
-	select SYS_HAS_SERDES
 
  config FSL_MC_ENET
  	bool "Management Complex network"
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +0 -0
index c6fede3..3ce2ffc 100644

arch/arm/cpu/armv8/fsl-layerscape/cpu.c line 17

Quoted 6 lines
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +2 -0
@@ -12,7 +12,9 @@
  #include <asm/system.h>
  #include <asm/armv8/mmu.h>
  #include <asm/io.h>
+#ifdef CONFIG_SYS_HAS_SERDES
  #include <asm/arch/fsl_serdes.h>
+#endif

Do not use ifdef here. Instead, fix fsl_serdes.h for proper include. CONFIG_SYS_HAS_SERDES is already being check there. You can adjust it if needed.

York

#2 lore raw

PATCH 1/1 armv8: Remove dependency of SERDES for LS CHASIS3

Quoted 43 lines

From: York Sun
Subject: Re: [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

Quoted 39 lines · Sriram Dash

Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3.

---
  arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++--
  arch/arm/cpu/armv8/fsl-layerscape/cpu.c   | 2 ++
  arch/arm/cpu/armv8/fsl-layerscape/soc.c   | 2 ++
  3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +2 -2
index cdeef26..355f8bb 100644
@@ -58,6 +58,8 @@ config ARCH_LS2080A
  	select ARM_ERRATA_829520
  	select ARM_ERRATA_833471
  	select FSL_LSCH3
+	select SYS_FSL_SRDS_1
+	select SYS_HAS_SERDES
  	select SYS_FSL_DDR
  	select SYS_FSL_DDR_LE
  	select SYS_FSL_DDR_VER_50
@@ -93,8 +95,6 @@ config FSL_LSCH2
 
  config FSL_LSCH3
  	bool
-	select SYS_FSL_SRDS_1
-	select SYS_HAS_SERDES
 
  config FSL_MC_ENET
  	bool "Management Complex network"
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +0 -0
index c6fede3..3ce2ffc 100644
@@ -12,7 +12,9 @@
  #include <asm/system.h>
Quoted 9 lines

arch/arm/cpu/armv8/fsl-layerscape/cpu.c line 17

Quoted 5 lines
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +2 -0
  #include <asm/armv8/mmu.h>
  #include <asm/io.h>
+#ifdef CONFIG_SYS_HAS_SERDES
  #include <asm/arch/fsl_serdes.h>
+#endif

Do not use ifdef here. Instead, fix fsl_serdes.h for proper include. CONFIG_SYS_HAS_SERDES is already being check there. You can adjust it if needed.

Sure. This will be better. I will make necessary changes in the next rev.

Quoted 1 line

York