samples: drivers: mbox: Support the new board adp_xc7k_ae350

Modify the related source in mbox sample to support board adp_xc7k_ae350.

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
This commit is contained in:
Kevin Wang 2023-06-29 15:47:18 +08:00 committed by Carles Cufí
parent 3744fe2d49
commit 7bfe096787
6 changed files with 26 additions and 2 deletions

View file

@ -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()

View file

@ -0,0 +1 @@
CONFIG_RV_BOOT_HART=0

View file

@ -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 >;
};
};

View file

@ -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()

View file

@ -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

View file

@ -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