diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-06-11 10:03:58 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-06-16 21:41:35 -0400 |
commit | 9b0f7e399238c61f28539daeb65d72a8d7f91966 (patch) | |
tree | 9472c9c5efbad71279377b1e2637eb6982d0cecd /arch/arm/Kconfig | |
parent | 7dea9e73614ba37914b8867dd0fef49193b22b8d (diff) |
arm: versatile: fix and enable PCI I/O space
With commit 4d5fc58dbe34b (ARM: remove bunch of now unused
mach/io.h files), the I/O space setup was completely broken on
versatile. This patch fixes that and prepares for further
I/O space clean-up.
I/O space handling on the versatile platform is currently
broken in multiple ways. Most importantly, the ports do
not get mapped into the virtual address space at all.
Also, there is some amount of confusion between PCI I/O
space and other statically mapped MMIO registers in the
platform code:
* The __io_address() macro that is used to access the
platform register maps to the same __io macro that gets
used for I/O space.
* The IO_SPACE_LIMIT is set to a value that is much larger
than the total available space.
* The I/O resource of the PCI bus is set to the physical
address of the mapping, which is way outside of the
actual I/O space limit as well as the address range that
gets decoded by traditional PCI cards.
* No attempt is made to stay outside of the ISA port range
that some device drivers try access.
* No resource gets requested as a child of ioport_resource,
but an IORESOURCE_IO type mapping gets requested
as a child of iomem_resource.
This patch attempts to correct all of the above. This makes
it possible to use virtio-pci based virtual devices as well
as actual PCI cards including those with legacy ISA port
ranges like VGA.
Some of the issues seem to be duplicated on other platforms.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[rob: update to 3.5-rc2 and io.h cleanup related changes]
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b649c5904a4f..567b4323c9e6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -294,6 +294,7 @@ config ARCH_VERSATILE | |||
294 | select ICST | 294 | select ICST |
295 | select GENERIC_CLOCKEVENTS | 295 | select GENERIC_CLOCKEVENTS |
296 | select ARCH_WANT_OPTIONAL_GPIOLIB | 296 | select ARCH_WANT_OPTIONAL_GPIOLIB |
297 | select NEED_MACH_IO_H if PCI | ||
297 | select PLAT_VERSATILE | 298 | select PLAT_VERSATILE |
298 | select PLAT_VERSATILE_CLCD | 299 | select PLAT_VERSATILE_CLCD |
299 | select PLAT_VERSATILE_FPGA_IRQ | 300 | select PLAT_VERSATILE_FPGA_IRQ |