1 /* arch/arm/mach-msm7200/include/mach/debug-macro.S
3 * Copyright (C) 2007 Google, Inc.
4 * Author: Brian Swetland <swetland@google.com>
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
19 #include <mach/hardware.h>
20 #include <mach/msm_iomap.h>
22 #ifdef CONFIG_MSM_DEBUG_UART
24 @ see if the MMU is enabled and select appropriate base address
25 mrc p15, 0, \rx, c1, c0
27 ldreq \rx, =MSM_DEBUG_UART_PHYS
28 ldrne \rx, =MSM_DEBUG_UART_BASE
33 strne \rd, [\rx, #0x0C]
38 1001: ldr \rd, [\rx, #0x08]