diff options
author | Hartley Sweeten <hartleys@visionengravers.com> | 2009-06-26 21:36:36 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-27 10:41:12 +0100 |
commit | 702b59e623c3ca80beaeab79ca5ede4ea23170e2 (patch) | |
tree | fc417ef59f27909acbb3df82958425ee6486a925 /arch/arm/mach-ep93xx/include/mach/io.h | |
parent | 28d0325ce6e0a52f53d8af687e6427fee59004d3 (diff) | |
download | op-kernel-dev-702b59e623c3ca80beaeab79ca5ede4ea23170e2.zip op-kernel-dev-702b59e623c3ca80beaeab79ca5ede4ea23170e2.tar.gz |
[ARM] 5573/1: ep93xx: ensure typesafe io
ARM: ep93xx: ensure typesafe io
For the ep93xx platform, all EP93XX_*_BASE defines are based
on virtual addresses. Ensure that all these defines are
properly typesafe for the __raw_{read/write}* macros.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx/include/mach/io.h')
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/io.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/io.h b/arch/arm/mach-ep93xx/include/mach/io.h index fd5f081..cebcc1c 100644 --- a/arch/arm/mach-ep93xx/include/mach/io.h +++ b/arch/arm/mach-ep93xx/include/mach/io.h @@ -1,8 +1,21 @@ /* * arch/arm/mach-ep93xx/include/mach/io.h */ +#ifndef __ASM_MACH_IO_H +#define __ASM_MACH_IO_H #define IO_SPACE_LIMIT 0xffffffff -#define __io(p) __typesafe_io(p) -#define __mem_pci(p) (p) +#define __io(p) __typesafe_io(p) +#define __mem_pci(p) (p) + +/* + * A typesafe __io() variation for variable initialisers + */ +#ifdef __ASSEMBLER__ +#define IOMEM(p) p +#else +#define IOMEM(p) ((void __iomem __force *)(p)) +#endif + +#endif /* __ASM_MACH_IO_H */ |