MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s3c24a0 / debug-macro.S
blobc003cfd8880d773c7b6fb4d4ff422a861dc5e443
1 /* linux/include/asm-arm/arch-s3c24a0/debug-macro.S
2  *
3  * Debugging macro include header
4  *
5  *  Copyright (C) 2005 Hyok S. Choi
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
13                 .macro  addruart, rx
14                 .endm
16                 .macro  senduart,rd,rx
17                 mov     r1, #0x00000002
18                 MRC     p14, 0, r3, c0, c0      ;read comms control reg
19                 AND     r3, r3, r1
20                 CMP     r3, #2
21                 BEQ     $-0x0C
22                 CMP     r0, #0x0a
23                 BNE     $+0x1C
24                 mov     r3, #0x0d
25                 MCR     p14, 0, r3, c1, c0      ;write comms data reg
26                 MRC     p14, 0, r3, c0, c0      ;read comms control reg
27                 AND     r3, r3, r1
28                 CMP     r3, #2
29                 BEQ     $-0x0C
30                 MCR     p14, 0, r0, c1, c0      ;write comms data reg
31                 mov     pc,r14
32                 .endm 
34                 .macro  busyuart, rd, rx
35                 .endm
37                 .macro  waituart,rd,rx
38                 .endm
39