diff options
Diffstat (limited to 'arch/arm/mach-versatile/pci.c')
-rw-r--r-- | arch/arm/mach-versatile/pci.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-versatile/pci.c b/arch/arm/mach-versatile/pci.c index e95bf84cc837..2f84f4094f13 100644 --- a/arch/arm/mach-versatile/pci.c +++ b/arch/arm/mach-versatile/pci.c | |||
@@ -169,13 +169,6 @@ static struct pci_ops pci_versatile_ops = { | |||
169 | .write = versatile_write_config, | 169 | .write = versatile_write_config, |
170 | }; | 170 | }; |
171 | 171 | ||
172 | static struct resource io_port = { | ||
173 | .name = "PCI", | ||
174 | .start = 0, | ||
175 | .end = IO_SPACE_LIMIT, | ||
176 | .flags = IORESOURCE_IO, | ||
177 | }; | ||
178 | |||
179 | static struct resource io_mem = { | 172 | static struct resource io_mem = { |
180 | .name = "PCI I/O space", | 173 | .name = "PCI I/O space", |
181 | .start = VERSATILE_PCI_MEM_BASE0, | 174 | .start = VERSATILE_PCI_MEM_BASE0, |
@@ -207,12 +200,6 @@ static int __init pci_versatile_setup_resources(struct pci_sys_data *sys) | |||
207 | "memory region (%d)\n", ret); | 200 | "memory region (%d)\n", ret); |
208 | goto out; | 201 | goto out; |
209 | } | 202 | } |
210 | ret = request_resource(&ioport_resource, &io_port); | ||
211 | if (ret) { | ||
212 | printk(KERN_ERR "PCI: unable to allocate I/O " | ||
213 | "port region (%d)\n", ret); | ||
214 | goto out; | ||
215 | } | ||
216 | ret = request_resource(&iomem_resource, &non_mem); | 203 | ret = request_resource(&iomem_resource, &non_mem); |
217 | if (ret) { | 204 | if (ret) { |
218 | printk(KERN_ERR "PCI: unable to allocate non-prefetchable " | 205 | printk(KERN_ERR "PCI: unable to allocate non-prefetchable " |
@@ -227,11 +214,9 @@ static int __init pci_versatile_setup_resources(struct pci_sys_data *sys) | |||
227 | } | 214 | } |
228 | 215 | ||
229 | /* | 216 | /* |
230 | * the IO resource for this bus | ||
231 | * the mem resource for this bus | 217 | * the mem resource for this bus |
232 | * the prefetch mem resource for this bus | 218 | * the prefetch mem resource for this bus |
233 | */ | 219 | */ |
234 | pci_add_resource_offset(&sys->resources, &io_port, sys->io_offset); | ||
235 | pci_add_resource_offset(&sys->resources, &non_mem, sys->mem_offset); | 220 | pci_add_resource_offset(&sys->resources, &non_mem, sys->mem_offset); |
236 | pci_add_resource_offset(&sys->resources, &pre_mem, sys->mem_offset); | 221 | pci_add_resource_offset(&sys->resources, &pre_mem, sys->mem_offset); |
237 | 222 | ||
@@ -260,9 +245,11 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys) | |||
260 | goto out; | 245 | goto out; |
261 | } | 246 | } |
262 | 247 | ||
248 | ret = pci_ioremap_io(0, VERSATILE_PCI_MEM_BASE0); | ||
249 | if (ret) | ||
250 | goto out; | ||
251 | |||
263 | if (nr == 0) { | 252 | if (nr == 0) { |
264 | sys->mem_offset = 0; | ||
265 | sys->io_offset = 0; | ||
266 | ret = pci_versatile_setup_resources(sys); | 253 | ret = pci_versatile_setup_resources(sys); |
267 | if (ret < 0) { | 254 | if (ret < 0) { |
268 | printk("pci_versatile_setup: resources... oops?\n"); | 255 | printk("pci_versatile_setup: resources... oops?\n"); |
@@ -319,7 +306,6 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys) | |||
319 | 306 | ||
320 | void __init pci_versatile_preinit(void) | 307 | void __init pci_versatile_preinit(void) |
321 | { | 308 | { |
322 | pcibios_min_io = 0x44000000; | ||
323 | pcibios_min_mem = 0x50000000; | 309 | pcibios_min_mem = 0x50000000; |
324 | 310 | ||
325 | __raw_writel(VERSATILE_PCI_MEM_BASE0 >> 28, PCI_IMAP0); | 311 | __raw_writel(VERSATILE_PCI_MEM_BASE0 >> 28, PCI_IMAP0); |