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:
parent
3744fe2d49
commit
7bfe096787
6 changed files with 26 additions and 2 deletions
|
@ -10,6 +10,8 @@ set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/mbox_ipc_remote-prefix/src/mbo
|
||||||
|
|
||||||
if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpuapp")
|
if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpuapp")
|
||||||
set(BOARD_REMOTE "nrf5340dk_nrf5340_cpunet")
|
set(BOARD_REMOTE "nrf5340dk_nrf5340_cpunet")
|
||||||
|
elseif("${BOARD}" STREQUAL "adp_xc7k_ae350")
|
||||||
|
set(BOARD_REMOTE "adp_xc7k_ae350")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||||
endif()
|
endif()
|
||||||
|
|
1
samples/drivers/mbox/boards/adp_xc7k_ae350.conf
Normal file
1
samples/drivers/mbox/boards/adp_xc7k_ae350.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_RV_BOOT_HART=0
|
19
samples/drivers/mbox/boards/adp_xc7k_ae350.overlay
Normal file
19
samples/drivers/mbox/boards/adp_xc7k_ae350.overlay
Normal 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 >;
|
||||||
|
};
|
||||||
|
};
|
|
@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.20.0)
|
||||||
|
|
||||||
if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpunet")
|
if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpunet")
|
||||||
message(STATUS "${BOARD} compile as remote in this sample")
|
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()
|
else()
|
||||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
name: MBOX IPC sample (remote)
|
name: MBOX IPC sample (remote)
|
||||||
tests:
|
tests:
|
||||||
sample.drivers.mbox_remote:
|
sample.drivers.mbox_remote:
|
||||||
platform_allow: nrf5340dk_nrf5340_cpunet
|
platform_allow: nrf5340dk_nrf5340_cpunet adp_xc7k_ae350
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- nrf5340dk_nrf5340_cpunet
|
- nrf5340dk_nrf5340_cpunet
|
||||||
tags: mbox
|
tags: mbox
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
name: MBOX IPC sample
|
name: MBOX IPC sample
|
||||||
tests:
|
tests:
|
||||||
sample.drivers.mbox:
|
sample.drivers.mbox:
|
||||||
platform_allow: nrf5340dk_nrf5340_cpuapp
|
platform_allow: nrf5340dk_nrf5340_cpuapp adp_xc7k_ae350
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- nrf5340dk_nrf5340_cpuapp
|
- nrf5340dk_nrf5340_cpuapp
|
||||||
tags: mbox
|
tags: mbox
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue