1 /*******************************************************************************
2 * Copyright 2010 Broadcom Corporation. All rights reserved.
4 * @file arch/arm/mach-bcm215xx/include/mach/debug-macro.S
6 * Unless you and Broadcom execute a separate written software license agreement
7 * governing use of this software, this software is licensed to you under the
8 * terms of the GNU General Public License version 2, available at
9 * http://www.gnu.org/copyleft/gpl.html (the "GPL").
11 * Notwithstanding the above, under no circumstances may you combine this
12 * software in any way with any other Broadcom software provided under a license
13 * other than the GPL, without Broadcom's express prior written consent.
14 *******************************************************************************/
17 * Macros used for EARLY_PRINTK, in low-level UART debug console
19 #include <mach/io_map.h>
21 .macro addruart, rx, tmp
22 mrc p15, 0, \rx, c1, c0
23 tst \rx, #1 @ MMU enabled?
24 ldreq \rx, =PLAT_LLDEBUG_UART_PA @ MMU off, Physical
25 ldrne \rx, =PLAT_LLDEBUG_UART_VA @ MMU on, Virtual
28 #define UART_SHIFT PLAT_LLDEBUG_UART_SH
29 #include <asm/hardware/debug-8250.S>