aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_pci.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-07-19 17:07:35 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-07-23 23:29:09 -0400
commit2e56ff206b7c6c28b847ccdbe46ad69b3263ac32 (patch)
tree636f8d31a2b6c19fe21b12c61f47dcd96d393871 /arch/powerpc/sysdev/fsl_pci.c
parentd5269966e57484548bc5d38e117f161bf2f56ce9 (diff)
[POWERPC] Make endianess of cfg_addr for indirect pci ops runtime
Make it so we do a runtime check to know if we need to write cfg_addr as big or little endian. This is needed if we want to allow 86xx support to co-exist in the same kernel as other 6xx PPCs. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.c')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index c6a30f9c2073..d7747e05d1da 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -185,7 +185,8 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary)
185 hose->first_busno = bus_range ? bus_range[0] : 0x0; 185 hose->first_busno = bus_range ? bus_range[0] : 0x0;
186 hose->last_busno = bus_range ? bus_range[1] : 0xff; 186 hose->last_busno = bus_range ? bus_range[1] : 0xff;
187 187
188 setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4); 188 setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4,
189 PPC_INDIRECT_TYPE_BIG_ENDIAN);
189 setup_pci_cmd(hose); 190 setup_pci_cmd(hose);
190 191
191 /* check PCI express link status */ 192 /* check PCI express link status */