linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-arm / arch-iop3xx / debug-macro.S
index ce007e5..cc15f80 100644 (file)
 #endif
                .endm
 
+               .macro  senduart,rd,rx
+               strb    \rd, [\rx]
+               .endm
+
+               .macro  busyuart,rd,rx
+1002:          ldrb    \rd, [\rx, #0x5]
+               and     \rd, \rd, #0x60
+               teq     \rd, #0x60
+               bne     1002b
+               .endm
+
+               .macro  waituart,rd,rx
 #if !defined(CONFIG_ARCH_IQ80321) || !defined(CONFIG_ARCH_IQ31244) || !defined(CONFIG_ARCH_IQ80331)
-#define FLOW_CONTROL
+1001:          ldrb    \rd, [\rx, #0x6]
+               tst     \rd, #0x10
+               beq     1001b
 #endif
-#define UART_SHIFT     0
-#include <asm/hardware/debug-8250.S>
+               .endm