Skip to content

Commit

Permalink
ARM: debug: provide 8250 debug uart flow control configuration option
Browse files Browse the repository at this point in the history
Move the definition out of the machine class debug-macro.S header
into the Kconfig files.

Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Aug 25, 2013
1 parent cce278d commit 7610b60
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
9 changes: 9 additions & 0 deletions arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,15 @@ config DEBUG_LL_INCLUDE
default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
default "mach/debug-macro.S"

config DEBUG_UART_8250
def_bool ARCH_EBSA110 || (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
ARCH_GEMINI || ARCH_RPC

config DEBUG_UART_8250_FLOW_CONTROL
bool "Enable flow control for 8250 UART"
depends on DEBUG_UART_8250
default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_GEMINI || ARCH_RPC

config DEBUG_UNCOMPRESS
bool
depends on ARCH_MULTIPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/hardware/debug-8250.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.endm

.macro waituart,rd,rx
#ifdef FLOW_CONTROL
#ifdef CONFIG_DEBUG_UART_8250_FLOW_CONTROL
1001: ldrb \rd, [\rx, #UART_MSR << UART_SHIFT]
tst \rd, #UART_MSR_CTS
beq 1001b
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-ebsa110/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
.endm

#define UART_SHIFT 2
#define FLOW_CONTROL
#include <asm/hardware/debug-8250.S>
1 change: 0 additions & 1 deletion arch/arm/mach-footbridge/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
.endm

#define UART_SHIFT 0
#define FLOW_CONTROL
#include <asm/hardware/debug-8250.S>

#else
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-gemini/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
.endm

#define UART_SHIFT 2
#define FLOW_CONTROL
#include <asm/hardware/debug-8250.S>
1 change: 0 additions & 1 deletion arch/arm/mach-rpc/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@
.endm

#define UART_SHIFT 2
#define FLOW_CONTROL
#include <asm/hardware/debug-8250.S>

0 comments on commit 7610b60

Please sign in to comment.