From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "de01egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 99FA9DDF68 for ; Thu, 26 Jul 2007 18:34:54 +1000 (EST) Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by de01egw01.freescale.net (8.12.11/de01egw01) with ESMTP id l6Q8YktO004754 for ; Thu, 26 Jul 2007 01:34:46 -0700 (MST) Received: from zch01exm26.fsl.freescale.net (zch01exm26.ap.freescale.net [10.192.129.221]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id l6Q8YdHB022740 for ; Thu, 26 Jul 2007 03:34:45 -0500 (CDT) From: Zhang Wei To: galak@kernel.crashing.org, mporter@kernel.crashing.org, paulus@samba.org Subject: [PATCH 3/5 v3] Add the platform device support with RapidIO to MPC8641HPCN platform. Date: Thu, 26 Jul 2007 16:42:50 +0800 Message-Id: <11854393753986-git-send-email-wei.zhang@freescale.com> In-Reply-To: <11854393741899-git-send-email-wei.zhang@freescale.com> References: <11854393721520-git-send-email-wei.zhang@freescale.com> <11854393733580-git-send-email-wei.zhang@freescale.com> <11854393741899-git-send-email-wei.zhang@freescale.com> Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Add the platform device support with RapidIO to MPC8641HPCN platform. Signed-off-by: Zhang Wei --- 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 e9eaa07..7693adc 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include @@ -444,3 +446,17 @@ define_machine(mpc86xx_hpcn) { .progress = udbg_progress, .pcibios_fixup_bus = fsl_pcibios_fixup_bus, }; + + +static struct of_device_id mpc86xx_of_ids[] = { + { .type = "soc", }, + { .compatible = "fsl,rapidio-delta", }, + {}, +}; + +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