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 waituart, rd, rx
31 mrc p14, 0, \rx, c0, c1, 0
37 #elif defined(CONFIG_CPU_XSCALE)
39 .macro senduart, rd, rx
40 mcr p14, 0, \rd, c8, c0, 0
43 .macro busyuart, rd, rx
45 mrc p14, 0, \rx, c14, c0, 0
50 .macro waituart, rd, rx
55 mrc p14, 0, \rx, c14, c0, 0
63 .macro senduart, rd, rx
64 mcr p14, 0, \rd, c1, c0, 0
67 .macro busyuart, rd, rx
69 mrc p14, 0, \rx, c0, c0, 0
75 .macro waituart, rd, rx
80 mrc p14, 0, \rx, c0, c0, 0
86 #endif /* CONFIG_CPU_V6 */