Skip to content

Commit d806088

Browse files
TomasGalbickaNXPnordic-segl
authored andcommitted
[nrf fromtree] samples: enable multicore samples for MCXN947 board
This commit adds support for these multicore samples: - samples/drivers/mbox - samples/drivers/mbox_data - samples/subsys/ipc/ipc_service/static_vrings - samples/subsys/ipc/openamp Signed-off-by: Tomas Galbicka <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 64585b7)
1 parent 6764a72 commit d806088

32 files changed

+260
-2
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
1717
CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
1818
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
1919
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
20+
CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU0 OR
2021
CONFIG_BOARD_ESP32_DEVKITC_WROOM_ESP32_PROCPU OR
2122
CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU OR
2223
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config REMOTE_BOARD
1414
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
1515
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
1616
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
17+
default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947"
1718
default "nrf54h20dk/nrf54h20/cpuapp" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpurad"
1819
default "nrf54l15dk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15dk"
1920
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SECOND_CORE_MCUX=y
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
mbox-consumer {
9+
compatible = "vnd,mbox-consumer";
10+
mboxes = <&mbox 1>, <&mbox 0>;
11+
mbox-names = "tx", "rx";
12+
};
13+
};

samples/drivers/mbox/remote/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
1515
CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM4 OR
1616
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
1717
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR
18+
CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU1 OR
1819
CONFIG_BOARD_ESP32_DEVKITC_WROOM_ESP32_APPCPU OR
1920
CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU OR
2021
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SECOND_CORE_MCUX=y
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
mbox-consumer {
9+
compatible = "vnd,mbox-consumer";
10+
mboxes = <&mbox 0>, <&mbox 1>;
11+
mbox-names = "tx", "rx";
12+
};
13+
};

samples/drivers/mbox/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tests:
1313
- mimxrt1170_evk/mimxrt1176/cm7
1414
- mimxrt1160_evk/mimxrt1166/cm7
1515
- lpcxpresso55s69/lpc55s69/cpu0
16+
- frdm_mcxn947/mcxn947/cpu0
1617
integration_platforms:
1718
- nrf5340dk/nrf5340/cpuapp
1819
harness: console

samples/drivers/mbox_data/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
1111

1212
if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
1313
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
14+
CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU0 OR
1415
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0)
1516
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
1617
else()

samples/drivers/mbox_data/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ string
1010
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
1111
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
1212
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
13+
default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947"

0 commit comments

Comments
 (0)