aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-u8500/include/mach/debug-macro.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-u8500/include/mach/debug-macro.S')
-rw-r--r--arch/arm/mach-u8500/include/mach/debug-macro.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-u8500/include/mach/debug-macro.S b/arch/arm/mach-u8500/include/mach/debug-macro.S
index e65bb09d07e..9cec503ff01 100644
--- a/arch/arm/mach-u8500/include/mach/debug-macro.S
+++ b/arch/arm/mach-u8500/include/mach/debug-macro.S
@@ -8,12 +8,13 @@
* published by the Free Software Foundation.
*
*/
+#include <mach/hardware.h>
+
.macro addruart,rx
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @MMU enabled?
- moveq \rx, #0x80000000 @MMU off, Physical address
- movne \rx, #0xF8000000 @MMU on, Virtual address
- orr \rx, \rx, #0x7000
+ ldreq \rx, =UX500_UART2_BASE @ no, physical address
+ ldrne \rx, =IO_ADDRESS(UX500_UART2_BASE) @ yes, virtual address
.endm
#include <asm/hardware/debug-pl01x.S>