mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
Merge "uniphier: set CONSOLE_FLAG_TRANSLATE_CRLF and clean up console driver" into integration
This commit is contained in:
commit
e48932862c
2 changed files with 4 additions and 9 deletions
|
@ -23,15 +23,9 @@ func uniphier_console_putc
|
|||
0: ldr w2, [x1, #UNIPHIER_UART_LSR]
|
||||
tbz w2, #UNIPHIER_UART_LSR_THRE_BIT, 0b
|
||||
|
||||
mov w2, w0
|
||||
str w0, [x1, #UNIPHIER_UART_TX]
|
||||
|
||||
1: str w2, [x1, #UNIPHIER_UART_TX]
|
||||
|
||||
cmp w2, #'\n'
|
||||
b.ne 2f
|
||||
mov w2, #'\r' /* Append '\r' to '\n' */
|
||||
b 1b
|
||||
2: ret
|
||||
ret
|
||||
endfunc uniphier_console_putc
|
||||
|
||||
/*
|
||||
|
|
|
@ -32,7 +32,8 @@ static struct uniphier_console uniphier_console = {
|
|||
#if DEBUG
|
||||
CONSOLE_FLAG_RUNTIME |
|
||||
#endif
|
||||
CONSOLE_FLAG_CRASH,
|
||||
CONSOLE_FLAG_CRASH |
|
||||
CONSOLE_FLAG_TRANSLATE_CRLF,
|
||||
.putc = uniphier_console_putc,
|
||||
.getc = uniphier_console_getc,
|
||||
.flush = uniphier_console_flush,
|
||||
|
|
Loading…
Add table
Reference in a new issue