]> err.no Git - linux-2.6/commitdiff
[ARM] 3379/1: ixp2000: use generic 8250 debug macros
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 22 Mar 2006 20:14:09 +0000 (20:14 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Mar 2006 20:14:09 +0000 (20:14 +0000)
Patch from Lennert Buytenhek

The xscale UART in the ixp2000 is basically just an 8250 UART (with
some extra bits and pieces), so we can use the generic 8250 debug
macros on the ixp2000.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-ixp2000/debug-macro.S

index 5631e088986156075080d398ab739cb0e89e24bf..bc8b39654793f63b333b249d4ace8de9b16825d0 100644 (file)
 #endif
                .endm
 
-               .macro  senduart,rd,rx
-               strb    \rd, [\rx]
-               .endm
-
-               .macro  busyuart,rd,rx
-1002:          ldrb    \rd, [\rx, #0x14]
-               tst     \rd, #0x20
-               beq     1002b
-               .endm
-
-               .macro  waituart,rd,rx
-               nop
-               nop
-               nop
-               .endm
+#define UART_SHIFT     2
+#include <asm/hardware/debug-8250.S>