Path: blob/master/arch/arm/mach-l7200/include/mach/debug-macro.S
15112 views
/* arch/arm/mach-l7200/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.equ io_virt, IO_BASE14.equ io_phys, IO_START1516.macro addruart, rp, rv17mov \rp, #0x00044000 @ UART118@ mov \rp, #0x00045000 @ UART219add \rv, \rp, #io_virt @ virtual address20add \rp, \rp, #io_phys @ physical base address21.endm2223.macro senduart,rd,rx24str \rd, [\rx, #0x0] @ UARTDR25.endm2627.macro waituart,rd,rx281001: ldr \rd, [\rx, #0x18] @ UARTFLG29tst \rd, #1 << 5 @ UARTFLGUTXFF - 1 when full30bne 1001b31.endm3233.macro busyuart,rd,rx341001: ldr \rd, [\rx, #0x18] @ UARTFLG35tst \rd, #1 << 3 @ UARTFLGUBUSY - 1 when busy36bne 1001b37.endm383940