DORMANTno replies

[PATCH] ARM: zynq: Add waituart implementation

From: Michal Simek <hidden>
Date: 2014-02-10 10:37:12
Also in: lkml
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Add missing waituart implementation.

Signed-off-by: Michal Simek <redacted>
---

 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140210/cc6785ff/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help