]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/p3041: Add various p3041 related defines
authorKumar Gala <galak@kernel.crashing.org>
Wed, 27 Jan 2010 16:26:46 +0000 (10:26 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 20 Jul 2010 09:41:19 +0000 (04:41 -0500)
There are various locations that we have chip specific info:

* Makefile for which ddr code to build
* Added p3041 to cpu_type_list and SVR list
* Added number of LAWs for p3041
* Set CONFIG_MAX_CPUS to 4 for p3041

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/Makefile
arch/powerpc/cpu/mpc8xxx/cpu.c
arch/powerpc/include/asm/config.h
arch/powerpc/include/asm/processor.h
drivers/misc/fsl_law.c

index 2656dde83cf9a69a60fe19a9b8ee22f4259bd1ef..fe851f15dbedebea610b666389b0f2cdfe06bfc2 100644 (file)
@@ -58,6 +58,7 @@ COBJS-$(CONFIG_P1021) += ddr-gen3.o
 COBJS-$(CONFIG_P1022)  += ddr-gen3.o
 COBJS-$(CONFIG_P2010)  += ddr-gen3.o
 COBJS-$(CONFIG_P2020)  += ddr-gen3.o
+COBJS-$(CONFIG_PPC_P3041)      += ddr-gen3.o
 COBJS-$(CONFIG_PPC_P4080)      += ddr-gen3.o
 COBJS-$(CONFIG_PPC_P5020)      += ddr-gen3.o
 
index 570ddb6de8651b8d40626594366a7a1f8990d403..dc3da1689f9a96e346d86c53aa3edbd37cf37917 100644 (file)
@@ -80,6 +80,8 @@ struct cpu_type cpu_type_list [] = {
        CPU_TYPE_ENTRY(P2010, P2010_E, 1),
        CPU_TYPE_ENTRY(P2020, P2020, 2),
        CPU_TYPE_ENTRY(P2020, P2020_E, 2),
+       CPU_TYPE_ENTRY(P3041, P3041, 4),
+       CPU_TYPE_ENTRY(P3041, P3041_E, 4),
        CPU_TYPE_ENTRY(P4040, P4040, 4),
        CPU_TYPE_ENTRY(P4040, P4040_E, 4),
        CPU_TYPE_ENTRY(P4080, P4080, 8),
index f2f4188ba3da3b7bb9acb1d0932c08e86121e4ad..f70699de2796b1ac446e94d2085d8a4f8771d8ee 100644 (file)
@@ -44,6 +44,8 @@
        defined(CONFIG_P1021) || defined(CONFIG_P1022) || \
        defined(CONFIG_P2020) || defined(CONFIG_MPC8641)
 #define CONFIG_MAX_CPUS                2
+#elif defined(CONFIG_PPC_P3041)
+#define CONFIG_MAX_CPUS                4
 #elif defined(CONFIG_PPC_P4080)
 #define CONFIG_MAX_CPUS                8
 #elif defined(CONFIG_PPC_P5020)
index 5e6364a3baf0574e0ad915851b9a4fe48c314986..89f283a6c57b607eb77731fe0b94b9fc9a1f20d6 100644 (file)
 #define SVR_P2010_E    0x80EB00
 #define SVR_P2020      0x80E200
 #define SVR_P2020_E    0x80EA00
+#define SVR_P3041      0x821103
+#define SVR_P3041_E    0x821903
 #define SVR_P4040      0x820100
 #define SVR_P4040_E    0x820900
 #define SVR_P4080      0x820000
index 22270f1d0258462c07658f0d284cdee0375e19c0..65890769ac333d641f03e7e1500959d7014a3e8e 100644 (file)
@@ -43,7 +43,8 @@ DECLARE_GLOBAL_DATA_PTR;
       defined(CONFIG_P1013) || defined(CONFIG_P1022) || \
       defined(CONFIG_P2010) || defined(CONFIG_P2020)
 #define FSL_HW_NUM_LAWS 12
-#elif defined(CONFIG_PPC_P4080) || defined(CONFIG_PPC_P5020)
+#elif defined(CONFIG_PPC_P3041) || defined(CONFIG_PPC_P4080) || \
+      defined(CONFIG_PPC_P5020)
 #define FSL_HW_NUM_LAWS 32
 #else
 #error FSL_HW_NUM_LAWS not defined for this platform