Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[sfrench/cifs-2.6.git] / arch / arm / include / debug / 8250_32.S
1 /*
2  * Copyright (c) 2011 Picochip Ltd., Jamie Iles
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * Derived from arch/arm/mach-davinci/include/mach/debug-macro.S to use 32-bit
9  * accesses to the 8250.
10  */
11
12 #include <linux/serial_reg.h>
13
14                 .macro  senduart,rd,rx
15                 str     \rd, [\rx, #UART_TX << UART_SHIFT]
16                 .endm
17
18                 .macro  busyuart,rd,rx
19 1002:           ldr     \rd, [\rx, #UART_LSR << UART_SHIFT]
20                 and     \rd, \rd, #UART_LSR_TEMT | UART_LSR_THRE
21                 teq     \rd, #UART_LSR_TEMT | UART_LSR_THRE
22                 bne     1002b
23                 .endm
24
25                 /* The UART's don't have any flow control IO's wired up. */
26                 .macro  waituart,rd,rx
27                 .endm