armv8:fsl-layerscape: Add registers space defination for CCI-400 bus
PATCH 1/1 armv8:fsl-layerscape: Add registers space defination for CCI-400 bus
CoreLink Cache Coherent Interconnect (CCI) is ARM BUS which provides full cache coherency between two clusters of multi-core CPUs and I/O coherency for devices and I/O masters.
This patch add new CONFIG defination and move existing register space definaton of CCI-400 bus from from immap_lsch2 to fsl_immap, so that it can be used for both chasis 2 and chasis 3.
--- README | 9 ++++ arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 6 +++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + .../include/asm/arch-fsl-layerscape/immap_lsch2.h | 48 -------------------- .../include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + include/fsl_immap.h | 51 ++++++++++++++++++++++ 7 files changed, 69 insertions(+), 48 deletions(-)
README +9 -0
@@ -315,6 +315,15 @@ Many of the options are named exactly as the corresponding Linux kernel configuration options. The intention is to make it easier to build a config tool - later. +- ARM Platform Bus Type(CCI): + CoreLink Cache Coherent Interconnect (CCI) is ARM BUS which + provides full cache coherency between two clusters of multi-core + CPUs and I/O coherency for devices and I/O masters + + CONFIG_SYS_FSL_HAS_CCI400 + + Defined For SoC that has cache coherent interconnect + CCN-400 The following options need to be configured:
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +6 -0
@@ -7,6 +7,7 @@ config ARCH_LS1012A select SYS_FSL_ERRATUM_A010315 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS1043A bool
@@ -26,6 +27,7 @@ config ARCH_LS1043A select SYS_FSL_HAS_DDR4 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS1046A bool
@@ -44,6 +46,7 @@ config ARCH_LS1046A select SYS_FSL_SRDS_2 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS2080A bool
@@ -184,6 +187,9 @@ config SYS_FSL_IFC_BANK_COUNT config SYS_FSL_HAS_DP_DDR bool +config SYS_FSL_HAS_CCI400 + bool + config SYS_FSL_SRDS_1 bool
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +1 -0
@@ -29,6 +29,7 @@#ifdef CONFIG_SYS_FSL_DDR #include <fsl_ddr.h> #endif +#include <fsl_immap.h> DECLARE_GLOBAL_DATA_PTR ;
arch/arm/cpu/armv8/fsl-layerscape/soc.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <fsl_immap.h> #include <fsl_ifc.h> #include <ahci.h> #include <scsi.h>
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h +0 -48
54 lines not on this page · raw message
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h +1 -0
@@ -10,6 +10,7 @@#define __ARCH_FSL_LSCH3_IMMAP_H_#define CONFIG_SYS_IMMR 0x01000000 +#define CONFIG_SYS_CCI400_ADDR (CONFIG_SYS_IMMR + 0x3090000)#define CONFIG_SYS_FSL_DDR_ADDR (CONFIG_SYS_IMMR + 0x00080000)#define CONFIG_SYS_FSL_DDR2_ADDR (CONFIG_SYS_IMMR + 0x00090000)#define CONFIG_SYS_FSL_DDR3_ADDR 0x08210000
include/fsl_immap.h +51 -0
55 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 1/1 armv8:fsl-layerscape: Add registers space defination for CCI-400 bus
Quoted 8 lines · Ashish Kumar
CoreLink Cache Coherent Interconnect (CCI) is ARM BUS which provides full cache coherency between two clusters of multi-core CPUs and I/O coherency for devices and I/O masters.
This patch add new CONFIG defination and move existing register space definaton of CCI-400 bus from from
immap_lsch2tofsl_immap, so that it can be used for both chasis 2 and chasis 3.
Please don't indent the commit message.
Quoted 61 lines
Signed-off-by Prabhakar Kushwaha <[email protected]>Signed-off-by Ashish Kumar <[email protected]>--- README | 9 ++++ arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 6 +++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + .../include/asm/arch-fsl-layerscape/immap_lsch2.h | 48 -------------------- .../include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + include/fsl_immap.h | 51 ++++++++++++++++++++++ 7 files changed, 69 insertions(+), 48 deletions(-)README +9
-0@@ -315,6 +315,15 @@ Many of the options are named exactly as the corresponding Linux kernel configuration options. The intention is to make it easier to build a config tool - later. +- ARM Platform Bus Type(CCI): + CoreLink Cache Coherent Interconnect (CCI) is ARM BUS which + provides full cache coherency between two clusters of multi-core + CPUs and I/O coherency for devices and I/O masters + + CONFIG_SYS_FSL_HAS_CCI400 + + Defined For SoC that has cache coherent interconnect + CCN-400 The following options need to be configured:arch/arm/cpu/armv8/fsl-layerscape/Kconfig +3
-0@@ -7,6 +7,7 @@ config ARCH_LS1012A select SYS_FSL_ERRATUM_A010315 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS1043A bool@@ -26,6 +27,7 @@ config ARCH_LS1043A select SYS_FSL_HAS_DDR4 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS1046A bool@@ -44,6 +46,7 @@ config ARCH_LS1046A select SYS_FSL_SRDS_2 select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F + select SYS_FSL_HAS_CCI400 config ARCH_LS2080A bool
arch/arm/cpu/armv8/fsl-layerscape/Kconfig config SYS_FSL_IFC_BANK_COUNT · line 192
Quoted 6 lines
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +3
-0@@ -184,6 +187,9 @@ config SYS_FSL_IFC_BANK_COUNT config SYS_FSL_HAS_DP_DDR bool +config SYS_FSL_HAS_CCI400 + bool +
Please try to keep the config option in order. Easier to search later.
York