Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Debugging macro include header |
| 3 | * |
| 4 | * Copyright (C) 2009 ST-Ericsson |
| 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 | * |
| 10 | */ |
Rabin Vincent | 59778fb | 2010-02-12 06:23:07 +0100 | [diff] [blame] | 11 | #include <mach/hardware.h> |
| 12 | |
Tony Lindgren | 4e6d488 | 2010-02-01 23:26:53 +0100 | [diff] [blame] | 13 | .macro addruart, rx, tmp |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 14 | mrc p15, 0, \rx, c1, c0 |
Rabin Vincent | 59778fb | 2010-02-12 06:23:07 +0100 | [diff] [blame] | 15 | tst \rx, #1 @ MMU enabled? |
| 16 | ldreq \rx, =U8500_UART2_BASE @ no, physical address |
| 17 | ldrne \rx, =IO_ADDRESS(U8500_UART2_BASE) @ yes, virtual address |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 18 | .endm |
| 19 | |
| 20 | #include <asm/hardware/debug-pl01x.S> |