2 * arch/arm/include/debug/icedcc.S
4 * Copyright (C) 1994-1999 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 @@ debug using ARM EmbeddedICE DCC channel
14 .macro addruart, rp, rv, tmp
17 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7)
19 .macro senduart, rd, rx
20 mcr p14, 0, \rd, c0, c5, 0
23 .macro busyuart, rd, rx
25 mrc p14, 0, \rx, c0, c1, 0
30 .macro waituart, rd, rx
35 mrc p14, 0, \rx, c0, c1, 0
41 #elif defined(CONFIG_CPU_XSCALE)
43 .macro senduart, rd, rx
44 mcr p14, 0, \rd, c8, c0, 0
47 .macro busyuart, rd, rx
49 mrc p14, 0, \rx, c14, c0, 0
54 .macro waituart, rd, rx
59 mrc p14, 0, \rx, c14, c0, 0
67 .macro senduart, rd, rx
68 mcr p14, 0, \rd, c1, c0, 0
71 .macro busyuart, rd, rx
73 mrc p14, 0, \rx, c0, c0, 0
79 .macro waituart, rd, rx
84 mrc p14, 0, \rx, c0, c0, 0
90 #endif /* CONFIG_CPU_V6 */