mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
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>
This commit is contained in:
parent
321ed16436
commit
1f2ddd64da
@ -22,6 +22,11 @@
|
||||
|
||||
#include <asm/sizes.h>
|
||||
|
||||
#define IMX_IO_ADDRESS(addr, module) \
|
||||
((void __force __iomem *) \
|
||||
(((unsigned long)((addr) - (module ## _BASE_ADDR)) < module ## _SIZE) ?\
|
||||
(addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0))
|
||||
|
||||
#ifdef CONFIG_ARCH_MX3
|
||||
#include <mach/mx3x.h>
|
||||
#include <mach/mx31.h>
|
||||
|
Loading…
Reference in New Issue
Block a user