summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mxs/include/mach/debug-macro.S
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2010-12-20 17:57:42 +0300
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-12-20 19:29:23 +0300
commit41fa75bc09d31c47d6606233b60f595524c28cd4 (patch)
treeaad3cefe310728937792a5ce6dfca8cb41fef2e6 /arch/arm/mach-mxs/include/mach/debug-macro.S
parent289569f902dc70fc42b8c7cab627f9d615a720f1 (diff)
downloadlinux-41fa75bc09d31c47d6606233b60f595524c28cd4.tar.xz
ARM: mxs: Add low-level debug UART support
- DEBUG_LL support, which is incompatible with multi-soc MXS image because of different DUART base address on MX23 and MX28 - uncompress message support Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/include/mach/debug-macro.S')
-rw-r--r--arch/arm/mach-mxs/include/mach/debug-macro.S38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/debug-macro.S b/arch/arm/mach-mxs/include/mach/debug-macro.S
new file mode 100644
index 000000000000..79650a1ad78d
--- /dev/null
+++ b/arch/arm/mach-mxs/include/mach/debug-macro.S
@@ -0,0 +1,38 @@
+/* arch/arm/mach-mxs/include/mach/debug-macro.S
+ *
+ * Debugging macro include header
+ *
+ * Copyright (C) 1994-1999 Russell King
+ * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#include <mach/mx23.h>
+#include <mach/mx28.h>
+
+#ifdef CONFIG_SOC_IMX23
+#ifdef UART_PADDR
+#error "CONFIG_DEBUG_LL is incompatible with multiple archs"
+#endif
+#define UART_PADDR MX23_DUART_BASE_ADDR
+#endif
+
+#ifdef CONFIG_SOC_IMX28
+#ifdef UART_PADDR
+#error "CONFIG_DEBUG_LL is incompatible with multiple archs"
+#endif
+#define UART_PADDR MX28_DUART_BASE_ADDR
+#endif
+
+#define UART_VADDR MXS_IO_ADDRESS(UART_PADDR)
+
+ .macro addruart, rp, rv
+ ldr \rp, =UART_PADDR @ physical
+ ldr \rv, =UART_VADDR @ virtual
+ .endm
+
+#include <asm/hardware/debug-pl01x.S>