rpmsg_port_spi: add spi transport layer

Add Rpmsg-Port-SPI transport layer.
Rpmsg Port SPI is a new rpmsg transport layer based on the Rpmsg Port,
it provides the capability for two SPI-connected (and two extra GPIO)
chips to communicate with each other using Rpmsg.

All already implemented Rpmsg Services can be used with this new transport
layer without any modifications.

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao
2024-01-23 15:26:37 +08:00
committed by Xiang Xiao
parent dd66a6b203
commit f7939a8081
5 changed files with 658 additions and 0 deletions
+28
View File
@@ -27,6 +27,34 @@ config RPMSG_PORT
---help---
Rpmsg port transport layer used for cross chip communication.
config RPMSG_PORT_SPI
bool "Rpmsg SPI Port Driver Support"
default n
select RPMSG_PORT
---help---
Rpmsg SPI Port driver used for cross chip communication.
if RPMSG_PORT_SPI
config RPMSG_PORT_SPI_THREAD_PRIORITY
int "Rpmsg SPI Port Thread Priority"
default 224
config RPMSG_PORT_SPI_THREAD_STACKSIZE
int "Rpmsg SPI Port Stack Size"
default DEFAULT_TASK_STACKSIZE
config RPMSG_PORT_SPI_CRC
bool "Rpmsg SPI Port Use CRC Check"
default n
config RPMSG_PORT_SPI_RX_THRESHOLD
int "Rpmsg SPI Port Rx Buffer Threshold"
default 50
range 0 100
endif # RPMSG_PORT_SPI
endif # RPMSG
config RPMSG_VIRTIO