diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-07-06 19:01:39 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-08-25 12:11:01 -0400 |
commit | c3faa9b7573bf8668869c0ef3075430dc9f053c6 (patch) | |
tree | 4f70aaa18d828f7dbd0078de005e166f25546da9 /arch/arm/include/asm/hardware | |
parent | 4a00364736519764a76af566be98eeeabb6fbce5 (diff) |
ARM: debug: provide 8250 debug uart phys/virt address configuration options
Move the definition of the UART register addresses out of the platform
specific header file into the Kconfig 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.S | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/include/asm/hardware/debug-8250.S b/arch/arm/include/asm/hardware/debug-8250.S index a0e6e173c554..ea5f1710b524 100644 --- a/arch/arm/include/asm/hardware/debug-8250.S +++ b/arch/arm/include/asm/hardware/debug-8250.S | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/include/asm/hardware/debug-8250.S | 2 | * arch/arm/include/asm/hardware/debug-8250.S |
3 | * | 3 | * |
4 | * Copyright (C) 1994-1999 Russell King | 4 | * Copyright (C) 1994-2013 Russell King |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 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 | 7 | * it under the terms of the GNU General Public License version 2 as |
@@ -9,6 +9,13 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/serial_reg.h> | 10 | #include <linux/serial_reg.h> |
11 | 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 | |||
12 | #ifndef UART_SHIFT | 19 | #ifndef UART_SHIFT |
13 | #define UART_SHIFT CONFIG_DEBUG_UART_8250_SHIFT | 20 | #define UART_SHIFT CONFIG_DEBUG_UART_8250_SHIFT |
14 | #endif | 21 | #endif |