Path: blob/master/arch/arm/mach-h720x/include/mach/debug-macro.S
17531 views
/* arch/arm/mach-h720x/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>1415.equ io_virt, IO_VIRT16.equ io_phys, IO_PHYS1718.macro addruart, rp, rv19mov \rp, #0x00020000 @ UART120add \rv, \rp, #io_virt @ virtual address21add \rp, \rp, #io_phys @ physical base address22.endm2324.macro senduart,rd,rx25str \rd, [\rx, #0x0] @ UARTDR2627.endm2829.macro waituart,rd,rx301001: ldr \rd, [\rx, #0x18] @ UARTFLG31tst \rd, #1 << 5 @ UARTFLGUTXFF - 1 when full32bne 1001b33.endm3435.macro busyuart,rd,rx361001: ldr \rd, [\rx, #0x18] @ UARTFLG37tst \rd, #1 << 3 @ UARTFLGUBUSY - 1 when busy38bne 1001b39.endm404142