diff options
Diffstat (limited to 'arch/arm/mach-ixp2000/include/mach/debug-macro.S')
-rw-r--r-- | arch/arm/mach-ixp2000/include/mach/debug-macro.S | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/arm/mach-ixp2000/include/mach/debug-macro.S b/arch/arm/mach-ixp2000/include/mach/debug-macro.S index 6a827681680..0ef533b2097 100644 --- a/arch/arm/mach-ixp2000/include/mach/debug-macro.S +++ b/arch/arm/mach-ixp2000/include/mach/debug-macro.S | |||
@@ -11,16 +11,14 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | .macro addruart, rx, tmp | 14 | .macro addruart, rp, rv |
15 | mrc p15, 0, \rx, c1, c0 | 15 | mov \rp, #0x00030000 |
16 | tst \rx, #1 @ MMU enabled? | ||
17 | moveq \rx, #0xc0000000 @ Physical base | ||
18 | movne \rx, #0xfe000000 @ virtual base | ||
19 | orrne \rx, \rx, #0x00f00000 | ||
20 | orr \rx, \rx, #0x00030000 | ||
21 | #ifdef __ARMEB__ | 16 | #ifdef __ARMEB__ |
22 | orr \rx, \rx, #0x00000003 | 17 | orr \rp, \rp, #0x00000003 |
23 | #endif | 18 | #endif |
19 | orr \rv, \rp, #0xfe000000 @ virtual base | ||
20 | orr \rv, \rv, #0x00f00000 | ||
21 | orr \rp, \rp, #0xc0000000 @ Physical base | ||
24 | .endm | 22 | .endm |
25 | 23 | ||
26 | #define UART_SHIFT 2 | 24 | #define UART_SHIFT 2 |