diff options
author | Matt Porter <mporter@kernel.crashing.org> | 2005-11-07 04:00:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:47 -0500 |
commit | 2b0c28d7f8846f80a436093e906f5175d1fa8f55 (patch) | |
tree | ce704dd11d562b2f5473b896153e0263e9d3906b /arch/ppc/platforms/85xx | |
parent | fa78cc51794912b7e6ee98cd823fcc84cf79d04a (diff) |
[PATCH] RapidIO support: ppc32
Adds PPC32 RIO support. Init code for the MPC85xx RIO ports and glue for the
STx GP3 board to use it.
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/platforms/85xx')
-rw-r--r-- | arch/ppc/platforms/85xx/mpc85xx_ads_common.c | 10 | ||||
-rw-r--r-- | arch/ppc/platforms/85xx/stx_gp3.c | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/ppc/platforms/85xx/mpc85xx_ads_common.c b/arch/ppc/platforms/85xx/mpc85xx_ads_common.c index bd3ac0136756..16ad092d8a06 100644 --- a/arch/ppc/platforms/85xx/mpc85xx_ads_common.c +++ b/arch/ppc/platforms/85xx/mpc85xx_ads_common.c | |||
@@ -45,6 +45,8 @@ | |||
45 | 45 | ||
46 | #include <mm/mmu_decl.h> | 46 | #include <mm/mmu_decl.h> |
47 | 47 | ||
48 | #include <syslib/ppc85xx_rio.h> | ||
49 | |||
48 | #include <platforms/85xx/mpc85xx_ads_common.h> | 50 | #include <platforms/85xx/mpc85xx_ads_common.h> |
49 | 51 | ||
50 | #ifndef CONFIG_PCI | 52 | #ifndef CONFIG_PCI |
@@ -189,3 +191,11 @@ mpc85xx_exclude_device(u_char bus, u_char devfn) | |||
189 | } | 191 | } |
190 | 192 | ||
191 | #endif /* CONFIG_PCI */ | 193 | #endif /* CONFIG_PCI */ |
194 | |||
195 | #ifdef CONFIG_RAPIDIO | ||
196 | void platform_rio_init(void) | ||
197 | { | ||
198 | /* 512MB RIO LAW at 0xc0000000 */ | ||
199 | mpc85xx_rio_setup(0xc0000000, 0x20000000); | ||
200 | } | ||
201 | #endif /* CONFIG_RAPIDIO */ | ||
diff --git a/arch/ppc/platforms/85xx/stx_gp3.c b/arch/ppc/platforms/85xx/stx_gp3.c index 1e1b85f8193a..15ce9d070634 100644 --- a/arch/ppc/platforms/85xx/stx_gp3.c +++ b/arch/ppc/platforms/85xx/stx_gp3.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/module.h> | 37 | #include <linux/module.h> |
38 | #include <linux/fsl_devices.h> | 38 | #include <linux/fsl_devices.h> |
39 | #include <linux/interrupt.h> | 39 | #include <linux/interrupt.h> |
40 | #include <linux/rio.h> | ||
40 | 41 | ||
41 | #include <asm/system.h> | 42 | #include <asm/system.h> |
42 | #include <asm/pgtable.h> | 43 | #include <asm/pgtable.h> |
@@ -57,6 +58,7 @@ | |||
57 | 58 | ||
58 | #include <syslib/cpm2_pic.h> | 59 | #include <syslib/cpm2_pic.h> |
59 | #include <syslib/ppc85xx_common.h> | 60 | #include <syslib/ppc85xx_common.h> |
61 | #include <syslib/ppc85xx_rio.h> | ||
60 | 62 | ||
61 | 63 | ||
62 | unsigned char __res[sizeof(bd_t)]; | 64 | unsigned char __res[sizeof(bd_t)]; |
@@ -273,6 +275,18 @@ int mpc85xx_exclude_device(u_char bus, u_char devfn) | |||
273 | } | 275 | } |
274 | #endif /* CONFIG_PCI */ | 276 | #endif /* CONFIG_PCI */ |
275 | 277 | ||
278 | #ifdef CONFIG_RAPIDIO | ||
279 | void | ||
280 | platform_rio_init(void) | ||
281 | { | ||
282 | /* | ||
283 | * The STx firmware configures the RapidIO Local Access Window | ||
284 | * at 0xc0000000 with a size of 512MB. | ||
285 | */ | ||
286 | mpc85xx_rio_setup(0xc0000000, 0x20000000); | ||
287 | } | ||
288 | #endif /* CONFIG_RAPIDIO */ | ||
289 | |||
276 | void __init | 290 | void __init |
277 | platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | 291 | platform_init(unsigned long r3, unsigned long r4, unsigned long r5, |
278 | unsigned long r6, unsigned long r7) | 292 | unsigned long r6, unsigned long r7) |