mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ARM: 9005/1: debug: Select flow control for all debug UARTs
Instead of a flow control selection mechanism specifically for 8250, make this available for all debug UARTs. If the debug UART supports waiting for CTS to be asserted, then this code can be activated for terminals that need it. We keep the defaults for EBSA110, Footbridge, Gemini and RPC so that this still works as expected for these older platforms: they assume that flow control shall be enabled for debug prints. I switch the location of the check for ifdef CONFIG_DEBUG_UART_FLOW_CONTROL from the actual debug UART drivers: the code would get compiled-out for 8250 and Tegra unless their custom config (or passing -DFLOW_CONTROL in the Tegra case) was not set. Instead this is conditional at the three places where we print debug messages. The idea is that debug UARTs can be implemented without this ifdef boilerplate so they look cleaner, alas the ifdef has to be somewhere. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
2c50a570e9
commit
4df24fef09
5 changed files with 19 additions and 10 deletions
|
@ -89,12 +89,17 @@ ENTRY(printascii)
|
|||
2: teq r1, #'\n'
|
||||
bne 3f
|
||||
mov r1, #'\r'
|
||||
#ifdef CONFIG_DEBUG_UART_FLOW_CONTROL
|
||||
waituartcts r2, r3
|
||||
#endif
|
||||
waituarttxrdy r2, r3
|
||||
senduart r1, r3
|
||||
busyuart r2, r3
|
||||
mov r1, #'\n'
|
||||
3: waituartcts r2, r3
|
||||
3:
|
||||
#ifdef CONFIG_DEBUG_UART_FLOW_CONTROL
|
||||
waituartcts r2, r3
|
||||
#endif
|
||||
waituarttxrdy r2, r3
|
||||
senduart r1, r3
|
||||
busyuart r2, r3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue