]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arm/mach-tegra/include/mach/debug-macro.S
Merge branch 'for-3.4/fixes-for-io-cleanup' of git://git.kernel.org/pub/scm/linux...
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-tegra / include / mach / debug-macro.S
1 /*
2 * arch/arm/mach-tegra/include/mach/debug-macro.S
3 *
4 * Copyright (C) 2010 Google, Inc.
5 *
6 * Author:
7 * Colin Cross <ccross@google.com>
8 * Erik Gilling <konkers@google.com>
9 *
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.
13 *
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.
18 *
19 */
20
21 #include <mach/iomap.h>
22
23 .macro addruart, rp, rv, tmp
24 ldr \rp, =IO_APB_PHYS @ physical
25 ldr \rv, =IO_APB_VIRT @ virtual
26 orr \rp, \rp, #(TEGRA_DEBUG_UART_BASE & 0xFF)
27 orr \rp, \rp, #(TEGRA_DEBUG_UART_BASE & 0xFF00)
28 orr \rv, \rv, #(TEGRA_DEBUG_UART_BASE & 0xFF)
29 orr \rv, \rv, #(TEGRA_DEBUG_UART_BASE & 0xFF00)
30 .endm
31
32 #define UART_SHIFT 2
33 #include <asm/hardware/debug-8250.S>
34