Path: blob/master/arch/arm/mach-clps711x/include/mach/debug-macro.S
17537 views
/* arch/arm/mach-clps711x/include/mach/debug-macro.S1*2* Debugging macro include header3*4* Copyright (C) 1994-1999 Russell King5* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*11*/1213#include <mach/hardware.h>14#include <asm/hardware/clps7111.h>1516.macro addruart, rp, rv17#ifndef CONFIG_DEBUG_CLPS711X_UART218mov \rp, #0x0000 @ UART119#else20mov \rp, #0x1000 @ UART221#endif22orr \rv, \rp, #CLPS7111_VIRT_BASE23orr \rp, \rp, #CLPS7111_PHYS_BASE24.endm2526.macro senduart,rd,rx27str \rd, [\rx, #0x0480] @ UARTDR28.endm2930.macro waituart,rd,rx311001: ldr \rd, [\rx, #0x0140] @ SYSFLGx32tst \rd, #1 << 11 @ UBUSYx33bne 1001b34.endm3536.macro busyuart,rd,rx37tst \rx, #0x1000 @ UART2 does not have CTS here38bne 1002f391001: ldr \rd, [\rx, #0x0140] @ SYSFLGx40tst \rd, #1 << 8 @ CTS41bne 1001b421002:43.endm44454647