ARM: zynq: Add waituart implementation
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Feb 2014 16:36:23 +0000 (17:36 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 17 Mar 2014 14:12:08 +0000 (15:12 +0100)
Add missing waituart implementation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/include/debug/zynq.S

index f9aa9740a73f09676d5a963f47e2d8e4f7d83e6c..0b762fafa7586a092399f8864f1cfdeaf3ff05ce 100644 (file)
@@ -42,6 +42,9 @@
                .endm
 
                .macro  waituart,rd,rx
+1001:          ldr     \rd, [\rx, #UART_SR_OFFSET]
+               tst     \rd, #UART_SR_TXEMPTY
+               beq     1001b
                .endm
 
                .macro  busyuart,rd,rx