Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ void spu_peripheral_config_secure(const uint32_t periph_base_address, bool perip

nrf_spu_periph_perm_secattr_set(nrf_spu, index, true /* Secure */);
nrf_spu_periph_perm_dmasec_set(nrf_spu, index, true /* Secure */);
nrf_spu_periph_perm_lock_enable(nrf_spu, index);
if (periph_lock) {
nrf_spu_periph_perm_lock_enable(nrf_spu, index);
}
#endif
}

Expand Down Expand Up @@ -379,6 +381,8 @@ void spu_peripheral_config_non_secure(const uint32_t periph_base_address, bool p

nrf_spu_periph_perm_secattr_set(nrf_spu, index, false /* Non-Secure */);
nrf_spu_periph_perm_dmasec_set(nrf_spu, index, false /* Non-Secure */);
nrf_spu_periph_perm_lock_enable(nrf_spu, index);
if (periph_lock) {
nrf_spu_periph_perm_lock_enable(nrf_spu, index);
}
#endif
}
5 changes: 5 additions & 0 deletions platform/ext/target/nordic_nrf/common/core/target_cfg_54l.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ void peripheral_configuration(void)
#else
#error "Unsupported NRF_SECURE_UART_INSTANCE for nrf54l series. Supported instances: 00, 20, 21, 22, 30"
#endif

#if defined(CONFIG_TFM_LOG_SHARE_UART)
spu_peripheral_config_secure(uart_periph_start, SPU_LOCK_CONF_UNLOCKED);
#else
spu_peripheral_config_secure(uart_periph_start, SPU_LOCK_CONF_LOCKED);
#endif
#endif /* SECURE_UART1 */

/* Configure the CTRL-AP mailbox interface to be secure as it is used by the secure ADAC
Expand Down
5 changes: 5 additions & 0 deletions platform/ext/target/nordic_nrf/common/core/target_cfg_71.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,12 @@ void peripheral_configuration(void)
#else
#error "Unsupported NRF_SECURE_UART_INSTANCE for nrf71 series. Supported instances: 00, 20, 21, 22, 30"
#endif

#if defined(CONFIG_TFM_LOG_SHARE_UART)
spu_peripheral_config_secure(uart_periph_start, SPU_LOCK_CONF_UNLOCKED);
#else
spu_peripheral_config_secure(uart_periph_start, SPU_LOCK_CONF_LOCKED);
#endif
#endif /* SECURE_UART1 */

/* Configure the CTRL-AP mailbox interface to be secure as it is used by the secure ADAC
Expand Down