diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-05-12 23:48:34 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-05-12 23:48:34 +0000 |
commit | 7fd36ebeeec9244a7431bb010e6e3c5e4848a0d5 (patch) | |
tree | 5fb03a9aafdd1cec5f4f6ff7f1873174cb89b66c /arch/arm/kernel/debug-armv.S | |
parent | ba2dacab305c598cd4c34a604f8e276bf5bab5ff (diff) |
Merge with Linux 2.3.99-pre8. Linus must hate me, too man patches ;-)
Diffstat (limited to 'arch/arm/kernel/debug-armv.S')
-rw-r--r-- | arch/arm/kernel/debug-armv.S | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/kernel/debug-armv.S b/arch/arm/kernel/debug-armv.S index ce7f2f94c..8054f8756 100644 --- a/arch/arm/kernel/debug-armv.S +++ b/arch/arm/kernel/debug-armv.S @@ -160,6 +160,33 @@ bne 1001b .endm +#elif defined(CONFIG_ARCH_L7200) + + .macro addruart,rx + + mrc p15, 0, \rx, c1, c0 + tst \rx, #1 @ MMU enabled? + moveq \rx, #0x80000000 @ physical base address + movne \rx, #0xd0000000 @ virtual address + add \rx, \rx, #0x00044000 @ Ser1 +@ add \rx, \rx, #0x00045000 @ Ser2 + .endm + + .macro senduart,rd,rx + str \rd, [\rx, #0x0] @ UARTDR1 + .endm + + .macro waituart,rd,rx +1001: ldr \rd, [\rx, #0x18] @ UARTFLG + tst \rd, #1 << 5 @ UARTFLGUTXFF - 1 when full + bne 1001b + .endm + + .macro busyuart,rd,rx +1001: ldr \rd, [\rx, #0x18] @ UARTFLG + tst \rd, #1 << 3 @ UARTFLGUBUSY - 1 when busy + bne 1001b + .endm #else #error Unknown architecture #endif |