1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) 2003-2005 SAN People 4 * 5 * Debugging macro include header 6 */ 7 8 #define AT91_DBGU_SR (0x14) /* Sta 9 #define AT91_DBGU_THR (0x1c) /* Tra 10 #define AT91_DBGU_TXRDY (1 << 1) 11 #define AT91_DBGU_TXEMPTY (1 << 9) 12 13 .macro addruart, rp, rv, tmp 14 ldr \rp, =CONFIG_DEBUG_UART_PHYS 15 ldr \rv, =CONFIG_DEBUG_UART_VIRT 16 .endm 17 18 .macro senduart,rd,rx 19 strb \rd, [\rx, #(AT91_DBGU_THR)] 20 .endm 21 22 .macro waituarttxrdy,rd,rx 23 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] 24 tst \rd, #AT91_DBGU_TXRDY 25 beq 1001b 26 .endm 27 28 .macro waituartcts,rd,rx 29 .endm 30 31 .macro busyuart,rd,rx 32 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] 33 tst \rd, #AT91_DBGU_TXEMPTY 34 beq 1001b 35 .endm 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.