aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-integrator
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-17 15:23:57 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 04:35:28 -0400
commit7d60a044c8226d86fa93c2cf90ccdb97e3ba28fa (patch)
treeb4457af41eb2d1141a448f7ad0e72b059b8f08eb /arch/arm/mach-integrator
parentda7ba956c84d3c85c5ec619af794a6ca0ee3faae (diff)
ARM: Integrator: allow IO_ADDRESS() to be used for register addresses
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r--arch/arm/mach-integrator/include/mach/hardware.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/include/mach/hardware.h b/arch/arm/mach-integrator/include/mach/hardware.h
index d44af7209b48..8e26360ce9a3 100644
--- a/arch/arm/mach-integrator/include/mach/hardware.h
+++ b/arch/arm/mach-integrator/include/mach/hardware.h
@@ -35,18 +35,18 @@
35#define PCIO_BASE PCI_IO_VADDR 35#define PCIO_BASE PCI_IO_VADDR
36#define PCIMEM_BASE PCI_MEMORY_VADDR 36#define PCIMEM_BASE PCI_MEMORY_VADDR
37 37
38#ifdef CONFIG_MMU
39/* macro to get at IO space when running virtually */
40#define IO_ADDRESS(x) (((x) >> 4) + IO_BASE)
41#else
42#define IO_ADDRESS(x) (x)
43#endif
44
45#define pcibios_assign_all_busses() 1 38#define pcibios_assign_all_busses() 1
46 39
47#define PCIBIOS_MIN_IO 0x6000 40#define PCIBIOS_MIN_IO 0x6000
48#define PCIBIOS_MIN_MEM 0x00100000 41#define PCIBIOS_MIN_MEM 0x00100000
49 42
43/* macro to get at IO space when running virtually */
44#ifdef CONFIG_MMU
45#define IO_ADDRESS(x) (((x) & 0x000fffff) | (((x) >> 4) & 0x0ff00000) | IO_BASE)
46#else
47#define IO_ADDRESS(x) (x)
48#endif
49
50#define __io_address(n) ((void __iomem *)IO_ADDRESS(n)) 50#define __io_address(n) ((void __iomem *)IO_ADDRESS(n))
51 51
52#endif 52#endif