summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/debug.S
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@com.rmk.(none)>2004-09-05 22:23:19 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2004-09-05 22:23:19 +0100
commit124bd47de0b44ce385d7ac6fb8d69478688d2e59 (patch)
tree9cf9059932af91113358c4c2eb0699519fce20a3 /arch/arm/kernel/debug.S
parent66fd03e1809e70656bad8060b312e38db4154572 (diff)
[ARM PATCH] 2035/1: 2033/3 - IOP3xx patch submission (3/6)
Patch from Dave Jiang arch/arm/kernel changes
Diffstat (limited to 'arch/arm/kernel/debug.S')
-rw-r--r--arch/arm/kernel/debug.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S
index 166cb3c3fd4b..fe86c5ac0d49 100644
--- a/arch/arm/kernel/debug.S
+++ b/arch/arm/kernel/debug.S
@@ -411,8 +411,16 @@
.macro addruart,rx
mov \rx, #0xfe000000 @ physical
-#if defined(CONFIG_ARCH_IQ80321)
+#if defined(CONFIG_ARCH_IQ80321) || defined(CONFIG_ARCH_IQ31244)
orr \rx, \rx, #0x00800000 @ location of the UART
+#elif defined(CONFIG_ARCH_IOP331)
+ mrc p15, 0, \rx, c1, c0
+ tst \rx, #1 @ MMU enabled?
+ moveq \rx, #0x000fe000 @ Physical Base
+ movne \rx, #0
+ orr \rx, \rx, #0xfe000000
+ orr \rx, \rx, #0x00f00000 @ Virtual Base
+ orr \rx, \rx, #0x00001700 @ location of the UART
#else
#error Unknown IOP3XX implementation
#endif
@@ -430,7 +438,7 @@
.endm
.macro waituart,rd,rx
-#ifndef CONFIG_ARCH_IQ80321
+#if !defined(CONFIG_ARCH_IQ80321) || !defined(CONFIG_ARCH_IQ31244) || !defined(CONFIG_ARCH_IQ80331)
1001: ldrb \rd, [\rx, #0x6]
tst \rd, #0x10
beq 1001b