From: Michal Simek Date: Mon, 3 Feb 2014 16:36:23 +0000 (+0100) Subject: ARM: zynq: Add waituart implementation X-Git-Tag: firefly_0821_release~176^2~4128^2~8^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1a259251f3638b04c1dbe07220958af9572c95bb;p=firefly-linux-kernel-4.4.55.git ARM: zynq: Add waituart implementation Add missing waituart implementation. Signed-off-by: Michal Simek --- diff --git a/arch/arm/include/debug/zynq.S b/arch/arm/include/debug/zynq.S index f9aa9740a73f..0b762fafa758 100644 --- a/arch/arm/include/debug/zynq.S +++ b/arch/arm/include/debug/zynq.S @@ -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