diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-14 14:59:37 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-04-29 13:04:15 -0400 |
commit | a285edcf18b8838814d645c7e411a337a825236e (patch) | |
tree | ce13257ff0d6da7896088732bba59e3a2ebe4658 /arch/arm/mach-versatile | |
parent | 28d7f4ec98a8edb029ef24c1ee4af6a1ccbc9633 (diff) |
ARM: Fix Versatile&Integrator includes to behave in the same way as Realview
Realview doesn't include mach/platform.h in mach/hardware.h, so
make versatile behave in the same way. Also, move the definition
of __io_address() into mach/hardware.h, just like Realview.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r-- | arch/arm/mach-versatile/core.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-versatile/include/mach/entry-macro.S | 1 | ||||
-rw-r--r-- | arch/arm/mach-versatile/include/mach/hardware.h | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 9ddb49b1cb71..b77bc407b77d 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -35,7 +35,6 @@ | |||
35 | 35 | ||
36 | #include <asm/clkdev.h> | 36 | #include <asm/clkdev.h> |
37 | #include <asm/system.h> | 37 | #include <asm/system.h> |
38 | #include <mach/hardware.h> | ||
39 | #include <asm/irq.h> | 38 | #include <asm/irq.h> |
40 | #include <asm/leds.h> | 39 | #include <asm/leds.h> |
41 | #include <asm/hardware/arm_timer.h> | 40 | #include <asm/hardware/arm_timer.h> |
@@ -48,6 +47,8 @@ | |||
48 | #include <asm/mach/irq.h> | 47 | #include <asm/mach/irq.h> |
49 | #include <asm/mach/time.h> | 48 | #include <asm/mach/time.h> |
50 | #include <asm/mach/map.h> | 49 | #include <asm/mach/map.h> |
50 | #include <mach/hardware.h> | ||
51 | #include <mach/platform.h> | ||
51 | 52 | ||
52 | #include "core.h" | 53 | #include "core.h" |
53 | #include "clock.h" | 54 | #include "clock.h" |
@@ -58,7 +59,6 @@ | |||
58 | * | 59 | * |
59 | * Setup a VA for the Versatile Vectored Interrupt Controller. | 60 | * Setup a VA for the Versatile Vectored Interrupt Controller. |
60 | */ | 61 | */ |
61 | #define __io_address(n) __io(IO_ADDRESS(n)) | ||
62 | #define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE) | 62 | #define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE) |
63 | #define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE) | 63 | #define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE) |
64 | 64 | ||
diff --git a/arch/arm/mach-versatile/include/mach/entry-macro.S b/arch/arm/mach-versatile/include/mach/entry-macro.S index 8c8020980585..e6f7c1663160 100644 --- a/arch/arm/mach-versatile/include/mach/entry-macro.S +++ b/arch/arm/mach-versatile/include/mach/entry-macro.S | |||
@@ -8,6 +8,7 @@ | |||
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | #include <mach/hardware.h> | 10 | #include <mach/hardware.h> |
11 | #include <mach/platform.h> | ||
11 | #include <asm/hardware/vic.h> | 12 | #include <asm/hardware/vic.h> |
12 | 13 | ||
13 | .macro disable_fiq | 14 | .macro disable_fiq |
diff --git a/arch/arm/mach-versatile/include/mach/hardware.h b/arch/arm/mach-versatile/include/mach/hardware.h index 7aa906c93154..4f8f99aac938 100644 --- a/arch/arm/mach-versatile/include/mach/hardware.h +++ b/arch/arm/mach-versatile/include/mach/hardware.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #define __ASM_ARCH_HARDWARE_H | 23 | #define __ASM_ARCH_HARDWARE_H |
24 | 24 | ||
25 | #include <asm/sizes.h> | 25 | #include <asm/sizes.h> |
26 | #include <mach/platform.h> | ||
27 | 26 | ||
28 | /* | 27 | /* |
29 | * PCI space virtual addresses | 28 | * PCI space virtual addresses |
@@ -49,4 +48,6 @@ | |||
49 | /* macro to get at IO space when running virtually */ | 48 | /* macro to get at IO space when running virtually */ |
50 | #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000) | 49 | #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000) |
51 | 50 | ||
51 | #define __io_address(n) __io(IO_ADDRESS(n)) | ||
52 | |||
52 | #endif | 53 | #endif |