1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Renesas SCIF(A) debugging macro include header
7 * Copyright (C) 2012-2013 Renesas Electronics Corporation
8 * Copyright (C) 1994-1999 Russell King
11 #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS
12 #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000)
14 #if defined(CONFIG_DEBUG_R7S9210_SCIF2) || defined(CONFIG_DEBUG_R7S9210_SCIF4)
18 #elif CONFIG_DEBUG_UART_PHYS < 0xe6e00000
31 .macro addruart, rp, rv, tmp
36 .macro waituartcts,rd,rx
39 .macro waituarttxrdy, rd, rx
40 1001: ldrh \rd, [\rx, #FSR]
45 .macro senduart, rd, rx
46 strb \rd, [\rx, #FTDR]
52 .macro busyuart, rd, rx
53 1001: ldrh \rd, [\rx, #FSR]