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 waituart, rd, rx
37 1001: ldrh \rd, [\rx, #FSR]
42 .macro senduart, rd, rx
43 strb \rd, [\rx, #FTDR]
49 .macro busyuart, rd, rx
50 1001: ldrh \rd, [\rx, #FSR]