| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/include/debug/sti.S |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Debugging macro include header |
|---|
| 5 | 6 | * Copyright (C) 2013 STMicroelectronics (R&D) Limited. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #define STIH41X_COMMS_BASE 0xfed00000 |
|---|
| .. | .. |
|---|
| 48 | 45 | strb \rd, [\rx, #ASC_TX_BUF_OFF] |
|---|
| 49 | 46 | .endm |
|---|
| 50 | 47 | |
|---|
| 51 | | - .macro waituart,rd,rx |
|---|
| 48 | + .macro waituartcts,rd,rx |
|---|
| 49 | + .endm |
|---|
| 50 | + |
|---|
| 51 | + .macro waituarttxrdy,rd,rx |
|---|
| 52 | 52 | 1001: ldr \rd, [\rx, #ASC_STA_OFF] |
|---|
| 53 | 53 | tst \rd, #ASC_STA_TX_FULL |
|---|
| 54 | 54 | bne 1001b |
|---|