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 <ccaione@baylibre.com>
This commit is contained in:
parent
22e2b004df
commit
d540cf8877
2 changed files with 11 additions and 0 deletions
|
|
@ -6,3 +6,7 @@
|
||||||
|
|
||||||
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
|
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
|
||||||
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.c)
|
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.c)
|
||||||
|
|
||||||
|
zephyr_compile_definitions_ifdef(CONFIG_OPENAMP_WITH_DCACHE
|
||||||
|
WITH_DCACHE_VRINGS
|
||||||
|
WITH_DCACHE_BUFFERS)
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,10 @@ config OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF
|
||||||
help
|
help
|
||||||
This option specifies the number of buffer used in a Vring for
|
This option specifies the number of buffer used in a Vring for
|
||||||
interprocessor communication
|
interprocessor communication
|
||||||
|
|
||||||
|
config OPENAMP_WITH_DCACHE
|
||||||
|
bool "Build OpenAMP with vrings cache operations enabled"
|
||||||
|
default y
|
||||||
|
depends on CACHE_MANAGEMENT
|
||||||
|
help
|
||||||
|
Build OpenAMP with vrings cache operations enabled.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue