]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/arm/mach-ux500/include/mach/debug-macro.S
arm: return both physical and virtual addresses from addruart
[net-next-2.6.git] / arch / arm / mach-ux500 / include / mach / debug-macro.S
CommitLineData
aa44ef4d
SK
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 */
59778fb6
RV
11#include <mach/hardware.h>
12
39a982b4
RV
13#if CONFIG_UX500_DEBUG_UART > 2
14#error Invalid Ux500 debug UART
15#endif
16
17#define __UX500_UART(n) UX500_UART##n##_BASE
18#define UX500_UART(n) __UX500_UART(n)
19#define UART_BASE UX500_UART(CONFIG_UX500_DEBUG_UART)
20
0ea12930
JK
21 .macro addruart, rp, rv
22 ldr \rp, =UART_BASE @ no, physical address
23 ldr \rv, =IO_ADDRESS(UART_BASE) @ yes, virtual address
aa44ef4d
SK
24 .endm
25
26#include <asm/hardware/debug-pl01x.S>