[PATCH 3/5] Add the platform device support with RapidIO to MPC8641HPCN platform.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhang Wei
Date: Tuesday, June 12, 2007 - 2:02 am

Add the platform device support with RapidIO to MPC8641HPCN platform.

Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
---
 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index 7034bca..f0ca5b3 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -28,6 +28,8 @@
 #include <mm/mmu_decl.h>
 #include <asm/udbg.h>
 #include <asm/i8259.h>
+#include <asm/of_device.h>
+#include <asm/of_platform.h>
 
 #include <asm/mpic.h>
 
@@ -467,3 +469,17 @@ define_machine(mpc86xx_hpcn) {
 	.calibrate_decr		= generic_calibrate_decr,
 	.progress		= udbg_progress,
 };
+
+
+static struct of_device_id mpc86xx_of_ids[] = {
+	{ .type = "soc", },
+	{ .type = "rapidio", },
+	{},
+};
+
+static __init int mpc86xx_of_device_init(void)
+{
+	return of_platform_bus_probe(NULL, mpc86xx_of_ids, NULL);
+}
+
+device_initcall(mpc86xx_of_device_init);
-- 
1.5.1

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/5] Add the platform device support with RapidIO t ..., Zhang Wei, (Tue Jun 12, 2:02 am)
Re: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Segher Boessenkool, (Tue Jun 12, 10:02 pm)
RE: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Zhang Wei-r63237, (Wed Jun 13, 1:14 am)
Re: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Segher Boessenkool, (Wed Jun 13, 1:28 am)
RE: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Zhang Wei-r63237, (Wed Jun 13, 2:37 am)
Re: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Segher Boessenkool, (Wed Jun 13, 2:48 am)
Re: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Segher Boessenkool, (Thu Jun 14, 12:52 am)
RE: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Zhang Wei-r63237, (Sun Jun 17, 8:27 pm)
Re: [PATCH 1/5] Add the explanation and sample of RapidIO ..., Segher Boessenkool, (Mon Jun 18, 5:43 am)