aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-12-16 13:05:04 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-01-08 10:41:23 -0500
commit1f2ddd64da6e53365102d831aa9e0446b78f0300 (patch)
treea95e2e90d44a681f436dbce57964e6eb30a5d65f /arch
parent321ed164369bb5e4888eb24d70ebc64c232ffc31 (diff)
imx: provide helper macro to define IO_ADDRESS
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Russell King <linux@arm.linux.org.uk> Cc: Holger Schurig <hs4233@mail.mn-solutions.de> Cc: Dmitriy Taychenachev <dimichxp@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-mxc/include/mach/hardware.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h
index 78db75475f6..db14c56930a 100644
--- a/arch/arm/plat-mxc/include/mach/hardware.h
+++ b/arch/arm/plat-mxc/include/mach/hardware.h
@@ -22,6 +22,11 @@
22 22
23#include <asm/sizes.h> 23#include <asm/sizes.h>
24 24
25#define IMX_IO_ADDRESS(addr, module) \
26 ((void __force __iomem *) \
27 (((unsigned long)((addr) - (module ## _BASE_ADDR)) < module ## _SIZE) ?\
28 (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0))
29
25#ifdef CONFIG_ARCH_MX3 30#ifdef CONFIG_ARCH_MX3
26#include <mach/mx3x.h> 31#include <mach/mx3x.h>
27#include <mach/mx31.h> 32#include <mach/mx31.h>