You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user