2019-11-02 18:30:33 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
2020-02-15 14:38:35 +01:00
|
|
|
menuconfig RPTUN
|
|
|
|
bool "Remote Proc Tunnel Driver Support"
|
|
|
|
default n
|
2023-12-12 03:53:45 +01:00
|
|
|
select RPMSG
|
2020-02-15 14:38:35 +01:00
|
|
|
---help---
|
|
|
|
RPTUN driver is used for multi-cores' communication.
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
if RPTUN
|
|
|
|
|
2024-02-18 08:31:47 +01:00
|
|
|
config RPTUN_IVSHMEM
|
|
|
|
bool "rptun ivshmem support"
|
|
|
|
default n
|
2024-05-13 11:00:51 +02:00
|
|
|
depends on PCI_IVSHMEM
|
2024-02-18 08:31:47 +01:00
|
|
|
---help---
|
|
|
|
This is rptun driver based on pci ivshmem.
|
|
|
|
|
|
|
|
if RPTUN_IVSHMEM
|
|
|
|
|
|
|
|
config RPTUN_IVSHMEM_NAME
|
|
|
|
string "rptun ivshmem name"
|
|
|
|
---help---
|
|
|
|
Using this config to custom the rptun ivshmem cpuname and role,
|
|
|
|
using ";" to split the names.
|
2024-05-13 11:00:51 +02:00
|
|
|
For example, if RPTUN_IVSHMEM_CPUNAME = "0:cpu1:m;1:cpu2:s" and pass
|
2024-02-18 08:31:47 +01:00
|
|
|
two ivshmem devices to the qemu, we will get two rptun ivshmem
|
2024-05-13 11:00:51 +02:00
|
|
|
drivers with ivshmem device match id: [0, 1],
|
|
|
|
remote cpu names: ["cpu1", "cpu2"] and roles: ["master", "slave"']
|
2024-02-18 08:31:47 +01:00
|
|
|
|
|
|
|
config RPTUN_IVSHMEM_BUFFSIZE
|
|
|
|
int "rptun ivshmem rpmsg buffer size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
The rpmsg buffer size in resource table, the RX and TX buffer size
|
|
|
|
are same for now.
|
|
|
|
|
|
|
|
config RPTUN_IVSHMEM_BUFFNUM
|
|
|
|
int "rptun ivshmem rpmsg buffer number"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
The rpmsg buffer number in resource table, the RX and TX buffer number
|
|
|
|
are same for now.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2019-11-02 18:30:33 +01:00
|
|
|
config RPTUN_PRIORITY
|
2021-12-28 13:13:28 +01:00
|
|
|
int "rptun thread priority"
|
2019-11-02 18:30:33 +01:00
|
|
|
default 224
|
|
|
|
|
|
|
|
config RPTUN_STACKSIZE
|
|
|
|
int "rptun stack size"
|
2021-12-15 13:09:26 +01:00
|
|
|
default 4096
|
2020-02-08 08:30:09 +01:00
|
|
|
|
2021-09-02 08:47:31 +02:00
|
|
|
config RPTUN_LOADER
|
2021-10-18 17:06:10 +02:00
|
|
|
bool "rptun loader support"
|
|
|
|
default n
|
|
|
|
|
2022-02-09 16:08:22 +01:00
|
|
|
config RPTUN_PM
|
|
|
|
bool "rptun power management"
|
|
|
|
depends on PM
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If TX/RX buffer is supplied and powered by each CPU.
|
|
|
|
And when one CPU in DEEP sleep, then it's buffer will
|
|
|
|
goto RAM-retention mode, can't access from another CPU.
|
|
|
|
So, we provide this method to resolve this.
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
endif # RPTUN
|