serial: add an option that selects uart rpmsg as console
This commit is contained in:
parent
7f574210a7
commit
0e01836f09
@ -57,6 +57,9 @@
|
|||||||
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
||||||
# undef USE_SERIALDRIVER
|
# undef USE_SERIALDRIVER
|
||||||
# undef USE_EARLYSERIALINIT
|
# undef USE_EARLYSERIALINIT
|
||||||
|
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
|
||||||
|
# undef USE_SERIALDRIVER
|
||||||
|
# undef USE_EARLYSERIALINIT
|
||||||
# else
|
# else
|
||||||
# define USE_SERIALDRIVER 1
|
# define USE_SERIALDRIVER 1
|
||||||
# define USE_EARLYSERIALINIT 1
|
# define USE_EARLYSERIALINIT 1
|
||||||
|
@ -58,6 +58,9 @@
|
|||||||
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
||||||
# undef USE_SERIALDRIVER
|
# undef USE_SERIALDRIVER
|
||||||
# undef USE_EARLYSERIALINIT
|
# undef USE_EARLYSERIALINIT
|
||||||
|
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
|
||||||
|
# undef USE_SERIALDRIVER
|
||||||
|
# undef USE_EARLYSERIALINIT
|
||||||
# else
|
# else
|
||||||
# define USE_SERIALDRIVER 1
|
# define USE_SERIALDRIVER 1
|
||||||
# define USE_EARLYSERIALINIT 1
|
# define USE_EARLYSERIALINIT 1
|
||||||
|
@ -81,6 +81,16 @@ config RPMSG_UART
|
|||||||
select SERIAL_REMOVABLE
|
select SERIAL_REMOVABLE
|
||||||
select SERIAL_IFLOWCONTROL
|
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
|
# Standard serial driver configuration
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user