.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2013 Pengutronix |
---|
3 | 4 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | 5 | */ |
---|
9 | 6 | |
---|
10 | 7 | #define UARTn_CMD 0x000c |
---|
.. | .. |
---|
32 | 29 | strb \rd, [\rx, #UARTn_TXDATA] |
---|
33 | 30 | .endm |
---|
34 | 31 | |
---|
35 | | - .macro waituart,rd,rx |
---|
| 32 | + .macro waituartcts,rd,rx |
---|
| 33 | + .endm |
---|
| 34 | + |
---|
| 35 | + .macro waituarttxrdy,rd,rx |
---|
36 | 36 | 1001: ldr \rd, [\rx, #UARTn_STATUS] |
---|
37 | 37 | tst \rd, #UARTn_STATUS_TXBL |
---|
38 | 38 | beq 1001b |
---|