Skip to content

Commit d2f6769

Browse files
doki-nordicbjarki-andreasen
authored andcommitted
[nrf fromlist] modules: hal_nordic: Allow app mem from net core in serialized 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]>
1 parent 9cfb01a commit d2f6769

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
#include <zephyr/device.h>
1010
#include <zephyr/logging/log.h>
1111

12+
#if defined(CONFIG_SOC_NRF5340_CPUAPP)
13+
#include <nrf53_cpunet_mgmt.h>
14+
#include <hal/nrf_spu.h>
15+
#endif
16+
1217
#include "nrf_802154.h"
1318
#include "nrf_802154_spinel_backend_callouts.h"
1419
#include "nrf_802154_serialization_error.h"
@@ -55,6 +60,14 @@ nrf_802154_ser_err_t nrf_802154_backend_init(void)
5560
int err;
5661

5762
#if defined(CONFIG_SOC_NRF5340_CPUAPP)
63+
64+
#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)
65+
/* Retain nRF5340 Network MCU in Secure domain (bus
66+
* accesses by Network MCU will have Secure attribute set).
67+
*/
68+
nrf_spu_extdomain_set((NRF_SPU_Type *)DT_REG_ADDR(DT_NODELABEL(spu)), 0, true, false);
69+
#endif /* !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) */
70+
5871
nrf53_cpunet_enable(true);
5972
#endif
6073

0 commit comments

Comments
 (0)