]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mach-omap2/include/mach/debug-macro.S
omap: Clean the serial port defines
[net-next-2.6.git] / arch / arm / mach-omap2 / include / mach / debug-macro.S
index 86979d7bd8714d8715586e254163c2345af72394..8d6da9a39d63429e9d8d04a1ef3b8747bbf7e4dd 100644 (file)
  *
 */
 
+#include <linux/serial_reg.h>
+
+#include <plat/serial.h>
+
                .macro  addruart, rx, tmp
                mrc     p15, 0, \rx, c1, c0
                tst     \rx, #1                 @ MMU enabled?
                .endm
 
                .macro  busyuart,rd,rx
-1001:          ldrb    \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends
-               and     \rd, \rd, #0x60
-               teq     \rd, #0x60
-               beq     1002f
-               ldrb    \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only
-               and     \rd, \rd, #0x60
-               teq     \rd, #0x60
+1001:          ldrb    \rd, [\rx, #(UART_LSR << OMAP_PORT_SHIFT)]
+               and     \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE)
+               teq     \rd, #(UART_LSR_TEMT | UART_LSR_THRE)
                bne     1001b
-1002:
                .endm
 
                .macro  waituart,rd,rx