sim/rpmsg: change SIM_RPTUN_MASTER to SIM_RPMSG_MASTER

Simply the config, later we can directly use macro SIM_RPMSG_MASTER
to controll all the rpmsg transport init.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2024-02-04 15:01:56 +08:00 committed by Xiang Xiao
parent f246907e78
commit db85061b0b
3 changed files with 6 additions and 6 deletions

View File

@ -10,10 +10,10 @@ config EXAMPLES_TOUCHSCREEN_BGCOLOR
default 0x007b68ee
depends on EXAMPLES_TOUCHSCREEN
config SIM_RPTUN_MASTER
bool "Remote Processor Tunneling Role"
config SIM_RPMSG_MASTER
bool "Rpmsg Master"
default n
depends on RPTUN
depends on RPMSG
if SIM_TOUCHSCREEN

View File

@ -89,7 +89,7 @@ CONFIG_SIM_HOSTFS=y
CONFIG_SIM_M32=y
CONFIG_SIM_NETDEV=y
CONFIG_SIM_NET_BRIDGE=y
CONFIG_SIM_RPTUN_MASTER=y
CONFIG_SIM_RPMSG_MASTER=y
CONFIG_SIM_UART0_NAME="/dev/ttyUSB0"
CONFIG_SIM_UART_NUMBER=1
CONFIG_SYSLOG_PREFIX=y

View File

@ -75,7 +75,7 @@
#ifdef CONFIG_RPMSG_UART
void rpmsg_serialinit(void)
{
#ifdef CONFIG_SIM_RPTUN_MASTER
#ifdef CONFIG_SIM_RPMSG_MASTER
uart_rpmsg_init("proxy", "proxy", 4096, false);
#else
uart_rpmsg_init("server", "proxy", 4096, true);
@ -463,7 +463,7 @@ int sim_bringup(void)
#endif
#ifdef CONFIG_RPTUN
# ifdef CONFIG_SIM_RPTUN_MASTER
# ifdef CONFIG_SIM_RPMSG_MASTER
sim_rptun_init("server-proxy", "proxy",
SIM_RPTUN_MASTER | SIM_RPTUN_NOBOOT);
# else