| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2003-2005 SAN People |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #define AT91_DBGU_SR (0x14) /* Status Register */ |
|---|
| .. | .. |
|---|
| 23 | 19 | strb \rd, [\rx, #(AT91_DBGU_THR)] @ Write to Transmitter Holding Register |
|---|
| 24 | 20 | .endm |
|---|
| 25 | 21 | |
|---|
| 26 | | - .macro waituart,rd,rx |
|---|
| 22 | + .macro waituarttxrdy,rd,rx |
|---|
| 27 | 23 | 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] @ Read Status Register |
|---|
| 28 | 24 | tst \rd, #AT91_DBGU_TXRDY @ DBGU_TXRDY = 1 when ready to transmit |
|---|
| 29 | 25 | beq 1001b |
|---|
| 30 | 26 | .endm |
|---|
| 31 | 27 | |
|---|
| 28 | + .macro waituartcts,rd,rx |
|---|
| 29 | + .endm |
|---|
| 30 | + |
|---|
| 32 | 31 | .macro busyuart,rd,rx |
|---|
| 33 | 32 | 1001: ldr \rd, [\rx, #(AT91_DBGU_SR)] @ Read Status Register |
|---|
| 34 | 33 | tst \rd, #AT91_DBGU_TXEMPTY @ DBGU_TXEMPTY = 1 when transmission complete |
|---|