forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: ipc: enable openamp sample for RT1170 EVKB
Enable openamp sample for RT1170 EVKB. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
- Loading branch information
1 parent
d5329d1
commit 90e3650
Showing
5 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Copyright 2023, NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
CONFIG_INCLUDE_REMOTE_DIR=y | ||
CONFIG_SECOND_CORE_MCUX=y |
22 changes: 22 additions & 0 deletions
22
samples/subsys/ipc/openamp/boards/mimxrt1170_evkb_cm7.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2023 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
zephyr,ipc_shm = &ocram2_overlay; | ||
}; | ||
|
||
/* OpenAMP fails with full 512K OCRAM2 memory region as shared memory. | ||
* Define a subset of the OCRAM2 region for demo to use | ||
* Note that shared memory must have specific MPU attributes set. | ||
*/ | ||
ocram2_overlay: memory@202c0000{ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x202c0000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="OCRAM2_OVERLAY"; | ||
zephyr,memory-region-mpu = "IO"; | ||
}; | ||
}; |
8 changes: 8 additions & 0 deletions
8
samples/subsys/ipc/openamp/remote/boards/mimxrt1170_evkb_cm4.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright 2023, NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
CONFIG_BUILD_OUTPUT_INFO_HEADER=y | ||
CONFIG_BUILD_OUTPUT_HEX=y | ||
CONFIG_SECOND_CORE_MCUX=y |
49 changes: 49 additions & 0 deletions
49
samples/subsys/ipc/openamp/remote/boards/mimxrt1170_evkb_cm4.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright 2023 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
/* Switch to lpuart2, since primary core uses lpuart1 */ | ||
chosen { | ||
zephyr,flash = &ocram; | ||
zephyr,console = &lpuart2; | ||
zephyr,shell-uart = &lpuart2; | ||
zephyr,ipc_shm = &ocram2_overlay; | ||
}; | ||
|
||
soc { | ||
/delete-node/ gpt@400f0000; | ||
|
||
/* Replace GPT2 with another GPT kernel timer */ | ||
gpt2_hw_timer:gpt@400f0000 { | ||
compatible = "nxp,gpt-hw-timer"; | ||
reg = <0x400f0000 0x4000>; | ||
interrupts = <120 0>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
/* OpenAMP fails with full 512K OCRAM2 memory region as shared memory. | ||
* Define a subset of the OCRAM2 region for demo to use | ||
* Note that shared memory must have specific MPU attributes set | ||
*/ | ||
ocram2_overlay: memory@202c0000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x202c0000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="OCRAM2_OVERLAY"; | ||
zephyr,memory-region-mpu = "IO"; | ||
}; | ||
}; | ||
|
||
/* Enable secondary LPUART */ | ||
&lpuart2 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
}; | ||
|
||
/* Disable primary GPT timer */ | ||
&gpt_hw_timer { | ||
status = "disabled"; | ||
}; |