diff --git a/samples/drivers/mbox/CMakeLists.txt b/samples/drivers/mbox/CMakeLists.txt index 5fe78156f38..dd7ab115570 100644 --- a/samples/drivers/mbox/CMakeLists.txt +++ b/samples/drivers/mbox/CMakeLists.txt @@ -10,6 +10,8 @@ set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/mbox_ipc_remote-prefix/src/mbo if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpuapp") set(BOARD_REMOTE "nrf5340dk_nrf5340_cpunet") +elseif("${BOARD}" STREQUAL "adp_xc7k_ae350") + set(BOARD_REMOTE "adp_xc7k_ae350") else() message(FATAL_ERROR "${BOARD} is not supported for this sample") endif() diff --git a/samples/drivers/mbox/boards/adp_xc7k_ae350.conf b/samples/drivers/mbox/boards/adp_xc7k_ae350.conf new file mode 100644 index 00000000000..bdeaed5e885 --- /dev/null +++ b/samples/drivers/mbox/boards/adp_xc7k_ae350.conf @@ -0,0 +1 @@ +CONFIG_RV_BOOT_HART=0 diff --git a/samples/drivers/mbox/boards/adp_xc7k_ae350.overlay b/samples/drivers/mbox/boards/adp_xc7k_ae350.overlay new file mode 100644 index 00000000000..e9750141670 --- /dev/null +++ b/samples/drivers/mbox/boards/adp_xc7k_ae350.overlay @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2019 Linaro Limited + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + /* + * shared memory reserved for the inter-processor communication + */ + zephyr,sram = &sram; + }; + + sram: memory@0 { + compatible = "mmio-sram"; + reg = <0x00000000 0x10000000 >; + }; +}; diff --git a/samples/drivers/mbox/remote/CMakeLists.txt b/samples/drivers/mbox/remote/CMakeLists.txt index 94e87d6fcdc..a2efccf2227 100644 --- a/samples/drivers/mbox/remote/CMakeLists.txt +++ b/samples/drivers/mbox/remote/CMakeLists.txt @@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.20.0) if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpunet") message(STATUS "${BOARD} compile as remote in this sample") +elseif("${BOARD}" STREQUAL "adp_xc7k_ae350") + message(STATUS "${BOARD} compile as remote in this sample") else() message(FATAL_ERROR "${BOARD} is not supported for this sample") endif() diff --git a/samples/drivers/mbox/remote/sample.yaml b/samples/drivers/mbox/remote/sample.yaml index df30347e98e..014ad53a126 100644 --- a/samples/drivers/mbox/remote/sample.yaml +++ b/samples/drivers/mbox/remote/sample.yaml @@ -2,7 +2,7 @@ sample: name: MBOX IPC sample (remote) tests: sample.drivers.mbox_remote: - platform_allow: nrf5340dk_nrf5340_cpunet + platform_allow: nrf5340dk_nrf5340_cpunet adp_xc7k_ae350 integration_platforms: - nrf5340dk_nrf5340_cpunet tags: mbox diff --git a/samples/drivers/mbox/sample.yaml b/samples/drivers/mbox/sample.yaml index 8080026435b..6d1ee5fd235 100644 --- a/samples/drivers/mbox/sample.yaml +++ b/samples/drivers/mbox/sample.yaml @@ -2,7 +2,7 @@ sample: name: MBOX IPC sample tests: sample.drivers.mbox: - platform_allow: nrf5340dk_nrf5340_cpuapp + platform_allow: nrf5340dk_nrf5340_cpuapp adp_xc7k_ae350 integration_platforms: - nrf5340dk_nrf5340_cpuapp tags: mbox