Skip to content

Commit e6131fa

Browse files
lumagarndb
authored andcommitted
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>
1 parent 37f286e commit e6131fa

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,14 @@ choice
734734
their output to UART 2. The port must have been initialised
735735
by the boot-loader before use.
736736

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+
737745
config DEBUG_SOCFPGA_UART
738746
depends on ARCH_SOCFPGA
739747
bool "Use SOCFPGA UART for low-level debug"
@@ -1052,6 +1060,7 @@ config DEBUG_STI_UART
10521060

10531061
config DEBUG_LL_INCLUDE
10541062
string
1063+
default "debug/sa1100.S" if DEBUG_SA1100
10551064
default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
10561065
default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2
10571066
default "debug/meson.S" if DEBUG_MESON_UARTAO

arch/arm/mach-sa1100/include/mach/debug-macro.S renamed to arch/arm/include/debug/sa1100.S

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* arch/arm/mach-sa1100/include/mach/debug-macro.S
1+
/* arch/arm/include/debug/sa1100.S
22
*
33
* Debugging macro include header
44
*
@@ -10,7 +10,13 @@
1010
* published by the Free Software Foundation.
1111
*
1212
*/
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) */
1420

1521
.macro addruart, rp, rv, tmp
1622
mrc p15, 0, \rp, c1, c0

0 commit comments

Comments
 (0)