diff options
author | Tony Lindgren <tony@atomide.com> | 2010-05-20 14:37:23 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-05-20 14:37:23 -0400 |
commit | f6304f5804f228b6c2fea9e3dfac25c5b2db9b38 (patch) | |
tree | 362b9b6a3bd32b868e5917a32d448ac75c5854df /arch/arm/mach-integrator/include/mach/hardware.h | |
parent | 4fa73a1bf89ebea4eba8a9982b5f64d266d8b5e9 (diff) | |
parent | 6daa642d9b8ec762b3c5641cd5e5fa855a5405bf (diff) |
Merge branch 'omap4-i2c-init' into omap-for-linus
Diffstat (limited to 'arch/arm/mach-integrator/include/mach/hardware.h')
-rw-r--r-- | arch/arm/mach-integrator/include/mach/hardware.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/arm/mach-integrator/include/mach/hardware.h b/arch/arm/mach-integrator/include/mach/hardware.h index d795642fad2..8e26360ce9a 100644 --- a/arch/arm/mach-integrator/include/mach/hardware.h +++ b/arch/arm/mach-integrator/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 | * Where in virtual memory the IO devices (timers, system controllers | 28 | * Where in virtual memory the IO devices (timers, system controllers |
@@ -36,17 +35,19 @@ | |||
36 | #define PCIO_BASE PCI_IO_VADDR | 35 | #define PCIO_BASE PCI_IO_VADDR |
37 | #define PCIMEM_BASE PCI_MEMORY_VADDR | 36 | #define PCIMEM_BASE PCI_MEMORY_VADDR |
38 | 37 | ||
39 | #ifdef CONFIG_MMU | ||
40 | /* macro to get at IO space when running virtually */ | ||
41 | #define IO_ADDRESS(x) (((x) >> 4) + IO_BASE) | ||
42 | #else | ||
43 | #define IO_ADDRESS(x) (x) | ||
44 | #endif | ||
45 | |||
46 | #define pcibios_assign_all_busses() 1 | 38 | #define pcibios_assign_all_busses() 1 |
47 | 39 | ||
48 | #define PCIBIOS_MIN_IO 0x6000 | 40 | #define PCIBIOS_MIN_IO 0x6000 |
49 | #define PCIBIOS_MIN_MEM 0x00100000 | 41 | #define PCIBIOS_MIN_MEM 0x00100000 |
50 | 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)) | ||
51 | |||
51 | #endif | 52 | #endif |
52 | 53 | ||