hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/include/debug/at91.S
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2003-2005 SAN People
34 *
45 * Debugging macro include header
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
106 */
117
128 #define AT91_DBGU_SR (0x14) /* Status Register */
....@@ -23,12 +19,15 @@
2319 strb \rd, [\rx, #(AT91_DBGU_THR)] @ Write to Transmitter Holding Register
2420 .endm
2521
26
- .macro waituart,rd,rx
22
+ .macro waituarttxrdy,rd,rx
2723 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] @ Read Status Register
2824 tst \rd, #AT91_DBGU_TXRDY @ DBGU_TXRDY = 1 when ready to transmit
2925 beq 1001b
3026 .endm
3127
28
+ .macro waituartcts,rd,rx
29
+ .endm
30
+
3231 .macro busyuart,rd,rx
3332 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] @ Read Status Register
3433 tst \rd, #AT91_DBGU_TXEMPTY @ DBGU_TXEMPTY = 1 when transmission complete