2021-09-06 23:26:02 +08:00
|
|
|
# Copyright (c) 2021 Nordic Semiconductor (ASA)
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-03-24 18:50:53 +08:00
|
|
|
DT_COMPAT_ZEPHYR_IPC_OPENAMP_STATIC_VRINGS := zephyr,ipc-openamp-static-vrings
|
|
|
|
DT_COMPAT_ZEPHYR_IPC_ICMSG := zephyr,ipc-icmsg
|
|
|
|
|
|
|
|
config IPC_SERVICE_REG_BACKEND_PRIORITY
|
|
|
|
int "Initialization priority of modules registering IPC backend"
|
|
|
|
default 46
|
|
|
|
help
|
|
|
|
The backend must be registered before the endpoint register.
|
2021-09-06 23:26:02 +08:00
|
|
|
|
2021-11-15 22:46:56 +08:00
|
|
|
config IPC_SERVICE_BACKEND_RPMSG
|
|
|
|
bool "OpenAMP RPMSG backend with static VRINGs"
|
|
|
|
depends on MBOX
|
2022-03-24 18:50:53 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZEPHYR_IPC_OPENAMP_STATIC_VRINGS))
|
2021-11-15 22:46:56 +08:00
|
|
|
select IPC_SERVICE_RPMSG
|
|
|
|
select IPC_SERVICE_STATIC_VRINGS
|
|
|
|
select OPENAMP
|
|
|
|
|
2022-03-14 22:59:04 +08:00
|
|
|
config IPC_SERVICE_BACKEND_ICMSG
|
2022-05-17 21:49:59 +08:00
|
|
|
bool "ICMSG backend with SPSC packet buffer"
|
2022-03-14 22:59:04 +08:00
|
|
|
depends on MBOX
|
2022-03-24 18:50:53 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZEPHYR_IPC_ICMSG))
|
2022-05-17 21:49:59 +08:00
|
|
|
select SPSC_PBUF
|
2022-05-18 01:36:07 +08:00
|
|
|
select SPSC_PBUF_USE_CACHE
|
2022-03-14 22:59:04 +08:00
|
|
|
help
|
|
|
|
Chosing this backend results in single endpoint implementation based
|
2022-05-17 21:49:59 +08:00
|
|
|
on circular packet buffer.
|
2022-03-14 22:59:04 +08:00
|
|
|
|
2021-09-06 23:26:02 +08:00
|
|
|
config IPC_SERVICE_RPMSG
|
|
|
|
bool "RPMsg support library"
|
|
|
|
help
|
|
|
|
"RPMsg library"
|
|
|
|
|
|
|
|
config IPC_SERVICE_STATIC_VRINGS
|
|
|
|
bool "Static VRINGs support library"
|
|
|
|
help
|
|
|
|
"Static VRINGs library"
|
2021-11-09 21:45:34 +08:00
|
|
|
|
2021-11-15 22:46:56 +08:00
|
|
|
config IPC_SERVICE_STATIC_VRINGS_ALIGNMENT
|
|
|
|
int "VRINGs alignment"
|
|
|
|
depends on IPC_SERVICE_STATIC_VRINGS
|
|
|
|
default 4
|
|
|
|
help
|
|
|
|
Static VRINGs alignment
|
|
|
|
|
2022-03-14 22:59:04 +08:00
|
|
|
rsource "Kconfig.icmsg"
|
2021-11-15 22:46:56 +08:00
|
|
|
rsource "Kconfig.rpmsg"
|