git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-arm
/
arch-iop3xx
/
debug-macro.S
diff --git
a/include/asm-arm/arch-iop3xx/debug-macro.S
b/include/asm-arm/arch-iop3xx/debug-macro.S
index
ce007e5
..
cc15f80
100644
(file)
--- a/
include/asm-arm/arch-iop3xx/debug-macro.S
+++ b/
include/asm-arm/arch-iop3xx/debug-macro.S
@@
-28,8
+28,21
@@
#endif
.endm
#endif
.endm
+ .macro senduart,rd,rx
+ strb \rd, [\rx]
+ .endm
+
+ .macro busyuart,rd,rx
+1002: ldrb \rd, [\rx, #0x5]
+ and \rd, \rd, #0x60
+ teq \rd, #0x60
+ bne 1002b
+ .endm
+
+ .macro waituart,rd,rx
#if !defined(CONFIG_ARCH_IQ80321) || !defined(CONFIG_ARCH_IQ31244) || !defined(CONFIG_ARCH_IQ80331)
#if !defined(CONFIG_ARCH_IQ80321) || !defined(CONFIG_ARCH_IQ31244) || !defined(CONFIG_ARCH_IQ80331)
-#define FLOW_CONTROL
+1001: ldrb \rd, [\rx, #0x6]
+ tst \rd, #0x10
+ beq 1001b
#endif
#endif
-#define UART_SHIFT 0
-#include <asm/hardware/debug-8250.S>
+ .endm