aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/hardware/debug-8250.S
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-07-06 23:13:15 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-08-25 17:11:00 +0100
commit4a00364736519764a76af566be98eeeabb6fbce5 (patch)
tree2eae43823a6eb68031bb221e6c7dbc9f641f8988 /arch/arm/include/asm/hardware/debug-8250.S
parent7610b607b03ada21e89d964ec27d87a5b93c3d7f (diff)
ARM: debug: provide 8250 debug uart register shift configuration option
Move the definition of the UART register shift 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/debug-8250.S')
-rw-r--r--arch/arm/include/asm/hardware/debug-8250.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/debug-8250.S b/arch/arm/include/asm/hardware/debug-8250.S
index bca304576be0..a0e6e173c554 100644
--- a/arch/arm/include/asm/hardware/debug-8250.S
+++ b/arch/arm/include/asm/hardware/debug-8250.S
@@ -9,6 +9,10 @@
*/
#include <linux/serial_reg.h>
+#ifndef UART_SHIFT
+#define UART_SHIFT CONFIG_DEBUG_UART_8250_SHIFT
+#endif
+
.macro senduart,rd,rx
strb \rd, [\rx, #UART_TX << UART_SHIFT]
.endm