snippets: add snippet to boot Nordic PPR core from RAM

Add a new snippet that allows booting PPR core found in some Nordic
SoCs, configuring it with CONFIG_XIP=n.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-02-26 18:03:09 +01:00 committed by Carles Cufí
commit 75839ea4ad
4 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,11 @@
.. _nordic-ppr-ram:
Nordic boot PPR snippet with execution from RAM (nordic-ppr-ram)
################################################################
Overview
********
This snippet allows users to build Zephyr with the capability to boot Nordic PPR
(Peripheral Processor) from another core. PPR code is executed from RAM. Note
that PPR image must be built with :kconfig:option:`CONFIG_XIP` disabled.

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/
&cpuppr_ram3x_region {
status = "okay";
};
&cpuppr_vpr {
execution-memory = <&cpuppr_ram3x_region>;
};
&uart135 {
status = "reserved";
};

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/
/* code is sourced from cpuppr code partition */
&cpuppr_vpr {
status = "okay";
source-memory = <&cpuppr_code_partition>;
};
/* code partition size must match RAM size */
&cpuppr_code_partition {
reg = <0x126000 DT_SIZE_K(28)>;
};

View file

@ -0,0 +1,8 @@
name: nordic-ppr-ram
append:
EXTRA_DTC_OVERLAY_FILE: nordic-ppr-ram.overlay
boards:
nrf54h20pdk_nrf54h20_cpuapp:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20pdk_nrf54h20_cpuapp.overlay