diff options
Diffstat (limited to 'arch/ppc/platforms/gemini_pci.c')
| -rw-r--r-- | arch/ppc/platforms/gemini_pci.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/ppc/platforms/gemini_pci.c b/arch/ppc/platforms/gemini_pci.c deleted file mode 100644 index 95656091ba2b..000000000000 --- a/arch/ppc/platforms/gemini_pci.c +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #include <linux/kernel.h> | ||
| 2 | #include <linux/init.h> | ||
| 3 | #include <linux/pci.h> | ||
| 4 | #include <linux/slab.h> | ||
| 5 | |||
| 6 | #include <asm/machdep.h> | ||
| 7 | #include <platforms/gemini.h> | ||
| 8 | #include <asm/byteorder.h> | ||
| 9 | #include <asm/io.h> | ||
| 10 | #include <asm/uaccess.h> | ||
| 11 | #include <asm/pci-bridge.h> | ||
| 12 | |||
| 13 | void __init gemini_pcibios_fixup(void) | ||
| 14 | { | ||
| 15 | int i; | ||
| 16 | struct pci_dev *dev = NULL; | ||
| 17 | |||
| 18 | for_each_pci_dev(dev) { | ||
| 19 | for(i = 0; i < 6; i++) { | ||
| 20 | if (dev->resource[i].flags & IORESOURCE_IO) { | ||
| 21 | dev->resource[i].start |= (0xfe << 24); | ||
| 22 | dev->resource[i].end |= (0xfe << 24); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | /* The "bootloader" for Synergy boards does none of this for us, so we need to | ||
| 30 | lay it all out ourselves... --Dan */ | ||
| 31 | void __init gemini_find_bridges(void) | ||
| 32 | { | ||
| 33 | struct pci_controller* hose; | ||
| 34 | |||
| 35 | ppc_md.pcibios_fixup = gemini_pcibios_fixup; | ||
| 36 | |||
| 37 | hose = pcibios_alloc_controller(); | ||
| 38 | if (!hose) | ||
| 39 | return; | ||
| 40 | setup_indirect_pci(hose, 0xfec00000, 0xfee00000); | ||
| 41 | } | ||
