1 /* linux/arch/arm/mach-sc8800g/include/mach/debug-macro.S
3 * Copyright (C) 2010 Spreadtrum
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #include <asm/arch/sc8810_reg_base.h>
20 @ see if the MMU is enabled and select appropriate base address
21 mrc p15, 0, r3, c1, c0
23 @ldreq \rx, =SPRD_SERIAL1_PHYS
24 ldrne r3, =ARM_UART1_BASE
36 1: ldr r2, [r3, #0x0C]
46 2: ldr r2, [r3, #0x0C]