diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-05-07 17:27:15 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 21:54:20 -0400 |
commit | 05ad6a9159401804c9bcec8922a9c4a1cb2bfb59 (patch) | |
tree | 2c3c7e2a842da98996250abcc8ee4647984a7e6f /arch/powerpc/platforms | |
parent | c1b78d05b3281d6f84284d421fc20eed8b8b78ce (diff) |
[POWERPC] Generalize tsi108 PCI setup
Generalize tsi108_setup_pci to take the config space physical address and
primary bus designator as a parameter.
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index 06c86a1b4fb0..4542e0c837c0 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -52,6 +52,8 @@ | |||
52 | #define DBG(fmt...) do { } while(0) | 52 | #define DBG(fmt...) do { } while(0) |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #define MPC7448HPC2_PCI_CFG_PHYS 0xfb000000 | ||
56 | |||
55 | #ifndef CONFIG_PCI | 57 | #ifndef CONFIG_PCI |
56 | isa_io_base = MPC7448_HPC2_ISA_IO_BASE; | 58 | isa_io_base = MPC7448_HPC2_ISA_IO_BASE; |
57 | isa_mem_base = MPC7448_HPC2_ISA_MEM_BASE; | 59 | isa_mem_base = MPC7448_HPC2_ISA_MEM_BASE; |
@@ -79,7 +81,7 @@ static void __init mpc7448_hpc2_setup_arch(void) | |||
79 | /* setup PCI host bridge */ | 81 | /* setup PCI host bridge */ |
80 | #ifdef CONFIG_PCI | 82 | #ifdef CONFIG_PCI |
81 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 83 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
82 | tsi108_setup_pci(np); | 84 | tsi108_setup_pci(np, MPC7448HPC2_PCI_CFG_PHYS, 0); |
83 | 85 | ||
84 | ppc_md.pci_exclude_device = mpc7448_hpc2_exclude_device; | 86 | ppc_md.pci_exclude_device = mpc7448_hpc2_exclude_device; |
85 | if (ppc_md.progress) | 87 | if (ppc_md.progress) |