2 * Renesas SCIF(A) debugging macro include header
6 * Copyright (C) 2012-2013 Renesas Electronics Corporation
7 * Copyright (C) 1994-1999 Russell King
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS
15 #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000)
17 #if CONFIG_DEBUG_UART_PHYS < 0xe6e00000
30 .macro addruart, rp, rv, tmp
35 .macro waituart, rd, rx
36 1001: ldrh \rd, [\rx, #FSR]
41 .macro senduart, rd, rx
42 strb \rd, [\rx, #FTDR]
48 .macro busyuart, rd, rx
49 1001: ldrh \rd, [\rx, #FSR]