rpmsg virtio: add rpmsg virtio wrapper support

Rpmsg VirtIO is a virtio transport implementation for Rpmsg, and
it's different to the rptun framework.

rpmsg_virtio.c implements the rpmsg virtio transport layer by itself
to avoid use the remoteproc implementation in OpenAMP to save code
size, so it can be treated as a lightweight version of rptun.
Therefore, rpmsg_virtio.c only support the communication feature and
do not support contoll the life cycle of the remote core.
But benefit by it's small footprint, it can be used in the chips with
small flash.

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Yongrong Wang
2024-02-06 11:12:15 +08:00
committed by archer
parent e359c661d8
commit af0bde8bca
5 changed files with 846 additions and 0 deletions
+17
View File
@@ -22,3 +22,20 @@ config RPMSG_PING
channel, user can use it to get send/recv speed & latency.
endif # RPMSG
config RPMSG_VIRTIO
bool "rpmsg virtio transport support"
default n
select RPMSG
if RPMSG_VIRTIO
config RPMSG_VIRTIO_PRIORITY
int "rpmsg virtio rx thread priority"
default 224
config RPMSG_VIRTIO_STACKSIZE
int "rpmsg virtio rx thread stack size"
default DEFAULT_TASK_STACKSIZE
endif