aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/include/mach/hardware.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/hardware.h')
-rw-r--r--arch/arm/plat-mxc/include/mach/hardware.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h
index a599f01f8b92..ca06a686446f 100644
--- a/arch/arm/plat-mxc/include/mach/hardware.h
+++ b/arch/arm/plat-mxc/include/mach/hardware.h
@@ -28,6 +28,9 @@
28#define IOMEM(addr) ((void __force __iomem *)(addr)) 28#define IOMEM(addr) ((void __force __iomem *)(addr))
29#endif 29#endif
30 30
31#define addr_in_module(addr, mod) \
32 ((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE)
33
31#define IMX_IO_P2V_MODULE(addr, module) \ 34#define IMX_IO_P2V_MODULE(addr, module) \
32 (((addr) - module ## _BASE_ADDR) < module ## _SIZE ? \ 35 (((addr) - module ## _BASE_ADDR) < module ## _SIZE ? \
33 (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0) 36 (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0)