2 * arch/arm/mach-tegra/include/mach/debug-macro.S
4 * Copyright (C) 2010 Google, Inc.
7 * Colin Cross <ccross@google.com>
8 * Erik Gilling <konkers@google.com>
10 * This software is licensed under the terms of the GNU General Public
11 * License version 2, as published by the Free Software Foundation, and
12 * may be copied, distributed, and modified under those terms.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
22 #include <mach/iomap.h>
24 .macro addruart,rx, tmp
25 mrc p15, 0, \rx, c1, c0
26 tst \rx, #1 @ MMU enabled?
27 ldreq \rx, =IO_APB_PHYS @ physical
28 ldrne \rx, =IO_APB_VIRT @ virtual
29 ldr \tmp, =(TEGRA_DEBUG_UART_BASE & 0xFFFF)
34 #include <asm/hardware/debug-8250.S>