diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-10-25 05:40:30 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 02:58:08 -0500 |
commit | f5d7a13b18706c3328c6aac3bf782a13cabf255a (patch) | |
tree | a8d10eb1e6eadb98557970fb1a5d47f992b0cd95 /arch/arm/plat-mxc/include/mach/mxc91231.h | |
parent | 9651b7db59893e796dfdd170485543b9863be9d8 (diff) |
ARM: imx: refactor the io mapping macro
This makes it more assembler friendly and allows it to be used in situation
that need an unsigned long and not a pointer. Also the naming is
clearer. IOMEM is introduced without IMX_ prefix as it is used this way
in more than one ARM subarch and it might become globally available
soon.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/mxc91231.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mxc91231.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mxc91231.h b/arch/arm/plat-mxc/include/mach/mxc91231.h index 0ca3101ebf3..49e5e25000f 100644 --- a/arch/arm/plat-mxc/include/mach/mxc91231.h +++ b/arch/arm/plat-mxc/include/mach/mxc91231.h | |||
@@ -187,15 +187,16 @@ | |||
187 | * it returns 0. | 187 | * it returns 0. |
188 | */ | 188 | */ |
189 | 189 | ||
190 | #define MXC91231_IO_ADDRESS(x) ( \ | 190 | #define MXC91231_IO_P2V(x) ( \ |
191 | IMX_IO_ADDRESS(x, MXC91231_L2CC) ?: \ | 191 | IMX_IO_P2V_MODULE(x, MXC91231_L2CC) ?: \ |
192 | IMX_IO_ADDRESS(x, MXC91231_X_MEMC) ?: \ | 192 | IMX_IO_P2V_MODULE(x, MXC91231_X_MEMC) ?: \ |
193 | IMX_IO_ADDRESS(x, MXC91231_ROMP) ?: \ | 193 | IMX_IO_P2V_MODULE(x, MXC91231_ROMP) ?: \ |
194 | IMX_IO_ADDRESS(x, MXC91231_AVIC) ?: \ | 194 | IMX_IO_P2V_MODULE(x, MXC91231_AVIC) ?: \ |
195 | IMX_IO_ADDRESS(x, MXC91231_AIPS1) ?: \ | 195 | IMX_IO_P2V_MODULE(x, MXC91231_AIPS1) ?: \ |
196 | IMX_IO_ADDRESS(x, MXC91231_SPBA0) ?: \ | 196 | IMX_IO_P2V_MODULE(x, MXC91231_SPBA0) ?: \ |
197 | IMX_IO_ADDRESS(x, MXC91231_SPBA1) ?: \ | 197 | IMX_IO_P2V_MODULE(x, MXC91231_SPBA1) ?: \ |
198 | IMX_IO_ADDRESS(x, MXC91231_AIPS2)) | 198 | IMX_IO_P2V_MODULE(x, MXC91231_AIPS2)) |
199 | #define MXC91231_IO_ADDRESS(x) IOMEM(MXC91231_IO_P2V(x)) | ||
199 | 200 | ||
200 | /* | 201 | /* |
201 | * Interrupt numbers | 202 | * Interrupt numbers |