[PATCH 2/2] mx25: fix build when DEBUG_LL is enabled

Baruch Siach baruch at tkos.co.il
Tue Mar 9 05:12:05 EST 2010


From: Alex Greshgorin <alexg at orex-cr.com>

Commit "imx25: redefine MX25_IO_ADDRESS using IMX_IO_ADDRESS" removed the
MX25_AIPS1_IO_ADDRESS macro which is used in debug-macro.S. Reintroduce this
macro.

Signed-off-by: Alex Greshgorin <alexg at orex-cr.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 arch/arm/plat-mxc/include/mach/mx25.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-mxc/include/mach/mx25.h b/arch/arm/plat-mxc/include/mach/mx25.h
index 4eb6e33..e2e35db 100644
--- a/arch/arm/plat-mxc/include/mach/mx25.h
+++ b/arch/arm/plat-mxc/include/mach/mx25.h
@@ -22,6 +22,10 @@
 #define MX25_GPIO3_BASE_ADDR_VIRT	(MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000)
 #define MX25_GPIO4_BASE_ADDR_VIRT	(MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000)
 
+/* define macro needed for debug-macro.S */
+#define MX25_AIPS1_IO_ADDRESS(x)	\
+	(((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT)
+
 #define MX25_IO_ADDRESS(x) (					\
 	IMX_IO_ADDRESS(x, MX25_AIPS1) ?:			\
 	IMX_IO_ADDRESS(x, MX25_AIPS2) ?:			\
-- 
1.7.0




More information about the linux-arm-kernel mailing list