summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/debug.S
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2002-03-13 22:14:07 +0000
committerRussell King <rmk@flint.arm.linux.org.uk>2002-03-13 22:14:07 +0000
commit63038e5f834f8a7eda4ef9fbbcffcb807120183f (patch)
tree03a8894ecdeaed02516710666f7efee8ceb7b2aa /arch/arm/kernel/debug.S
parentd1aa641f7f97529097f27697ab5bea17926757c4 (diff)
Miscellaneous compiler warning fixes, other small fixes and
cleanups for ARM.
Diffstat (limited to 'arch/arm/kernel/debug.S')
-rw-r--r--arch/arm/kernel/debug.S49
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S
index 0235cfea51fd..6c27b100cffa 100644
--- a/arch/arm/kernel/debug.S
+++ b/arch/arm/kernel/debug.S
@@ -385,6 +385,55 @@
bne 1001b
.endm
+#elif defined(CONFIG_ARCH_IQ80310)
+
+ .macro addruart,rx
+ mov \rx, #0xfe000000 @ physical
+ orr \rx, \rx, #0x00810000
+ .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
+1001: ldrb \rd, [\rx, #0x6]
+ tst \rd, #0x10
+ beq 1001b
+ .endm
+
+#elif defined(CONFIG_ARCH_ADI_EVB)
+
+ .macro addruart,rx
+ mrc p15, 0, \rx, c1, c0
+ tst \rx, #1 @ MMU enabled?
+ mov \rx, #0x00400000 @ physical base address
+ orrne \rx, \rx, #0xff000000 @ virtual base
+ .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
+1001: ldrb \rd, [\rx, #0x6]
+ tst \rd, #0x10
+ beq 1001b
+ .endm
#else
#error Unknown architecture
#endif