arm: return both physical and virtual addresses from addruart
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-orion5x / include / mach / debug-macro.S
blob5e3bf5b68aecae6da23e23fdd4f204a3602e991d
1 /*
2  * arch/arm/mach-orion5x/include/mach/debug-macro.S
3  *
4  * Debugging macro include header
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9 */
11 #include <mach/orion5x.h>
13         .macro  addruart, rp, rv
14         ldr     \rp, =ORION5X_REGS_PHYS_BASE
15         ldr     \rv, =ORION5X_REGS_VIRT_BASE
16         orr     \rp, \rp, #0x00012000
17         orr     \rv, \rv, #0x00012000
18         .endm
20 #define UART_SHIFT      2
21 #include <asm/hardware/debug-8250.S>