linux-kernel-test/arch/arm/mach-kirkwood/include/mach
Lennert Buytenhek 35f029e251 [ARM] kirkwood: fix PCI I/O port assignment
Instead of allocating PCI devices I/O port bus addresses from the
000xxxxx I/O port range as intended, due to a bus versus physical
address mixup, the Kirkwood PCIe handling code inadvertently
allocated I/O port bus addresses from the f20xxxxx address range
(which is the physical address range of the PCIe I/O mapping window),
but then direct all I/O port accesses to bus addresses 000xxxxx,
which would then not be decoded at all.

Fix this by setting the base address of the PCIe I/O space struct
resource to KIRKWOOD_PCIE_IO_BUS_BASE instead of the incorrect
KIRKWOOD_PCIE_IO_PHYS_BASE, and fix up __io() to expect addresses
offsetted by the former instead of the latter.

(The suggested fix of directing I/O port accesses from the host to
bus addresses f20xxxxx instead has the problem that assigning full
32bit I/O port bus addresses (f20xxxxx) doesn't work on all PCI
devices, as not all PCI devices implement full 32 bit BAR registers
for I/O ports.  We should really try to allocate I/O port bus
addresses that fit in 16 bits.)

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
2009-11-07 20:14:21 -05:00
..
bridge-regs.h [ARM] Kirkwood: Add the watchdog timer as a platform device. 2009-06-08 13:04:59 -04:00
debug-macro.S [ARM] 5460/1: Orion: reduce namespace pollution 2009-04-23 23:25:41 +01:00
entry-macro.S [ARM] 5460/1: Orion: reduce namespace pollution 2009-04-23 23:25:41 +01:00
gpio.h [ARM] Kirkwood: implement GPIO and GPIO interrupt support 2008-12-20 12:26:57 -05:00
hardware.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
io.h [ARM] kirkwood: fix PCI I/O port assignment 2009-11-07 20:14:21 -05:00
irqs.h [ARM] Kirkwood: implement GPIO and GPIO interrupt support 2008-12-20 12:26:57 -05:00
kirkwood.h [ARM] Kirkwood: Add support for 6281-A1 2009-08-10 18:03:59 -04:00
memory.h [ARM] remove a common set of __virt_to_bus definitions 2008-11-28 15:36:49 +00:00
system.h [ARM] 5460/1: Orion: reduce namespace pollution 2009-04-23 23:25:41 +01:00
timex.h [ARM] Kirkwood: prepare for runtime-determined timer tick rate 2008-09-25 16:27:21 -04:00
uncompress.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
vmalloc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00