Skip to content

Commit

Permalink
[nrf fromlist] modules: hal_nordic: request nRF5340 network CPU in 80…
Browse files Browse the repository at this point in the history
…2.15.4 init

The network CPU must be requested explicitly by the 802.15.4 driver for
the sharing mechanism to work correctly.

Upstream PR: zephyrproject-rtos/zephyr#72412

Signed-off-by: Jędrzej Ciupis <[email protected]>
  • Loading branch information
Jędrzej Ciupis authored and rlubos committed May 9, 2024
1 parent 7491fd0 commit 9074266
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
#include "../../spinel_base/spinel.h"
#include "../../src/include/nrf_802154_spinel.h"

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

#define LOG_LEVEL LOG_LEVEL_INFO
#define LOG_MODULE_NAME spinel_ipc_backend
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
Expand Down Expand Up @@ -50,6 +54,10 @@ nrf_802154_ser_err_t nrf_802154_backend_init(void)
DEVICE_DT_GET(DT_CHOSEN(nordic_802154_spinel_ipc));
int err;

#if defined(CONFIG_SOC_NRF5340_CPUAPP)
nrf53_cpunet_enable(true);
#endif

err = ipc_service_open_instance(ipc_instance);
if (err < 0 && err != -EALREADY) {
LOG_ERR("Failed to open IPC instance: %d", err);
Expand Down

0 comments on commit 9074266

Please sign in to comment.