powerpc: add MPC837x RDB platform support
Subsystems (2)
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
@@ -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
@@ -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
Quoted 5 lines · Kim Phillips
primarily based on mpc837x mds code.
Signed-off-by Joe D'Abbraccio <[email protected]>Signed-off-by Kim Phillips <[email protected]>---
Who's the actual other of these patches? (all 9 of them).
- k
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.
Signed-off-by Joe D'Abbraccio <[email protected]>Signed-off-by Kim Phillips <[email protected]>---
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
Kumar Gala
AppliedQuoted 11 lines · Kim Phillips
primarily based on mpc837x mds code.
Signed-off-by Joe D'Abbraccio <[email protected]>Signed-off-by Kim Phillips <[email protected]>--- 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
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_idmpc837x_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/