boards: nrf53: switch to the network CPU management API

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

Signed-off-by: Jędrzej Ciupis <jedrzej.ciupis@nordicsemi.no>
This commit is contained in:
Jędrzej Ciupis 2024-04-10 11:51:14 +02:00 committed by Carles Cufí
commit 2b23a52642
7 changed files with 16 additions and 16 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */