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 f9aa974..0b762fa 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