.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Broadcom BCM63xx low-level UART debug |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014 Broadcom Corporation |
---|
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 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #include <linux/serial_bcm63xx.h> |
---|
.. | .. |
---|
20 | 17 | strb \rd, [\rx, #UART_FIFO_REG] |
---|
21 | 18 | .endm |
---|
22 | 19 | |
---|
23 | | - .macro waituart, rd, rx |
---|
| 20 | + .macro waituarttxrdy, rd, rx |
---|
24 | 21 | 1001: ldr \rd, [\rx, #UART_IR_REG] |
---|
25 | 22 | tst \rd, #(1 << UART_IR_TXEMPTY) |
---|
26 | 23 | beq 1001b |
---|
27 | 24 | .endm |
---|
28 | 25 | |
---|
| 26 | + .macro waituartcts, rd, rx |
---|
| 27 | + .endm |
---|
| 28 | + |
---|
29 | 29 | .macro busyuart, rd, rx |
---|
30 | 30 | 1002: ldr \rd, [\rx, #UART_IR_REG] |
---|
31 | 31 | tst \rd, #(1 << UART_IR_TXTRESH) |
---|