Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 1 | /* arch/arm/mach-mmp/include/mach/debug-macro.S |
| 2 | * |
| 3 | * Debugging macro include header |
| 4 | * |
| 5 | * Copied from arch/arm/mach-pxa/include/mach/debug.S |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <mach/addr-map.h> |
| 13 | |
Nicolas Pitre | 639da5e | 2011-08-31 22:55:46 -0400 | [diff] [blame] | 14 | .macro addruart, rp, rv, tmp |
Jeremy Kerr | 0ea1293 | 2010-07-06 18:30:06 +0800 | [diff] [blame] | 15 | ldr \rp, =APB_PHYS_BASE @ physical |
| 16 | ldr \rv, =APB_VIRT_BASE @ virtual |
| 17 | orr \rp, \rp, #0x00017000 |
| 18 | orr \rv, \rv, #0x00017000 |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 19 | .endm |
| 20 | |
| 21 | #define UART_SHIFT 2 |
| 22 | #include <asm/hardware/debug-8250.S> |