diff options
Diffstat (limited to 'arch/arm/mach-clps711x')
-rw-r--r-- | arch/arm/mach-clps711x/include/mach/debug-macro.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/mach-clps711x/include/mach/debug-macro.S b/arch/arm/mach-clps711x/include/mach/debug-macro.S index 072cc6b61ba3..507c6873b7ee 100644 --- a/arch/arm/mach-clps711x/include/mach/debug-macro.S +++ b/arch/arm/mach-clps711x/include/mach/debug-macro.S | |||
@@ -14,16 +14,14 @@ | |||
14 | #include <mach/hardware.h> | 14 | #include <mach/hardware.h> |
15 | #include <asm/hardware/clps7111.h> | 15 | #include <asm/hardware/clps7111.h> |
16 | 16 | ||
17 | .macro addruart, rx, tmp | 17 | .macro addruart, rp, rv |
18 | mrc p15, 0, \rx, c1, c0 | ||
19 | tst \rx, #1 @ MMU enabled? | ||
20 | moveq \rx, #CLPS7111_PHYS_BASE | ||
21 | movne \rx, #CLPS7111_VIRT_BASE | ||
22 | #ifndef CONFIG_DEBUG_CLPS711X_UART2 | 18 | #ifndef CONFIG_DEBUG_CLPS711X_UART2 |
23 | add \rx, \rx, #0x0000 @ UART1 | 19 | mov \rp, #0x0000 @ UART1 |
24 | #else | 20 | #else |
25 | add \rx, \rx, #0x1000 @ UART2 | 21 | mov \rp, #0x1000 @ UART2 |
26 | #endif | 22 | #endif |
23 | orr \rv, \rp, #CLPS7111_VIRT_BASE | ||
24 | orr \rp, \rp, #CLPS7111_PHYS_BASE | ||
27 | .endm | 25 | .endm |
28 | 26 | ||
29 | .macro senduart,rd,rx | 27 | .macro senduart,rd,rx |