[<prev] [next>] [day] [month] [year] [list]
Message-Id: <13a04fc77bd93b2ad5a15a8967627a11fb7c8925.1392028615.git.michal.simek@xilinx.com>
Date: Mon, 10 Feb 2014 11:37:03 +0100
From: Michal Simek <michal.simek@...inx.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: monstr@...str.eu, Josh Cartwright <josh.cartwright@...com>,
Steffen Trumtrar <s.trumtrar@...gutronix.de>,
Rob Herring <robherring2@...il.com>,
Peter Crosthwaite <peter.crosthwaite@...inx.com>,
Russell King <linux@....linux.org.uk>,
linux-kernel@...r.kernel.org
Subject: [PATCH] ARM: zynq: Add waituart implementation
Add missing waituart implementation.
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
arch/arm/include/debug/zynq.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/include/debug/zynq.S b/arch/arm/include/debug/zynq.S
index f9aa974..0b762fa 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
--
1.8.2.3
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists