summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-ebsa285
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-03-16 20:40:25 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-03-21 22:05:57 +0000
commit268099e3ccca5a988632ce18abd21d809d632ddc (patch)
treeeb060cc006e441742b1035d1a69e4d2d79e83e22 /include/asm-arm/arch-ebsa285
parent22398f57b6372f3150f9ebb4b6d0aa4bf98c5dfb (diff)
downloadlinux-3.10-268099e3ccca5a988632ce18abd21d809d632ddc.tar.gz
linux-3.10-268099e3ccca5a988632ce18abd21d809d632ddc.tar.bz2
linux-3.10-268099e3ccca5a988632ce18abd21d809d632ddc.zip
[ARM] Collect 8250-based debug implementations together
Several ARM machine implementations used an 8250 compatible port for debugging purposes, and indepdently implemented the low level debug macros every time. Provide a common implementation and convert these implementations to use this version. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-ebsa285')
-rw-r--r--include/asm-arm/arch-ebsa285/debug-macro.S18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/asm-arm/arch-ebsa285/debug-macro.S b/include/asm-arm/arch-ebsa285/debug-macro.S
index 97d15fc629a..b48cec4a0c4 100644
--- a/include/asm-arm/arch-ebsa285/debug-macro.S
+++ b/include/asm-arm/arch-ebsa285/debug-macro.S
@@ -23,22 +23,10 @@
orr \rx, \rx, #0x000003f8
.endm
- .macro senduart,rd,rx
- strb \rd, [\rx]
- .endm
+#define UART_SHIFT 0
+#define FLOW_CONTROL
+#include <asm/hardware/debug-8250.S>
- .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
/* For EBSA285 debugging */
.equ dc21285_high, ARMCSR_BASE & 0xff000000