diff options
author | Paul Mackerras <paulus@samba.org> | 2008-06-29 20:16:50 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-06-29 20:16:50 -0400 |
commit | e9a4b6a3f6592862a67837e80aad3f50468857a6 (patch) | |
tree | 087420cf91ac922c7e99757c4490a605ec7b10f2 /arch/mips/pci | |
parent | 441dbb500b4344a8e3125e5aabab4f9dbf72514f (diff) | |
parent | 1702b52092e9a6d05398d3f9581ddc050ef00d06 (diff) |
Merge branch 'linux-2.6'
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/pci-sb1250.c | 8 | ||||
-rw-r--r-- | arch/mips/pci/pci-vr41xx.c | 14 |
2 files changed, 18 insertions, 4 deletions
diff --git a/arch/mips/pci/pci-sb1250.c b/arch/mips/pci/pci-sb1250.c index 42e4d2c800fa..2a09ad91ec8c 100644 --- a/arch/mips/pci/pci-sb1250.c +++ b/arch/mips/pci/pci-sb1250.c | |||
@@ -207,6 +207,7 @@ struct pci_controller sb1250_controller = { | |||
207 | 207 | ||
208 | static int __init sb1250_pcibios_init(void) | 208 | static int __init sb1250_pcibios_init(void) |
209 | { | 209 | { |
210 | void __iomem *io_map_base; | ||
210 | uint32_t cmdreg; | 211 | uint32_t cmdreg; |
211 | uint64_t reg; | 212 | uint64_t reg; |
212 | extern int pci_probe_only; | 213 | extern int pci_probe_only; |
@@ -253,12 +254,13 @@ static int __init sb1250_pcibios_init(void) | |||
253 | * works correctly with most of Linux's drivers. | 254 | * works correctly with most of Linux's drivers. |
254 | * XXX ehs: Should this happen in PCI Device mode? | 255 | * XXX ehs: Should this happen in PCI Device mode? |
255 | */ | 256 | */ |
256 | |||
257 | set_io_port_base((unsigned long) | ||
258 | ioremap(A_PHYS_LDTPCI_IO_MATCH_BYTES, 65536)); | ||
259 | isa_slot_offset = (unsigned long) | 257 | isa_slot_offset = (unsigned long) |
260 | ioremap(A_PHYS_LDTPCI_IO_MATCH_BYTES_32, 1024 * 1024); | 258 | ioremap(A_PHYS_LDTPCI_IO_MATCH_BYTES_32, 1024 * 1024); |
261 | 259 | ||
260 | io_map_base = ioremap(A_PHYS_LDTPCI_IO_MATCH_BYTES, 1024 * 1024); | ||
261 | sb1250_controller.io_map_base = io_map_base; | ||
262 | set_io_port_base((unsigned long)io_map_base); | ||
263 | |||
262 | #ifdef CONFIG_SIBYTE_HAS_LDT | 264 | #ifdef CONFIG_SIBYTE_HAS_LDT |
263 | /* | 265 | /* |
264 | * Also check the LDT bridge's enable, just in case we didn't | 266 | * Also check the LDT bridge's enable, just in case we didn't |
diff --git a/arch/mips/pci/pci-vr41xx.c b/arch/mips/pci/pci-vr41xx.c index 33c4f683d067..d1e049b55f34 100644 --- a/arch/mips/pci/pci-vr41xx.c +++ b/arch/mips/pci/pci-vr41xx.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2001-2003 MontaVista Software Inc. | 4 | * Copyright (C) 2001-2003 MontaVista Software Inc. |
5 | * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com> | 5 | * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com> |
6 | * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 6 | * Copyright (C) 2004-2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
7 | * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) | 7 | * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
@@ -300,6 +300,18 @@ static int __init vr41xx_pciu_init(void) | |||
300 | ioport_resource.end = IO_PORT_RESOURCE_END; | 300 | ioport_resource.end = IO_PORT_RESOURCE_END; |
301 | } | 301 | } |
302 | 302 | ||
303 | if (setup->master_io) { | ||
304 | void __iomem *io_map_base; | ||
305 | struct resource *res = vr41xx_pci_controller.io_resource; | ||
306 | master = setup->master_io; | ||
307 | io_map_base = ioremap(master->bus_base_address, | ||
308 | res->end - res->start + 1); | ||
309 | if (!io_map_base) | ||
310 | return -EBUSY; | ||
311 | |||
312 | vr41xx_pci_controller.io_map_base = (unsigned long)io_map_base; | ||
313 | } | ||
314 | |||
303 | register_pci_controller(&vr41xx_pci_controller); | 315 | register_pci_controller(&vr41xx_pci_controller); |
304 | 316 | ||
305 | return 0; | 317 | return 0; |