Skip to contentSkip to conversation

powerpc: add MPC837x RDB platform support

PATCH Applied Kim Phillips 3 participants 5 messages Jan 25, 2008 – Feb 4, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/9 powerpc: add MPC837x RDB platform support

primarily based on mpc837x mds code.

---
 arch/powerpc/platforms/83xx/Kconfig       |    8 ++-
 arch/powerpc/platforms/83xx/Makefile      |    1 +
 arch/powerpc/platforms/83xx/mpc837x_rdb.c |   99 +++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+), 1 deletions(-)
 create mode 100644 arch/powerpc/platforms/83xx/mpc837x_rdb.c
arch/powerpc/platforms/83xx/Kconfig +7 -1
index b478312..bfdcf89 100644
@@ -55,6 +55,12 @@ config MPC837x_MDS
 	select DEFAULT_UIMAGE
 	help
 	  This option enables support for the MPC837x MDS Processor Board.
+
+config MPC837x_RDB
+	bool "Freescale MPC837x RDB"
+	select DEFAULT_UIMAGE
+	help
+	  This option enables support for the MPC837x RDB Board.
 endchoice
 
 config PPC_MPC831x
@@ -85,4 +91,4 @@ config PPC_MPC837x
 	bool
 	select PPC_UDBG_16550
 	select PPC_INDIRECT_PCI
-	default y if MPC837x_MDS
+	default y if MPC837x_MDS || MPC837x_RDB
arch/powerpc/platforms/83xx/Makefile +1 -0
index 1111a50..e5ba0fb 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_MPC834x_ITX)	+= mpc834x_itx.o
 obj-$(CONFIG_MPC836x_MDS)	+= mpc836x_mds.o
 obj-$(CONFIG_MPC832x_MDS)	+= mpc832x_mds.o
 obj-$(CONFIG_MPC837x_MDS)	+= mpc837x_mds.o
+obj-$(CONFIG_MPC837x_RDB)	+= mpc837x_rdb.o
arch/powerpc/platforms/83xx/mpc837x_rdb.c new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
1.5.2.2
#2 lore raw
Quoted 10 lines · On Fri, 25 Jan 2008 10:17:14 -0600 Kumar Gala <[email protected]> wrote:
Quoted 5 lines · Kim Phillips

primarily based on mpc837x mds code.

---

Who's the actual other of these patches? (all 9 of them).

I took Joe's 837x from:

http://ozlabs.org/pipermail/linuxppc-embedded/2007-September/028460.html

and updated them.

831x I took from Jerry Huang's tree and updated them.

Kim

Applied
#3 lore raw
In reply to Kim Phillips
Quoted 11 lines · Kim Phillips

primarily based on mpc837x mds code.

---
 arch/powerpc/platforms/83xx/Kconfig       |    8 ++-
 arch/powerpc/platforms/83xx/Makefile      |    1 +
 arch/powerpc/platforms/83xx/mpc837x_rdb.c |   99 +++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+), 1 deletions(-)
 create mode 100644 arch/powerpc/platforms/83xx/mpc837x_rdb.c

applied.

- k

#4 lore raw
In reply to Kim Phillips

Hi Kim,

Again, a bit late but a couple of comments.

Quoted 2 lines · On Thu, 24 Jan 2008 20:47:11 -0600 Kim Phillips <[email protected]>…

+static struct of_device_id mpc837x_ids[] = {

Make this __initdata, please.

arch/powerpc/platforms/83xx/mpc837x_rdb.c line 69

Quoted 9 lines
arch/powerpc/platforms/83xx/mpc837x_rdb.c new file +9 -0
+static void __init mpc837x_rdb_init_IRQ(void)
+{
+	struct device_node *np;
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,ipic");
+	if (!np)
+		return;
+
+	ipic_init(np, 0);

You need an of_node_put(np) here.

arch/powerpc/platforms/83xx/mpc837x_rdb.c line 86

Quoted 7 lines
arch/powerpc/platforms/83xx/mpc837x_rdb.c new file +7 -0
+static int __init mpc837x_rdb_probe(void)
+{
+	unsigned long root = of_get_flat_dt_root();
+
+	return of_flat_dt_is_compatible(root, "fsl,mpc8377rdb") ||
+	       of_flat_dt_is_compatible(root, "fsl,mpc8378rdb") ||
+	       of_flat_dt_is_compatible(root, "fsl,mpc8379rdb");

You need to include asm/prom.h to use the flattened device tree accessors.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/