snippets: Add nordic-ppr-xip

This replacement for the `nordic-ppr-ram` snippet does the opposite:
enable PPR execution in place from MRAM.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
This commit is contained in:
Grzegorz Swiderski 2024-03-14 08:39:39 +01:00 committed by Fabio Baltieri
parent 13bebdbf3a
commit 74f9f866f2
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,12 @@
.. _nordic-ppr-xip:
Nordic boot PPR snippet with execution in place (nordic-ppr-xip)
################################################################
Overview
********
This snippet allows users to build Zephyr with the capability to boot Nordic PPR
(Peripheral Processor) from another core. PPR code is to be executed from MRAM,
so the PPR image must be built for the ``xip`` board variant, or with
:kconfig:option:`CONFIG_XIP` enabled.

View file

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

View file

@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/
&cpuppr_vpr {
status = "okay";
};

View file

@ -0,0 +1,8 @@
name: nordic-ppr-xip
append:
EXTRA_DTC_OVERLAY_FILE: nordic-ppr-xip.overlay
boards:
nrf54h20dk/nrf54h20/cpuapp:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20dk_nrf54h20_cpuapp.overlay