Skip to content

Commit d540cf8

Browse files
carlocaionecarlescufi
authored andcommitted
openamp: Add new Kconfig option to enable dcache
Currently OpenAMP is unconditionally compiled with the options to use the vrings cache operations disabled. Add a new CONFIG_OPENAMP_WITH_DCACHE Kconfig option to enable the support for d-cache operations in OpenAMP when needed. Signed-off-by: Carlo Caione <[email protected]>
1 parent 22e2b00 commit d540cf8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/open-amp/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66

77
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
88
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.c)
9+
10+
zephyr_compile_definitions_ifdef(CONFIG_OPENAMP_WITH_DCACHE
11+
WITH_DCACHE_VRINGS
12+
WITH_DCACHE_BUFFERS)

lib/open-amp/Kconfig

+7
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ config OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF
1818
help
1919
This option specifies the number of buffer used in a Vring for
2020
interprocessor communication
21+
22+
config OPENAMP_WITH_DCACHE
23+
bool "Build OpenAMP with vrings cache operations enabled"
24+
default y
25+
depends on CACHE_MANAGEMENT
26+
help
27+
Build OpenAMP with vrings cache operations enabled.

0 commit comments

Comments
 (0)