Skip to content

Commit

Permalink
[nrf fromlist] modules: hal_nordic: Allow app mem from net core in se…
Browse files Browse the repository at this point in the history
…rialized 802.15.4

Currently, the serialization module for 802.15.4 enabled
the network core without giving it access to application
core memory in trusted execution mode. This commit
grands this access.

Upstream PR: zephyrproject-rtos/zephyr#79316

Signed-off-by: Dominik Kilian <[email protected]>
  • Loading branch information
doki-nordic authored and bjarki-andreasen committed Oct 3, 2024
1 parent 3645893 commit cfbd116
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#include <zephyr/device.h>
#include <zephyr/logging/log.h>

#if defined(CONFIG_SOC_NRF5340_CPUAPP)
#include <nrf53_cpunet_mgmt.h>
#include <hal/nrf_spu.h>
#endif

#include "nrf_802154.h"
#include "nrf_802154_spinel_backend_callouts.h"
#include "nrf_802154_serialization_error.h"
Expand Down Expand Up @@ -55,6 +60,14 @@ nrf_802154_ser_err_t nrf_802154_backend_init(void)
int err;

#if defined(CONFIG_SOC_NRF5340_CPUAPP)

#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)
/* Retain nRF5340 Network MCU in Secure domain (bus
* accesses by Network MCU will have Secure attribute set).
*/
nrf_spu_extdomain_set((NRF_SPU_Type *)DT_REG_ADDR(DT_NODELABEL(spu)), 0, true, false);
#endif /* !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) */

nrf53_cpunet_enable(true);
#endif

Expand Down

0 comments on commit cfbd116

Please sign in to comment.