console: add a flag to prepend '\r' in the multi-console framework
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 23 Jul 2019 03:32:58 +0000 (12:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 19 Aug 2019 08:00:08 +0000 (17:00 +0900)
commitf51df47572fb9d5e6808a07ccf5a7e6a5170554d
tree2c61c17086157da32a44d457f65b610e8d77bab8
parentd1b6013d8485094d948e6b6039b8d119a907ecf8
console: add a flag to prepend '\r' in the multi-console framework

Currently, console drivers prepend '\r' to '\n' by themselves. This is
common enough to be supported in the framework.

Add a new flag, CONSOLE_FLAG_TRANSLATE_CRLF. A driver can set this
flag to ask the framework to transform LF into CRLF instead of doing
it by itself.

Change-Id: I4f5c5887591bc0a8749a105abe62b6562eaf503b
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/console/multi_console.c
include/drivers/console.h
plat/common/aarch64/crash_console_helpers.S