diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2014-11-06 02:20:23 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2014-11-20 06:25:37 -0500 |
commit | e6131fa3835483944c13d03bcff1d9103d9f53ce (patch) | |
tree | 571f98cd1e2630db3e402754bd79692a149f0a05 | |
parent | 37f286e9085717c17a509fed977c0766244f80c9 (diff) |
ARM: debug: move StrongARM debug include to arch/arm/include/debug
StrongARM debug-macro.S is quite standalone thing, depending only on
register mappings. Move it to proper place and add Kconfig entry.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/arm/include/debug/sa1100.S (renamed from arch/arm/mach-sa1100/include/mach/debug-macro.S) | 10 |
2 files changed, 17 insertions, 2 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 6a4ee008b092..6c23769318ac 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -734,6 +734,14 @@ choice | |||
734 | their output to UART 2. The port must have been initialised | 734 | their output to UART 2. The port must have been initialised |
735 | by the boot-loader before use. | 735 | by the boot-loader before use. |
736 | 736 | ||
737 | config DEBUG_SA1100 | ||
738 | depends on ARCH_SA1100 | ||
739 | bool "Use SA1100 UARTs for low-level debug" | ||
740 | help | ||
741 | Say Y here if you want kernel low-level debugging support | ||
742 | on SA-11x0 UART ports. The kernel will check for the first | ||
743 | enabled UART in a sequence 3-1-2. | ||
744 | |||
737 | config DEBUG_SOCFPGA_UART | 745 | config DEBUG_SOCFPGA_UART |
738 | depends on ARCH_SOCFPGA | 746 | depends on ARCH_SOCFPGA |
739 | bool "Use SOCFPGA UART for low-level debug" | 747 | bool "Use SOCFPGA UART for low-level debug" |
@@ -1052,6 +1060,7 @@ config DEBUG_STI_UART | |||
1052 | 1060 | ||
1053 | config DEBUG_LL_INCLUDE | 1061 | config DEBUG_LL_INCLUDE |
1054 | string | 1062 | string |
1063 | default "debug/sa1100.S" if DEBUG_SA1100 | ||
1055 | default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250 | 1064 | default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250 |
1056 | default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2 | 1065 | default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2 |
1057 | default "debug/meson.S" if DEBUG_MESON_UARTAO | 1066 | default "debug/meson.S" if DEBUG_MESON_UARTAO |
diff --git a/arch/arm/mach-sa1100/include/mach/debug-macro.S b/arch/arm/include/debug/sa1100.S index 530772d937ad..a0ae4f4cd924 100644 --- a/arch/arm/mach-sa1100/include/mach/debug-macro.S +++ b/arch/arm/include/debug/sa1100.S | |||
@@ -1,4 +1,4 @@ | |||
1 | /* arch/arm/mach-sa1100/include/mach/debug-macro.S | 1 | /* arch/arm/include/debug/sa1100.S |
2 | * | 2 | * |
3 | * Debugging macro include header | 3 | * Debugging macro include header |
4 | * | 4 | * |
@@ -10,7 +10,13 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | #include <mach/hardware.h> | 13 | |
14 | #define UTCR3 0x0c | ||
15 | #define UTDR 0x14 | ||
16 | #define UTSR1 0x20 | ||
17 | #define UTCR3_TXE 0x00000002 /* Transmit Enable */ | ||
18 | #define UTSR1_TBY 0x00000001 /* Transmitter BusY (read) */ | ||
19 | #define UTSR1_TNF 0x00000004 /* Transmit FIFO Not Full (read) */ | ||
14 | 20 | ||
15 | .macro addruart, rp, rv, tmp | 21 | .macro addruart, rp, rv, tmp |
16 | mrc p15, 0, \rp, c1, c0 | 22 | mrc p15, 0, \rp, c1, c0 |