T1040 Soc has four personalities: -T1040 (4 cores with L2 switch) -T1042:Reduced personality of T1040 without L2 switch -T1020:Reduced personality of T1040 with less cores(2 cores) -T1022:Reduced personality of T1040 with 2 cores and without L2 switch
Update defines in arch/powerpc header files, Makefiles and in driver/net/fm/Makefile to support all T1040 personalities Signed-off-by: Poonam Aggrwal <poonam.aggr...@freescale.com> Signed-off-by: Priyanka Jain <priyanka.j...@freescale.com> --- Based on u-boot-mpc85xx/next branch. Changes for v2: Updated defined in arch/powerpc/cpu/mpc85xx/Makefile and drivers/net/fm/Makefiles as well. arch/powerpc/cpu/mpc85xx/Makefile | 9 +++++++++ arch/powerpc/include/asm/config_mpc85xx.h | 3 ++- arch/powerpc/include/asm/immap_85xx.h | 3 ++- drivers/net/fm/Makefile | 3 +++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/Makefile b/arch/powerpc/cpu/mpc85xx/Makefile index f70f0d7..0d8464c 100644 --- a/arch/powerpc/cpu/mpc85xx/Makefile +++ b/arch/powerpc/cpu/mpc85xx/Makefile @@ -75,6 +75,9 @@ COBJS-$(CONFIG_PPC_B4860) += ddr-gen3.o COBJS-$(CONFIG_BSC9131) += ddr-gen3.o COBJS-$(CONFIG_BSC9132) += ddr-gen3.o COBJS-$(CONFIG_PPC_T1040) += ddr-gen3.o +COBJS-$(CONFIG_PPC_T1042) += ddr-gen3.o +COBJS-$(CONFIG_PPC_T1020) += ddr-gen3.o +COBJS-$(CONFIG_PPC_T1022) += ddr-gen3.o COBJS-$(CONFIG_CPM2) += ether_fcc.o COBJS-$(CONFIG_OF_LIBFDT) += fdt.o @@ -94,6 +97,9 @@ COBJS-$(CONFIG_PPC_T4160) += t4240_ids.o COBJS-$(CONFIG_PPC_B4420) += b4860_ids.o COBJS-$(CONFIG_PPC_B4860) += b4860_ids.o COBJS-$(CONFIG_PPC_T1040) += t1040_ids.o +COBJS-$(CONFIG_PPC_T1042) += t1040_ids.o +COBJS-$(CONFIG_PPC_T1020) += t1040_ids.o +COBJS-$(CONFIG_PPC_T1022) += t1040_ids.o COBJS-$(CONFIG_QE) += qe_io.o COBJS-$(CONFIG_CPM2) += serial_scc.o @@ -133,6 +139,9 @@ COBJS-$(CONFIG_PPC_B4420) += b4860_serdes.o COBJS-$(CONFIG_PPC_B4860) += b4860_serdes.o COBJS-$(CONFIG_BSC9132) += bsc9132_serdes.o COBJS-$(CONFIG_PPC_T1040) += t1040_serdes.o +COBJS-$(CONFIG_PPC_T1042) += t1040_serdes.o +COBJS-$(CONFIG_PPC_T1020) += t1040_serdes.o +COBJS-$(CONFIG_PPC_T1022) += t1040_serdes.o COBJS-y += cpu.o COBJS-y += cpu_init.o diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/include/asm/config_mpc85xx.h index 946ea97..8bd264a 100644 --- a/arch/powerpc/include/asm/config_mpc85xx.h +++ b/arch/powerpc/include/asm/config_mpc85xx.h @@ -651,7 +651,8 @@ #define CONFIG_NUM_DDR_CONTROLLERS 1 #endif -#elif defined(CONFIG_PPC_T1040) +#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\ +defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022) #define CONFIG_E5500 #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */ #define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */ diff --git a/arch/powerpc/include/asm/immap_85xx.h b/arch/powerpc/include/asm/immap_85xx.h index e516e07..babbd89 100644 --- a/arch/powerpc/include/asm/immap_85xx.h +++ b/arch/powerpc/include/asm/immap_85xx.h @@ -1847,7 +1847,8 @@ typedef struct ccsr_gur { #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL 0x00ff0000 #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT 16 #define FSL_CORENET_RCWSR6_BOOT_LOC 0x0f800000 -#elif defined(CONFIG_PPC_T1040) +#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\ +defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022) #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL 0xff000000 #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT 24 #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL 0x00fe0000 diff --git a/drivers/net/fm/Makefile b/drivers/net/fm/Makefile index dddde4f..7487bef 100644 --- a/drivers/net/fm/Makefile +++ b/drivers/net/fm/Makefile @@ -30,6 +30,9 @@ COBJS-$(CONFIG_PPC_P4080) += p4080.o COBJS-$(CONFIG_PPC_P5020) += p5020.o COBJS-$(CONFIG_PPC_P5040) += p5040.o COBJS-$(CONFIG_PPC_T1040) += t1040.o +COBJS-$(CONFIG_PPC_T1042) += t1040.o +COBJS-$(CONFIG_PPC_T1020) += t1040.o +COBJS-$(CONFIG_PPC_T1022) += t1040.o COBJS-$(CONFIG_PPC_T4240) += t4240.o COBJS-$(CONFIG_PPC_T4160) += t4240.o COBJS-$(CONFIG_PPC_B4420) += b4860.o -- 1.7.4.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot