From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by ozlabs.org (Postfix) with ESMTP id 572A767B31 for ; Sat, 11 Jun 2005 10:18:08 +1000 (EST) Date: Fri, 10 Jun 2005 17:18:03 -0700 From: Matt Porter To: akpm@osdl.org Message-ID: <20050610171802.B15999@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linuxppc-embedded@ozlabs.org Subject: [PATCH][MM] ppc32: enable rapidio on mpc85xx ads boards List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Enables RIO on the MPC8540/8560 ADS ref boards. RIO can be used with a crossover cable between two of them. Signed-off-by: Matt Porter diff --git a/arch/ppc/platforms/85xx/mpc85xx_ads_common.c b/arch/ppc/platforms/85xx/mpc85xx_ads_common.c --- a/arch/ppc/platforms/85xx/mpc85xx_ads_common.c +++ b/arch/ppc/platforms/85xx/mpc85xx_ads_common.c @@ -47,6 +47,8 @@ #include +#include + #include #ifndef CONFIG_PCI @@ -223,3 +225,11 @@ mpc85xx_exclude_device(u_char bus, u_cha } #endif /* CONFIG_PCI */ + +#ifdef CONFIG_RAPIDIO +void platform_rio_init(void) +{ + /* 512MB RIO LAW at 0xc0000000 */ + mpc85xx_rio_setup(0xc0000000, 0x20000000); +} +#endif /* CONFIG_RAPIDIO */