boards: control the network CPU directly

Board initialization code should not use the network CPU management. It
acts as a permanent request for the network CPU, which causes its users
to be unable to turn it off. Instead, let the board initialization code
control the network CPU directly. It sets initial state of the network
core but does not have any impact on sharing the network CPU as a
resource between its users.

Signed-off-by: Jędrzej Ciupis <jedrzej.ciupis@nordicsemi.no>
This commit is contained in:
Jędrzej Ciupis 2024-05-07 13:04:51 +02:00 committed by Carles Cufí
commit d191c13f0d
7 changed files with 13 additions and 13 deletions

View file

@ -9,7 +9,7 @@
#include <zephyr/logging/log.h>
#include <soc.h>
#include <nrf53_cpunet_mgmt.h>
#include <hal/nrf_reset.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' */
nrf53_cpunet_enable(true);
nrf_reset_network_force_off(NRF_RESET, false);
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 <nrf53_cpunet_mgmt.h>
#include <hal/nrf_reset.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' */
nrf53_cpunet_enable(true);
nrf_reset_network_force_off(NRF_RESET, false);
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 <nrf53_cpunet_mgmt.h>
#include <hal/nrf_reset.h>
LOG_MODULE_REGISTER(thingy53_board_init);
@ -52,7 +52,7 @@ static void enable_cpunet(void)
*/
/* Release the Network MCU, 'Release force off signal' */
nrf53_cpunet_enable(true);
nrf_reset_network_force_off(NRF_RESET, false);
LOG_DBG("Network MCU released.");
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */