aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/debug/asm9260.S
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2014-11-24 06:08:28 -0500
committerArnd Bergmann <arnd@arndb.de>2014-11-28 09:08:06 -0500
commitd5bd4e8df43ca930ff3892963f6b3bf7984038e3 (patch)
tree39a129eee147cfe4de70561d1ddcd3daea0f1b03 /arch/arm/include/debug/asm9260.S
parentd9bfc86dc69af78fb42fe075f9f2576880fd22a4 (diff)
ARM: add lolevel debug support for asm9260
Since there is no public documentation, this patch also provide register offsets for different UART units on this SoC. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/include/debug/asm9260.S')
-rw-r--r--arch/arm/include/debug/asm9260.S29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/include/debug/asm9260.S b/arch/arm/include/debug/asm9260.S
new file mode 100644
index 000000000000..292f85b49fca
--- /dev/null
+++ b/arch/arm/include/debug/asm9260.S
@@ -0,0 +1,29 @@
1/* Debugging macro include header
2 *
3 * Copyright (C) 1994-1999 Russell King
4 * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
5 * Modified for ASM9260 by Oleksij Remepl <linux@rempel-privat.de>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 */
12
13 .macro addruart, rp, rv, tmp
14 ldr \rp, = CONFIG_DEBUG_UART_PHYS
15 ldr \rv, = CONFIG_DEBUG_UART_VIRT
16 .endm
17
18 .macro waituart,rd,rx
19 .endm
20
21 .macro senduart,rd,rx
22 str \rd, [\rx, #0x50] @ TXDATA
23 .endm
24
25 .macro busyuart,rd,rx
261002: ldr \rd, [\rx, #0x60] @ STAT
27 tst \rd, #1 << 27 @ TXEMPTY
28 beq 1002b @ wait until transmit done
29 .endm