serial: add an option that selects uart rpmsg as console

This commit is contained in:
raiden00pl 2023-09-21 13:59:38 +02:00 committed by Xiang Xiao
parent 7f574210a7
commit 0e01836f09
3 changed files with 16 additions and 0 deletions

View File

@ -57,6 +57,9 @@
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
# undef USE_SERIALDRIVER
# undef USE_EARLYSERIALINIT
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
# undef USE_SERIALDRIVER
# undef USE_EARLYSERIALINIT
# else
# define USE_SERIALDRIVER 1
# define USE_EARLYSERIALINIT 1

View File

@ -58,6 +58,9 @@
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
# undef USE_SERIALDRIVER
# undef USE_EARLYSERIALINIT
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
# undef USE_SERIALDRIVER
# undef USE_EARLYSERIALINIT
# else
# define USE_SERIALDRIVER 1
# define USE_EARLYSERIALINIT 1

View File

@ -81,6 +81,16 @@ config RPMSG_UART
select SERIAL_REMOVABLE
select SERIAL_IFLOWCONTROL
config RPMSG_UART_CONSOLE
bool "UART rpmsg console support"
default n
depends on RPMSG_UART
---help---
Register the UART rpmsg device as /dev/console so that is will be used
as the console device.
NOTE: support for this option must be implemented in the board logic by
setting the \"isconsole\" argument in the uart_rpmsg_init() function to true.
#
# Standard serial driver configuration
#