diff options
author | Zang Roy-r61911 <tie-fei.zang@freescale.com> | 2007-07-10 06:46:35 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-07-23 11:27:07 -0400 |
commit | 9ac4dd301eebb3cd8de801e02bfc91f296e56f63 (patch) | |
tree | 9f4dbb37dc809c94156151f997093ac00a38b928 /arch/powerpc/platforms/86xx | |
parent | 55c44991e2910519bab274c857d95a08100ff5f7 (diff) |
[POWERPC] Rewrite Freescale PCI/PCIe support for 8{3,5,6}xx
Rewrite the Freescale PCI code to support PCI on 83xx/85xx/86xx and
PCIe on 85xx/86xx.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/86xx')
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx.h | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 11 |
2 files changed, 9 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx.h b/arch/powerpc/platforms/86xx/mpc86xx.h index 23f7ed2a7f88..525ffa1904f9 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx.h +++ b/arch/powerpc/platforms/86xx/mpc86xx.h | |||
@@ -15,11 +15,6 @@ | |||
15 | * mpc86xx_* files. Mostly for use by mpc86xx_setup(). | 15 | * mpc86xx_* files. Mostly for use by mpc86xx_setup(). |
16 | */ | 16 | */ |
17 | 17 | ||
18 | extern int mpc86xx_add_bridge(struct device_node *dev); | ||
19 | |||
20 | extern int mpc86xx_exclude_device(struct pci_controller *hose, | ||
21 | u_char bus, u_char devfn); | ||
22 | |||
23 | extern void __init mpc86xx_smp_init(void); | 18 | extern void __init mpc86xx_smp_init(void); |
24 | 19 | ||
25 | #endif /* __MPC86XX_H__ */ | 20 | #endif /* __MPC86XX_H__ */ |
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 5b01ec7c13dc..e67e10d3272f 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include <asm/mpic.h> | 32 | #include <asm/mpic.h> |
33 | 33 | ||
34 | #include <sysdev/fsl_pci.h> | ||
34 | #include <sysdev/fsl_soc.h> | 35 | #include <sysdev/fsl_soc.h> |
35 | 36 | ||
36 | #include "mpc86xx.h" | 37 | #include "mpc86xx.h" |
@@ -344,8 +345,14 @@ mpc86xx_hpcn_setup_arch(void) | |||
344 | } | 345 | } |
345 | 346 | ||
346 | #ifdef CONFIG_PCI | 347 | #ifdef CONFIG_PCI |
347 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 348 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { |
348 | mpc86xx_add_bridge(np); | 349 | struct resource rsrc; |
350 | of_address_to_resource(np, 0, &rsrc); | ||
351 | if ((rsrc.start & 0xfffff) == 0x8000) | ||
352 | fsl_add_bridge(np, 1); | ||
353 | else | ||
354 | fsl_add_bridge(np, 0); | ||
355 | } | ||
349 | #endif | 356 | #endif |
350 | 357 | ||
351 | printk("MPC86xx HPCN board from Freescale Semiconductor\n"); | 358 | printk("MPC86xx HPCN board from Freescale Semiconductor\n"); |