blob: 0da1eb6253318dcd18c4c81eb896e865712041c1 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/* Debugging macro include header
3 *
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>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007 */
8
9 .macro addruart, rp, rv, tmp
10 ldr \rp, = CONFIG_DEBUG_UART_PHYS
11 ldr \rv, = CONFIG_DEBUG_UART_VIRT
12 .endm
13
14 .macro waituart,rd,rx
15 .endm
16
17 .macro senduart,rd,rx
18 str \rd, [\rx, #0x50] @ TXDATA
19 .endm
20
21 .macro busyuart,rd,rx
221002: ldr \rd, [\rx, #0x60] @ STAT
23 tst \rd, #1 << 27 @ TXEMPTY
24 beq 1002b @ wait until transmit done
25 .endm