X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-iop3xx%2Fdebug-macro.S;fp=include%2Fasm-arm%2Farch-iop3xx%2Fdebug-macro.S;h=cc15f80ebd9a870c4a48d28b67b34e9c0c3bc467;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=ce007e531994c79e9e605114e7b7283a9d304cb8;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-arm/arch-iop3xx/debug-macro.S b/include/asm-arm/arch-iop3xx/debug-macro.S index ce007e531..cc15f80eb 100644 --- a/include/asm-arm/arch-iop3xx/debug-macro.S +++ b/include/asm-arm/arch-iop3xx/debug-macro.S @@ -28,8 +28,21 @@ #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 + .endm