aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-07-06 19:11:35 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-08-25 12:11:02 -0400
commit2facbc88733b34e1f992cde054c88b8e07607043 (patch)
tree5c0a61096777f07291b0e7db3c49a4d05441aa38 /arch/arm/include/asm/hardware
parentc3faa9b7573bf8668869c0ef3075430dc9f053c6 (diff)
ARM: debug: move 8250 debug include into arch/arm/include/debug/
Now that the 8250 debug include can stand alone without requiring platforms to provide any macros, move it into the debug directory so it can be directly included. This allows us to get rid of a lot of debug-macros include files. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r--arch/arm/include/asm/hardware/debug-8250.S40
1 files changed, 0 insertions, 40 deletions
diff --git a/arch/arm/include/asm/hardware/debug-8250.S b/arch/arm/include/asm/hardware/debug-8250.S
deleted file mode 100644
index ea5f1710b524..000000000000
--- a/arch/arm/include/asm/hardware/debug-8250.S
+++ /dev/null
@@ -1,40 +0,0 @@
1/*
2 * arch/arm/include/asm/hardware/debug-8250.S
3 *
4 * Copyright (C) 1994-2013 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#include <linux/serial_reg.h>
11
12#ifdef CONFIG_DEBUG_UART_PHYS
13 .macro addruart, rp, rv, tmp
14 ldr \rp, =CONFIG_DEBUG_UART_PHYS
15 ldr \rv, =CONFIG_DEBUG_UART_VIRT
16 .endm
17#endif
18
19#ifndef UART_SHIFT
20#define UART_SHIFT CONFIG_DEBUG_UART_8250_SHIFT
21#endif
22
23 .macro senduart,rd,rx
24 strb \rd, [\rx, #UART_TX << UART_SHIFT]
25 .endm
26
27 .macro busyuart,rd,rx
281002: ldrb \rd, [\rx, #UART_LSR << UART_SHIFT]
29 and \rd, \rd, #UART_LSR_TEMT | UART_LSR_THRE
30 teq \rd, #UART_LSR_TEMT | UART_LSR_THRE
31 bne 1002b
32 .endm
33
34 .macro waituart,rd,rx
35#ifdef CONFIG_DEBUG_UART_8250_FLOW_CONTROL
361001: ldrb \rd, [\rx, #UART_MSR << UART_SHIFT]
37 tst \rd, #UART_MSR_CTS
38 beq 1001b
39#endif
40 .endm