ARM: zynq: Add waituart implementation

Add missing waituart implementation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Michal Simek 2014-02-03 17:36:23 +01:00
parent 4a32c74e76
commit 1a259251f3

View 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