From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/p5020: Add various p5020 related defines (and p5010)
Date: Thu, 15 Jul 2010 00:05:37 -0500 [thread overview]
Message-ID: <1279170338-25813-6-git-send-email-galak@kernel.crashing.org> (raw)
In-Reply-To: <1279170338-25813-5-git-send-email-galak@kernel.crashing.org>
There are various locations that we have chip specific info:
* Makefile for which ddr code to build
* Added p5020 & p5010 to cpu_type_list and SVR list
* Added number of LAWs for p5020
* Set CONFIG_MAX_CPUS to 2 for p5020
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
arch/powerpc/cpu/mpc85xx/Makefile | 1 +
arch/powerpc/cpu/mpc8xxx/cpu.c | 4 ++++
arch/powerpc/include/asm/config.h | 2 ++
arch/powerpc/include/asm/processor.h | 4 ++++
drivers/misc/fsl_law.c | 2 +-
5 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/Makefile b/arch/powerpc/cpu/mpc85xx/Makefile
index 4ee0e9a..2656dde 100644
--- a/arch/powerpc/cpu/mpc85xx/Makefile
+++ b/arch/powerpc/cpu/mpc85xx/Makefile
@@ -59,6 +59,7 @@ COBJS-$(CONFIG_P1022) += ddr-gen3.o
COBJS-$(CONFIG_P2010) += ddr-gen3.o
COBJS-$(CONFIG_P2020) += ddr-gen3.o
COBJS-$(CONFIG_PPC_P4080) += ddr-gen3.o
+COBJS-$(CONFIG_PPC_P5020) += ddr-gen3.o
COBJS-$(CONFIG_CPM2) += ether_fcc.o
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c
index 22f3423..570ddb6 100644
--- a/arch/powerpc/cpu/mpc8xxx/cpu.c
+++ b/arch/powerpc/cpu/mpc8xxx/cpu.c
@@ -84,6 +84,10 @@ struct cpu_type cpu_type_list [] = {
CPU_TYPE_ENTRY(P4040, P4040_E, 4),
CPU_TYPE_ENTRY(P4080, P4080, 8),
CPU_TYPE_ENTRY(P4080, P4080_E, 8),
+ CPU_TYPE_ENTRY(P5010, P5010, 1),
+ CPU_TYPE_ENTRY(P5010, P5010_E, 1),
+ CPU_TYPE_ENTRY(P5020, P5020, 2),
+ CPU_TYPE_ENTRY(P5020, P5020_E, 2),
#elif defined(CONFIG_MPC86xx)
CPU_TYPE_ENTRY(8610, 8610, 1),
CPU_TYPE_ENTRY(8641, 8641, 2),
diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index d88c282..f2f4188 100644
--- a/arch/powerpc/include/asm/config.h
+++ b/arch/powerpc/include/asm/config.h
@@ -46,6 +46,8 @@
#define CONFIG_MAX_CPUS 2
#elif defined(CONFIG_PPC_P4080)
#define CONFIG_MAX_CPUS 8
+#elif defined(CONFIG_PPC_P5020)
+#define CONFIG_MAX_CPUS 2
#else
#define CONFIG_MAX_CPUS 1
#endif
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index 844552c..5e6364a 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -1056,6 +1056,10 @@
#define SVR_P4040_E 0x820900
#define SVR_P4080 0x820000
#define SVR_P4080_E 0x820800
+#define SVR_P5010 0x822100
+#define SVR_P5010_E 0x822900
+#define SVR_P5020 0x822000
+#define SVR_P5020_E 0x822800
#define SVR_8610 0x80A000
#define SVR_8641 0x809000
diff --git a/drivers/misc/fsl_law.c b/drivers/misc/fsl_law.c
index 628bd59..22270f1 100644
--- a/drivers/misc/fsl_law.c
+++ b/drivers/misc/fsl_law.c
@@ -43,7 +43,7 @@ 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)
+#elif 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
--
1.6.0.6
next prev parent reply other threads:[~2010-07-15 5:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-15 5:05 [U-Boot] [PATCH] powerpc/85xx: Add additional p4080 platform related defines/structs Kumar Gala
2010-07-15 5:05 ` [U-Boot] [PATCH] powerpc/fsl_fman: Add initial fman immap structures Kumar Gala
2010-07-15 5:05 ` [U-Boot] [PATCH] powerpc/85xx: Use fdt_node_offset_by_compat_reg for clock-frequency updates Kumar Gala
2010-07-15 5:05 ` [U-Boot] [PATCH] powerpc/p4080: Add setting of clock-frequency for clockgen node Kumar Gala
2010-07-15 5:05 ` [U-Boot] [PATCH] powerpc/mpc85xx: Report FMAN # to match user manual Kumar Gala
2010-07-15 5:05 ` Kumar Gala [this message]
2010-07-15 5:05 ` [U-Boot] [PATCH] powerpc/p3041: Add various p3041 related defines Kumar Gala
2010-07-21 5:37 ` Kumar Gala
2010-07-21 5:37 ` [U-Boot] [PATCH] powerpc/p5020: Add various p5020 related defines (and p5010) Kumar Gala
2010-07-21 5:37 ` [U-Boot] [PATCH] powerpc/mpc85xx: Report FMAN # to match user manual Kumar Gala
2010-07-21 5:36 ` [U-Boot] [PATCH] powerpc/p4080: Add setting of clock-frequency for clockgen node Kumar Gala
2010-07-21 5:36 ` [U-Boot] [PATCH] powerpc/85xx: Use fdt_node_offset_by_compat_reg for clock-frequency updates Kumar Gala
2010-07-26 13:50 ` [U-Boot] [PATCH] powerpc/fsl_fman: Add initial fman immap structures Kumar Gala
2010-07-21 5:42 ` [U-Boot] [PATCH v2] powerpc/85xx: Add additional p4080 platform related defines/structs Kumar Gala
2010-07-26 13:50 ` Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1279170338-25813-6-git-send-email-galak@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox