| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2014 Carlo Caione |
|---|
| 3 | 4 | * Carlo Caione <carlo@caione.org> |
|---|
| 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 MESON_AO_UART_WFIFO 0x0 |
|---|
| .. | .. |
|---|
| 28 | 25 | beq 1002b |
|---|
| 29 | 26 | .endm |
|---|
| 30 | 27 | |
|---|
| 31 | | - .macro waituart,rd,rx |
|---|
| 28 | + .macro waituartcts,rd,rx |
|---|
| 29 | + .endm |
|---|
| 30 | + |
|---|
| 31 | + .macro waituarttxrdy,rd,rx |
|---|
| 32 | 32 | 1001: ldr \rd, [\rx, #MESON_AO_UART_STATUS] |
|---|
| 33 | 33 | tst \rd, #MESON_AO_UART_TX_FIFO_FULL |
|---|
| 34 | 34 | bne 1001b |
|---|