summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-02-03 17:36:23 +0100
committerMichal Simek <michal.simek@xilinx.com>2014-03-17 15:12:08 +0100
commit1a259251f3638b04c1dbe07220958af9572c95bb (patch)
tree358ae314cda40131d572065cea4bce37f581d4eb /arch/arm/include
parent4a32c74e762236a53627536b9b9c1693d3073359 (diff)
downloadlinux-1a259251f3638b04c1dbe07220958af9572c95bb.tar.gz
linux-1a259251f3638b04c1dbe07220958af9572c95bb.tar.bz2
linux-1a259251f3638b04c1dbe07220958af9572c95bb.zip
ARM: zynq: Add waituart implementation
Add missing waituart implementation. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/debug/zynq.S3
1 files changed, 3 insertions, 0 deletions
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