.. | .. |
---|
11 | 11 | #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS |
---|
12 | 12 | #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000) |
---|
13 | 13 | |
---|
14 | | -#if CONFIG_DEBUG_UART_PHYS < 0xe6e00000 |
---|
| 14 | +#if defined(CONFIG_DEBUG_R7S9210_SCIF2) || defined(CONFIG_DEBUG_R7S9210_SCIF4) |
---|
| 15 | +/* RZ/A2 SCIFA */ |
---|
| 16 | +#define FTDR 0x06 |
---|
| 17 | +#define FSR 0x08 |
---|
| 18 | +#elif CONFIG_DEBUG_UART_PHYS < 0xe6e00000 |
---|
15 | 19 | /* SCIFA */ |
---|
16 | 20 | #define FTDR 0x20 |
---|
17 | 21 | #define FSR 0x14 |
---|
.. | .. |
---|
29 | 33 | ldr \rv, =SCIF_VIRT |
---|
30 | 34 | .endm |
---|
31 | 35 | |
---|
32 | | - .macro waituart, rd, rx |
---|
| 36 | + .macro waituartcts,rd,rx |
---|
| 37 | + .endm |
---|
| 38 | + |
---|
| 39 | + .macro waituarttxrdy, rd, rx |
---|
33 | 40 | 1001: ldrh \rd, [\rx, #FSR] |
---|
34 | 41 | tst \rd, #TDFE |
---|
35 | 42 | beq 1001b |
---|