Path: blob/master/arch/arm/mach-msm/include/mach/debug-macro.S
17466 views
/* arch/arm/mach-msm7200/include/mach/debug-macro.S1*2* Copyright (C) 2007 Google, Inc.3* Author: Brian Swetland <[email protected]>4*5* This software is licensed under the terms of the GNU General Public6* License version 2, as published by the Free Software Foundation, and7* may be copied, distributed, and modified under those terms.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14*/15161718#include <mach/hardware.h>19#include <mach/msm_iomap.h>2021#if defined(CONFIG_HAS_MSM_DEBUG_UART_PHYS) && !defined(CONFIG_MSM_DEBUG_UART_NONE)22.macro addruart, rp, rv23ldr \rp, =MSM_DEBUG_UART_PHYS24ldr \rv, =MSM_DEBUG_UART_BASE25.endm2627.macro senduart,rd,rx28teq \rx, #029strne \rd, [\rx, #0x0C]30.endm3132.macro waituart,rd,rx33@ wait for TX_READY341001: ldr \rd, [\rx, #0x08]35tst \rd, #0x0436beq 1001b37.endm38#else39.macro addruart, rp, rv40mov \rv, #0xff00000041orr \rv, \rv, #0x00f0000042.endm4344.macro senduart,rd,rx45.endm4647.macro waituart,rd,rx48.endm49#endif5051.macro busyuart,rd,rx52.endm535455