Skip to content

Commit f89bcff

Browse files
martintvrugeGerritsen
authored andcommitted
mpsl: Enable dppi channels in dppic130 and dppic132
Secure domain no longer enables DPPI channels for local domains, MPSL now has to enable the ones it uses. Signed-off-by: Martin Tverdal <[email protected]>
1 parent 5f2cc90 commit f89bcff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

subsys/mpsl/init/mpsl_init.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#if IS_ENABLED(CONFIG_SOC_COMPATIBLE_NRF54LX)
1919
#include <nrfx_power.h>
2020
#endif
21-
#if defined(CONFIG_NRFX_DPPI)
22-
#include <nrfx_dppi.h>
21+
#if defined(CONFIG_SOC_SERIES_NRF54HX)
22+
#include <hal/nrf_dppi.h>
2323
#endif
2424
#if defined(CONFIG_MPSL_TRIGGER_IPC_TASK_ON_RTC_START)
2525
#include <hal/nrf_ipc.h>
@@ -392,6 +392,13 @@ static int32_t mpsl_lib_init_internal(void)
392392
memset(&clock_cfg, 0, sizeof(clock_cfg));
393393
#endif
394394

395+
#if defined(CONFIG_SOC_SERIES_NRF54HX)
396+
/* Secure domain no longer enables DPPI channels for local domains,
397+
* MPSL now has to enable the ones it uses.
398+
*/
399+
nrf_dppi_channels_enable(NRF_DPPIC130, DPPI_SINK_CHANNELS);
400+
nrf_dppi_channels_enable(NRF_DPPIC132, DPPI_SOURCE_CHANNELS);
401+
#endif
395402
err = mpsl_init(&clock_cfg, CONFIG_MPSL_LOW_PRIO_IRQN, m_assert_handler);
396403
if (err) {
397404
return err;

0 commit comments

Comments
 (0)