/* SPDX-License-Identifier: GPL-2.0-only */1/* Debugging macro include header2*3* Copyright (C) 1994-1999 Russell King4* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks5* Modified for ASM9260 by Oleksij Remepl <[email protected]>6*/78.macro addruart, rp, rv, tmp9ldr \rp, = CONFIG_DEBUG_UART_PHYS10ldr \rv, = CONFIG_DEBUG_UART_VIRT11.endm1213.macro waituarttxrdy,rd,rx14.endm1516.macro waituartcts,rd,rx17.endm1819.macro senduart,rd,rx20str \rd, [\rx, #0x50] @ TXDATA21.endm2223.macro busyuart,rd,rx241002: ldr \rd, [\rx, #0x60] @ STAT25tst \rd, #1 << 27 @ TXEMPTY26beq 1002b @ wait until transmit done27.endm282930