1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Debugging macro include header
4 * Copyright (C) 1994-1999 Russell King
5 * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
6 * Modified for ASM9260 by Oleksij Remepl <linux@rempel-privat.de>
9 .macro addruart, rp, rv, tmp
10 ldr \rp, = CONFIG_DEBUG_UART_PHYS
11 ldr \rv, = CONFIG_DEBUG_UART_VIRT
14 .macro waituarttxrdy,rd,rx
17 .macro waituartcts,rd,rx
21 str \rd, [\rx, #0x50] @ TXDATA
25 1002: ldr \rd, [\rx, #0x60] @ STAT
26 tst \rd, #1 << 27 @ TXEMPTY
27 beq 1002b @ wait until transmit done