1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/include/debug/icedcc.S
5 * Copyright (C) 1994-1999 Russell King
8 @@ debug using ARM EmbeddedICE DCC channel
10 .macro addruart, rp, rv, tmp
13 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7)
15 .macro senduart, rd, rx
16 mcr p14, 0, \rd, c0, c5, 0
19 .macro busyuart, rd, rx
21 mrc p14, 0, \rx, c0, c1, 0
26 .macro waituartcts, rd, rx
29 .macro waituarttxrdy, rd, rx
34 mrc p14, 0, \rx, c0, c1, 0
40 #elif defined(CONFIG_CPU_XSCALE)
42 .macro senduart, rd, rx
43 mcr p14, 0, \rd, c8, c0, 0
46 .macro busyuart, rd, rx
48 mrc p14, 0, \rx, c14, c0, 0
53 .macro waituartcts, rd, rx
56 .macro waituarttxrdy, rd, rx
61 mrc p14, 0, \rx, c14, c0, 0
69 .macro senduart, rd, rx
70 mcr p14, 0, \rd, c1, c0, 0
73 .macro busyuart, rd, rx
75 mrc p14, 0, \rx, c0, c0, 0
81 .macro waituartcts, rd, rx
84 .macro waituarttxrdy, rd, rx
89 mrc p14, 0, \rx, c0, c0, 0
95 #endif /* CONFIG_CPU_V6 */