diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-03-04 23:03:33 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-03-06 22:34:43 -0500 |
commit | c334bc150524f833db3c76a0aaf55fb5044444e1 (patch) | |
tree | a29acb80a05bdca36547b973229582481727ee24 /arch/arm/include/asm | |
parent | 41e32c906054be3a600cdeb69eb70350066e0a91 (diff) |
ARM: make mach/io.h include optional
Add a kconfig option NEED_MACH_IO_H to conditionally include mach/io.h.
Basing this on CONFIG_PCI and CONFIG_ISA doesn't quite work. Most ISA
platforms don't need mach/io.h, but ebsa110 does. Most PCI platforms need
mach/io.h for now, but ks8695 doesn't which means i/o accesses are broken.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 6f7555ddab8c..233034e46ec6 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h | |||
@@ -114,7 +114,12 @@ static inline void __iomem *__typesafe_io(unsigned long addr) | |||
114 | /* | 114 | /* |
115 | * Now, pick up the machine-defined IO definitions | 115 | * Now, pick up the machine-defined IO definitions |
116 | */ | 116 | */ |
117 | #ifdef CONFIG_NEED_MACH_IO_H | ||
117 | #include <mach/io.h> | 118 | #include <mach/io.h> |
119 | #else | ||
120 | #define __io(a) ({ (void)(a); __typesafe_io(0); }) | ||
121 | #define __mem_pci(a) (a) | ||
122 | #endif | ||
118 | 123 | ||
119 | /* | 124 | /* |
120 | * This is the limit of PC card/PCI/ISA IO space, which is by default | 125 | * This is the limit of PC card/PCI/ISA IO space, which is by default |