Commit 2b23a526 authored by Jędrzej Ciupis's avatar Jędrzej Ciupis Committed by Carles Cufi
Browse files

boards: nrf53: switch to the network CPU management API



Switch to the network CPU management API from direct nrfx calls.

Signed-off-by: default avatarJędrzej Ciupis <jedrzej.ciupis@nordicsemi.no>
parent ec3c3f15
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
#include <zephyr/logging/log.h>

#include <soc.h>
#include <hal/nrf_reset.h>
#include <nrf53_cpunet_mgmt.h>

LOG_MODULE_REGISTER(bl5340_dvk_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);

@@ -50,7 +50,7 @@ static int remoteproc_mgr_boot(void)
	 */

	/* Release the Network MCU, 'Release force off signal' */
	nrf_reset_network_force_off(NRF_RESET, false);
	nrf53_cpunet_enable(true);

	LOG_DBG("Network MCU released.");
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#include <zephyr/logging/log.h>

#include <soc.h>
#include <hal/nrf_reset.h>
#include <nrf53_cpunet_mgmt.h>
#include <hal/nrf_gpiote.h>

LOG_MODULE_REGISTER(nrf5340_audio_dk_nrf5340_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);
@@ -71,7 +71,7 @@ static int remoteproc_mgr_boot(void)
	 */

	/* Release the Network MCU, 'Release force off signal' */
	nrf_reset_network_force_off(NRF_RESET, false);
	nrf53_cpunet_enable(true);

	LOG_DBG("Network MCU released.");
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#include <zephyr/logging/log.h>

#include <soc.h>
#include <hal/nrf_reset.h>
#include <nrf53_cpunet_mgmt.h>

LOG_MODULE_REGISTER(nrf5340dk_nrf5340_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);

@@ -49,7 +49,7 @@ static int remoteproc_mgr_boot(void)
	 */

	/* Release the Network MCU, 'Release force off signal' */
	nrf_reset_network_force_off(NRF_RESET, false);
	nrf53_cpunet_enable(true);

	LOG_DBG("Network MCU released.");
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <soc.h>
#include <hal/nrf_reset.h>
#include <nrf53_cpunet_mgmt.h>

LOG_MODULE_REGISTER(thingy53_board_init);

@@ -52,7 +52,7 @@ static void enable_cpunet(void)
	 */

	/* Release the Network MCU, 'Release force off signal' */
	nrf_reset_network_force_off(NRF_RESET, false);
	nrf53_cpunet_enable(true);

	LOG_DBG("Network MCU released.");
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#include <zephyr/logging/log.h>

#include <soc.h>
#include <hal/nrf_reset.h>
#include <nrf53_cpunet_mgmt.h>

#if defined(CONFIG_BOARD_PAN1783_EVB_NRF5340_CPUAPP)
LOG_MODULE_REGISTER(pan1783_evb_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);
@@ -42,7 +42,7 @@ static int remoteproc_mgr_boot(void)
	remoteproc_mgr_config();

	/* Release the Network MCU, 'Release force off signal' */
	nrf_reset_network_force_off(NRF_RESET, false);
	nrf53_cpunet_enable(true);

	LOG_DBG("Network MCU released.");

Loading