hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/include/debug/zynq.S
....@@ -1,16 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Debugging macro include header
34 *
45 * Copyright (C) 2011 Xilinx
5
- *
6
- * This software is licensed under the terms of the GNU General Public
7
- * License version 2, as published by the Free Software Foundation, and
8
- * may be copied, distributed, and modified under those terms.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 */
157 #define UART_CR_OFFSET 0x00 /* Control Register [8:0] */
168 #define UART_SR_OFFSET 0x2C /* Channel Status [11:0] */
....@@ -41,7 +33,10 @@
4133 strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
4234 .endm
4335
44
- .macro waituart,rd,rx
36
+ .macro waituartcts,rd,rx
37
+ .endm
38
+
39
+ .macro waituarttxrdy,rd,rx
4540 1001: ldr \rd, [\rx, #UART_SR_OFFSET]
4641 ARM_BE8( rev \rd, \rd )
4742 tst \rd, #UART_SR_TXEMPTY